diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-03-16 21:39:48 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-03-16 21:39:48 +0000 |
commit | 4c5c7a0c085780f07e208658db3c4dce5ca032a5 (patch) | |
tree | 5afbfdd273edc0efb6c554a154672a6b59dda917 /sys-boot | |
parent | Removed vulnerable versions (diff) | |
download | gentoo-2-4c5c7a0c085780f07e208658db3c4dce5ca032a5.tar.gz gentoo-2-4c5c7a0c085780f07e208658db3c4dce5ca032a5.tar.bz2 gentoo-2-4c5c7a0c085780f07e208658db3c4dce5ca032a5.zip |
Use new toolchain helpers for selecting the bfd linker #439082 by Ambroz Bizjak.
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
Diffstat (limited to 'sys-boot')
-rw-r--r-- | sys-boot/grub/ChangeLog | 8 | ||||
-rw-r--r-- | sys-boot/grub/grub-0.97-r14.ebuild | 17 | ||||
-rw-r--r-- | sys-boot/grub/grub-2.00_p5107-r2.ebuild | 19 | ||||
-rw-r--r-- | sys-boot/grub/grub-2.02_beta2-r3.ebuild | 17 | ||||
-rw-r--r-- | sys-boot/grub/grub-2.02_beta2-r6.ebuild | 17 | ||||
-rw-r--r-- | sys-boot/grub/grub-2.02_beta2-r7.ebuild | 17 | ||||
-rw-r--r-- | sys-boot/grub/grub-9999-r1.ebuild | 17 |
7 files changed, 19 insertions, 93 deletions
diff --git a/sys-boot/grub/ChangeLog b/sys-boot/grub/ChangeLog index 89e1e34338a6..ee3f34b0b5a9 100644 --- a/sys-boot/grub/ChangeLog +++ b/sys-boot/grub/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-boot/grub # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/ChangeLog,v 1.348 2015/03/14 18:05:51 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/ChangeLog,v 1.349 2015/03/16 21:39:48 vapier Exp $ + + 16 Mar 2015; Mike Frysinger <vapier@gentoo.org> grub-0.97-r14.ebuild, + grub-2.00_p5107-r2.ebuild, grub-2.02_beta2-r3.ebuild, + grub-2.02_beta2-r6.ebuild, grub-2.02_beta2-r7.ebuild, grub-9999-r1.ebuild: + Use new toolchain helpers for selecting the bfd linker #439082 by Ambroz + Bizjak. 14 Mar 2015; Michał Górny <mgorny@gentoo.org> -grub-0.97-r12.ebuild, -grub-0.97-r13.ebuild: diff --git a/sys-boot/grub/grub-0.97-r14.ebuild b/sys-boot/grub/grub-0.97-r14.ebuild index aeb2fb745a92..592d40059041 100644 --- a/sys-boot/grub/grub-0.97-r14.ebuild +++ b/sys-boot/grub/grub-0.97-r14.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-0.97-r14.ebuild,v 1.6 2015/02/16 18:06:05 zlogene Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-0.97-r14.ebuild,v 1.7 2015/03/16 21:39:48 vapier Exp $ # XXX: we need to review menu.lst vs grub.conf handling. We've been converting # all systems to grub.conf (and symlinking menu.lst to grub.conf), but @@ -44,18 +44,6 @@ RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)\]/} )" DEPEND="${RDEPEND} static? ( ${LIB_DEPEND} )" -pkg_pretend() { - if [[ ${MERGE_TYPE} != binary ]]; then - # Bugs 526348 , 466536 - if ! test-flags-CC -fuse-ld=bfd &>/dev/null && - $(tc-getLD) --version | grep -q "GNU gold"; then - eerror "GRUB does not function correctly when built with the gold linker." - eerror "Please select the bfd linker with binutils-config." - die "GNU gold detected" - fi - fi -} - pkg_setup() { case $(tc-arch) in amd64) CONFIG_CHECK='~IA32_EMULATION' check_extra_config ;; @@ -110,8 +98,7 @@ src_configure() { # -fno-stack-protector detected by configure, removed from netboot's emake. use custom-cflags || unset CFLAGS - # Force ld.bfd if we can set it, bug 466536 - append-ldflags $(test-flags-CC -fuse-ld=bfd) + tc-ld-disable-gold #439082 #466536 #526348 export grub_cv_prog_objcopy_absolute=yes #79734 use static && append-ldflags -static diff --git a/sys-boot/grub/grub-2.00_p5107-r2.ebuild b/sys-boot/grub/grub-2.00_p5107-r2.ebuild index b431523919c8..e94530f912da 100644 --- a/sys-boot/grub/grub-2.00_p5107-r2.ebuild +++ b/sys-boot/grub/grub-2.00_p5107-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-2.00_p5107-r2.ebuild,v 1.9 2015/01/04 03:16:03 floppym Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-2.00_p5107-r2.ebuild,v 1.10 2015/03/16 21:39:48 vapier Exp $ EAPI=5 @@ -136,18 +136,6 @@ QA_PRESTRIPPED=" usr/lib.*/grub/.*/kernel.img " -pkg_pretend() { - if [[ ${MERGE_TYPE} != binary ]]; then - # Bug 439082 - if ! version_is_at_least 4.8 "$(gcc-version)" && - $(tc-getLD) --version | grep -q "GNU gold"; then - eerror "GRUB does not function correctly when built with the gold linker." - eerror "Please select the bfd linker with binutils-config." - die "GNU gold detected" - fi - fi -} - src_unpack() { if [[ ${PV} == 9999 ]]; then git-r3_src_unpack @@ -233,10 +221,7 @@ src_configure() { use custom-cflags || unset CCASFLAGS CFLAGS CPPFLAGS LDFLAGS use static && export HOST_LDFLAGS="${HOST_LDFLAGS} -static" - if version_is_at_least 4.8 "$(gcc-version)"; then - export TARGET_LDFLAGS+=" -fuse-ld=bfd" - fi - + tc-ld-disable-gold #439082 #466536 #526348 tc-export CC NM OBJCOPY STRIP export TARGET_CC=${TARGET_CC:-${CC}} tc-export BUILD_CC # Bug 485592 diff --git a/sys-boot/grub/grub-2.02_beta2-r3.ebuild b/sys-boot/grub/grub-2.02_beta2-r3.ebuild index d2ebee011097..b997b69dbfd3 100644 --- a/sys-boot/grub/grub-2.02_beta2-r3.ebuild +++ b/sys-boot/grub/grub-2.02_beta2-r3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-2.02_beta2-r3.ebuild,v 1.5 2015/01/04 03:16:03 floppym Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-2.02_beta2-r3.ebuild,v 1.6 2015/03/16 21:39:48 vapier Exp $ EAPI=5 @@ -134,18 +134,6 @@ QA_PRESTRIPPED=" usr/lib.*/grub/.*/kernel.img " -pkg_pretend() { - if [[ ${MERGE_TYPE} != binary ]]; then - # Bug 439082 - if ! test-flags-CC -fuse-ld=bfd > /dev/null && - $(tc-getLD) --version | grep -q "GNU gold"; then - eerror "GRUB does not function correctly when built with the gold linker." - eerror "Please select the bfd linker with binutils-config." - die "GNU gold detected" - fi - fi -} - src_unpack() { if [[ ${PV} == 9999 ]]; then git-r3_src_unpack @@ -248,8 +236,7 @@ src_configure() { use static && HOST_LDFLAGS+=" -static" - export TARGET_LDFLAGS+=" $(test-flags-CC -fuse-ld=bfd)" - + tc-ld-disable-gold #439082 #466536 #526348 tc-export CC NM OBJCOPY STRIP export TARGET_CC=${TARGET_CC:-${CC}} tc-export BUILD_CC # Bug 485592 diff --git a/sys-boot/grub/grub-2.02_beta2-r6.ebuild b/sys-boot/grub/grub-2.02_beta2-r6.ebuild index 9ac56094cca1..afa13e0ae04c 100644 --- a/sys-boot/grub/grub-2.02_beta2-r6.ebuild +++ b/sys-boot/grub/grub-2.02_beta2-r6.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-2.02_beta2-r6.ebuild,v 1.3 2015/01/04 03:16:03 floppym Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-2.02_beta2-r6.ebuild,v 1.4 2015/03/16 21:39:48 vapier Exp $ EAPI=5 @@ -134,18 +134,6 @@ QA_PRESTRIPPED=" usr/lib.*/grub/.*/kernel.img " -pkg_pretend() { - if [[ ${MERGE_TYPE} != binary ]]; then - # Bug 439082 - if ! test-flags-CC -fuse-ld=bfd > /dev/null && - $(tc-getLD) --version | grep -q "GNU gold"; then - eerror "GRUB does not function correctly when built with the gold linker." - eerror "Please select the bfd linker with binutils-config." - die "GNU gold detected" - fi - fi -} - src_unpack() { if [[ ${PV} == 9999 ]]; then git-r3_src_unpack @@ -248,8 +236,7 @@ src_configure() { use static && HOST_LDFLAGS+=" -static" - export TARGET_LDFLAGS+=" $(test-flags-CC -fuse-ld=bfd)" - + tc-ld-disable-gold #439082 #466536 #526348 tc-export CC NM OBJCOPY STRIP export TARGET_CC=${TARGET_CC:-${CC}} tc-export BUILD_CC # Bug 485592 diff --git a/sys-boot/grub/grub-2.02_beta2-r7.ebuild b/sys-boot/grub/grub-2.02_beta2-r7.ebuild index f32ec279a855..93ec2a7117c7 100644 --- a/sys-boot/grub/grub-2.02_beta2-r7.ebuild +++ b/sys-boot/grub/grub-2.02_beta2-r7.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-2.02_beta2-r7.ebuild,v 1.6 2015/02/07 20:38:02 floppym Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-2.02_beta2-r7.ebuild,v 1.7 2015/03/16 21:39:48 vapier Exp $ EAPI=5 @@ -141,18 +141,6 @@ QA_PRESTRIPPED=" usr/lib.*/grub/.*/kernel.img " -pkg_pretend() { - if [[ ${MERGE_TYPE} != binary ]]; then - # Bug 439082 - if ! test-flags-CC -fuse-ld=bfd > /dev/null && - $(tc-getLD) --version | grep -q "GNU gold"; then - eerror "GRUB does not function correctly when built with the gold linker." - eerror "Please select the bfd linker with binutils-config." - die "GNU gold detected" - fi - fi -} - src_unpack() { if [[ ${PV} == 9999 ]]; then git-r3_src_unpack @@ -256,8 +244,7 @@ src_configure() { use static && HOST_LDFLAGS+=" -static" - export TARGET_LDFLAGS+=" $(test-flags-CC -fuse-ld=bfd)" - + tc-ld-disable-gold #439082 #466536 #526348 tc-export CC NM OBJCOPY STRIP export TARGET_CC=${TARGET_CC:-${CC}} tc-export BUILD_CC # Bug 485592 diff --git a/sys-boot/grub/grub-9999-r1.ebuild b/sys-boot/grub/grub-9999-r1.ebuild index fa423673f107..7cece259f11c 100644 --- a/sys-boot/grub/grub-9999-r1.ebuild +++ b/sys-boot/grub/grub-9999-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-9999-r1.ebuild,v 1.29 2015/02/07 20:38:02 floppym Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-9999-r1.ebuild,v 1.30 2015/03/16 21:39:48 vapier Exp $ EAPI=5 @@ -143,18 +143,6 @@ QA_PRESTRIPPED=" usr/lib.*/grub/.*/kernel.img " -pkg_pretend() { - if [[ ${MERGE_TYPE} != binary ]]; then - # Bug 439082 - if ! test-flags-CC -fuse-ld=bfd > /dev/null && - $(tc-getLD) --version | grep -q "GNU gold"; then - eerror "GRUB does not function correctly when built with the gold linker." - eerror "Please select the bfd linker with binutils-config." - die "GNU gold detected" - fi - fi -} - src_unpack() { if [[ ${PV} == 9999 ]]; then git-r3_src_unpack @@ -256,8 +244,7 @@ src_configure() { use static && HOST_LDFLAGS+=" -static" - export TARGET_LDFLAGS+=" $(test-flags-CC -fuse-ld=bfd)" - + tc-ld-disable-gold #439082 #466536 #526348 tc-export CC NM OBJCOPY STRIP export TARGET_CC=${TARGET_CC:-${CC}} tc-export BUILD_CC # Bug 485592 |