Gentoo Archives: gentoo-commits

From: "Andreas K. Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-boot/syslinux/
Date: Fri, 01 Jan 2021 21:49:46
Message-Id: 1609537750.53c31ce51ace223e4439cde2b6b2a395e40ae9d5.dilfridge@gentoo
1 commit: 53c31ce51ace223e4439cde2b6b2a395e40ae9d5
2 Author: Andreas K. Huettel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 1 19:18:35 2021 +0000
4 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 1 21:49:10 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53c31ce5
7
8 sys-boot/syslinux: Remove old
9
10 Bug: https://bugs.gentoo.org/705730
11 Package-Manager: Portage-3.0.12, Repoman-3.0.2
12 Signed-off-by: Andreas K. Huettel <dilfridge <AT> gentoo.org>
13
14 sys-boot/syslinux/syslinux-6.04_pre1.ebuild | 115 ----------------------------
15 1 file changed, 115 deletions(-)
16
17 diff --git a/sys-boot/syslinux/syslinux-6.04_pre1.ebuild b/sys-boot/syslinux/syslinux-6.04_pre1.ebuild
18 deleted file mode 100644
19 index 3fb6b3a94cc..00000000000
20 --- a/sys-boot/syslinux/syslinux-6.04_pre1.ebuild
21 +++ /dev/null
22 @@ -1,115 +0,0 @@
23 -# Copyright 1999-2019 Gentoo Authors
24 -# Distributed under the terms of the GNU General Public License v2
25 -
26 -EAPI=5
27 -
28 -inherit eutils toolchain-funcs
29 -
30 -DESCRIPTION="SYSLINUX, PXELINUX, ISOLINUX, EXTLINUX and MEMDISK bootloaders"
31 -HOMEPAGE="https://www.syslinux.org/"
32 -# Final releases in 6.xx/$PV.tar.* (literal "xx")
33 -# Testing releases in Testing/$PV/$PV.tar.*
34 -SRC_URI_DIR=${PV:0:1}.xx
35 -SRC_URI_TESTING=Testing/${PV:0:4}
36 -[[ ${PV/_alpha} != $PV ]] && SRC_URI_DIR=$SRC_URI_TESTING
37 -[[ ${PV/_beta} != $PV ]] && SRC_URI_DIR=$SRC_URI_TESTING
38 -[[ ${PV/_pre} != $PV ]] && SRC_URI_DIR=$SRC_URI_TESTING
39 -[[ ${PV/_rc} != $PV ]] && SRC_URI_DIR=$SRC_URI_TESTING
40 -SRC_URI="https://www.kernel.org/pub/linux/utils/boot/syslinux/${SRC_URI_DIR}/${P/_/-}.tar.xz"
41 -
42 -LICENSE="GPL-2"
43 -SLOT="0"
44 -KEYWORDS="-* amd64 x86"
45 -IUSE="custom-cflags"
46 -
47 -RDEPEND="sys-fs/mtools
48 - dev-perl/Crypt-PasswdMD5
49 - dev-perl/Digest-SHA1"
50 -DEPEND="${RDEPEND}
51 - dev-lang/nasm
52 - >=sys-boot/gnu-efi-3.0u
53 - virtual/os-headers"
54 -
55 -S=${WORKDIR}/${P/_/-}
56 -
57 -# This ebuild is a departure from the old way of rebuilding everything in syslinux
58 -# This departure is necessary since hpa doesn't support the rebuilding of anything other
59 -# than the installers.
60 -
61 -# These are executables which come precompiled and are run by the boot loader
62 -QA_PREBUILT="usr/share/${PN}/*.c32"
63 -
64 -# removed all the unpack/patching stuff since we aren't rebuilding the core stuff anymore
65 -
66 -src_prepare() {
67 - rm -f gethostip #bug 137081
68 -
69 - epatch "${FILESDIR}"/${PN}-6.03-sysmacros.patch #579928
70 - epatch "${FILESDIR}"/${P}-singleloadsegment.patch #662678
71 -
72 - # Don't prestrip or override user LDFLAGS, bug #305783
73 - local SYSLINUX_MAKEFILES="extlinux/Makefile linux/Makefile mtools/Makefile \
74 - sample/Makefile utils/Makefile"
75 - sed -i ${SYSLINUX_MAKEFILES} -e '/^LDFLAGS/d' || die "sed failed"
76 -
77 - if use custom-cflags; then
78 - sed -i ${SYSLINUX_MAKEFILES} \
79 - -e 's|-g -Os||g' \
80 - -e 's|-Os||g' \
81 - -e 's|CFLAGS[[:space:]]\+=|CFLAGS +=|g' \
82 - || die "sed custom-cflags failed"
83 - else
84 - QA_FLAGS_IGNORED="
85 - /sbin/extlinux
86 - /usr/bin/memdiskfind
87 - /usr/bin/gethostip
88 - /usr/bin/isohybrid
89 - /usr/bin/syslinux
90 - "
91 - fi
92 - case ${ARCH} in
93 - amd64) loaderarch="efi64" ;;
94 - x86) loaderarch="efi32" ;;
95 - *) ewarn "Unsupported architecture, building installers only." ;;
96 - esac
97 -
98 - # building with ld.gold causes problems, bug #563364
99 - if tc-ld-is-gold; then
100 - ewarn "Building syslinux with the gold linker may cause problems, see bug #563364"
101 - if [[ -z "${I_KNOW_WHAT_I_AM_DOING}" ]]; then
102 - tc-ld-disable-gold
103 - ewarn "set I_KNOW_WHAT_I_AM_DOING=1 to override this."
104 - else
105 - ewarn "Continuing anyway as requested."
106 - fi
107 - fi
108 -
109 - epatch_user
110 -}
111 -
112 -src_compile() {
113 - # build system abuses the LDFLAGS variable to pass arguments to ld
114 - unset LDFLAGS
115 - if [[ ! -z ${loaderarch} ]]; then
116 - emake CC="$(tc-getCC)" LD="$(tc-getLD)" ${loaderarch}
117 - fi
118 - emake CC="$(tc-getCC)" LD="$(tc-getLD)" ${loaderarch} installer
119 -}
120 -
121 -src_install() {
122 - # parallel install fails sometimes
123 - einfo "loaderarch=${loaderarch}"
124 - emake -j1 LD="$(tc-getLD)" INSTALLROOT="${D}" MANDIR=/usr/share/man bios ${loaderarch} install
125 - dodoc README NEWS doc/*.txt
126 -}
127 -
128 -pkg_postinst() {
129 - # print warning for users upgrading from the previous stable version
130 - if has 4.07 ${REPLACING_VERSIONS}; then
131 - ewarn "syslinux now uses dynamically linked ELF executables. Before you reboot,"
132 - ewarn "ensure that needed dependencies are fulfilled. For example, run from your"
133 - ewarn "syslinux directory:"
134 - ewarn
135 - ewarn "LD_LIBRARY_PATH=\".\" ldd menu.c32"
136 - fi
137 -}