Gentoo Archives: gentoo-commits

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