Gentoo Archives: gentoo-commits

From: "Chi-Thanh Christopher Nguyen (chithanh)" <chithanh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-boot/syslinux: syslinux-6.02_pre15.ebuild ChangeLog syslinux-6.02_pre2.ebuild
Date: Tue, 30 Jul 2013 14:48:33
Message-Id: 20130730144826.943AC2171C@flycatcher.gentoo.org
1 chithanh 13/07/30 14:48:26
2
3 Modified: ChangeLog
4 Added: syslinux-6.02_pre15.ebuild
5 Removed: syslinux-6.02_pre2.ebuild
6 Log:
7 Bump to new prerelease.
8
9 (Portage version: 2.1.12.2/cvs/Linux x86_64, unsigned Manifest commit)
10
11 Revision Changes Path
12 1.100 sys-boot/syslinux/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/syslinux/ChangeLog?rev=1.100&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/syslinux/ChangeLog?rev=1.100&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/syslinux/ChangeLog?r1=1.99&r2=1.100
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sys-boot/syslinux/ChangeLog,v
21 retrieving revision 1.99
22 retrieving revision 1.100
23 diff -u -r1.99 -r1.100
24 --- ChangeLog 8 Jul 2013 16:45:04 -0000 1.99
25 +++ ChangeLog 30 Jul 2013 14:48:26 -0000 1.100
26 @@ -1,6 +1,12 @@
27 # ChangeLog for sys-boot/syslinux
28 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sys-boot/syslinux/ChangeLog,v 1.99 2013/07/08 16:45:04 chithanh Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sys-boot/syslinux/ChangeLog,v 1.100 2013/07/30 14:48:26 chithanh Exp $
31 +
32 +*syslinux-6.02_pre15 (30 Jul 2013)
33 +
34 + 30 Jul 2013; Chí-Thanh Christopher Nguyễn <chithanh@g.o>
35 + +syslinux-6.02_pre15.ebuild, -syslinux-6.02_pre2.ebuild:
36 + Bump to new prerelease.
37
38 *syslinux-6.02_pre2 (08 Jul 2013)
39
40
41
42
43 1.1 sys-boot/syslinux/syslinux-6.02_pre15.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/syslinux/syslinux-6.02_pre15.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/syslinux/syslinux-6.02_pre15.ebuild?rev=1.1&content-type=text/plain
47
48 Index: syslinux-6.02_pre15.ebuild
49 ===================================================================
50 # Copyright 1999-2013 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sys-boot/syslinux/syslinux-6.02_pre15.ebuild,v 1.1 2013/07/30 14:48:26 chithanh Exp $
53
54 EAPI=4
55
56 inherit eutils toolchain-funcs
57
58 DESCRIPTION="SYSLINUX, PXELINUX, ISOLINUX, EXTLINUX and MEMDISK bootloaders"
59 HOMEPAGE="http://www.syslinux.org/"
60 SRC_URI="mirror://kernel/linux/utils/boot/syslinux/Testing/${PV:0:4}/${P/_/-}.tar.xz"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="-* ~amd64 ~x86"
65 IUSE="custom-cflags"
66
67 RDEPEND="sys-fs/mtools
68 dev-perl/Crypt-PasswdMD5
69 dev-perl/Digest-SHA1"
70 DEPEND="${RDEPEND}
71 dev-lang/nasm
72 >=sys-boot/gnu-efi-3.0u
73 virtual/os-headers"
74
75 S=${WORKDIR}/${P/_/-}
76
77 # This ebuild is a departure from the old way of rebuilding everything in syslinux
78 # This departure is necessary since hpa doesn't support the rebuilding of anything other
79 # than the installers.
80
81 # These are executables which come precompiled and are run by the boot loader
82 QA_PREBUILT="usr/share/${PN}/*.c32"
83
84 # removed all the unpack/patching stuff since we aren't rebuilding the core stuff anymore
85
86 src_prepare() {
87 rm -f gethostip #bug 137081
88
89 # Don't prestrip or override user LDFLAGS, bug #305783
90 local SYSLINUX_MAKEFILES="extlinux/Makefile linux/Makefile mtools/Makefile \
91 sample/Makefile utils/Makefile"
92 sed -i ${SYSLINUX_MAKEFILES} -e '/^LDFLAGS/d' || die "sed failed"
93
94 if use custom-cflags; then
95 sed -i ${SYSLINUX_MAKEFILES} \
96 -e 's|-g -Os||g' \
97 -e 's|-Os||g' \
98 -e 's|CFLAGS[[:space:]]\+=|CFLAGS +=|g' \
99 || die "sed custom-cflags failed"
100 fi
101 case ${ARCH} in
102 amd64) loaderarch="efi64" ;;
103 x86) loaderarch="efi32" ;;
104 *) ewarn "Unsupported architecture, building installers only." ;;
105 esac
106 }
107
108 src_compile() {
109 # build system abuses the LDFLAGS variable to pass arguments to ld
110 unset LDFLAGS
111 if [[ ! -z ${loaderarch} ]]; then
112 emake CC=$(tc-getCC) LD=$(tc-getLD) ${loaderarch}
113 fi
114 emake CC=$(tc-getCC) LD=$(tc-getLD) ${loaderarch} installer
115 }
116
117 src_install() {
118 # parallel install fails sometimes
119 einfo "loaderarch=${loaderarch}"
120 emake -j1 LD=$(tc-getLD) INSTALLROOT="${D}" MANDIR=/usr/share/man bios ${loaderarch} install
121 dodoc README NEWS doc/*.txt
122 }
123
124 pkg_postinst() {
125 # print warning for users upgrading from the previous stable version
126 if has 4.06 ${REPLACING_VERSIONS}; then
127 ewarn "syslinux now uses dynamically linked ELF executables. Before you reboot,"
128 ewarn "ensure that needed dependencies are fulfilled. For example, run from your"
129 ewarn "syslinux directory:"
130 ewarn
131 ewarn "LD_LIBRARY_PATH=\".\" ldd menu.c32"
132 fi
133 }