From a4374ec22dcf789c9f7e4c522b9c80c1f0e58c90 Mon Sep 17 00:00:00 2001 From: Alexander Gabert Date: Wed, 12 May 2004 13:03:24 +0000 Subject: removed hardened-gcc logic, added logic for suppressing PIE and SSP --- sys-boot/grub/ChangeLog | 5 ++++- sys-boot/grub/Manifest | 12 ++++++------ sys-boot/grub/grub-0.93.20030118.ebuild | 17 ++++++++--------- 3 files changed, 18 insertions(+), 16 deletions(-) (limited to 'sys-boot') diff --git a/sys-boot/grub/ChangeLog b/sys-boot/grub/ChangeLog index 3119bfe254d3..f67df145e4ee 100644 --- a/sys-boot/grub/ChangeLog +++ b/sys-boot/grub/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for sys-boot/grub # Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/ChangeLog,v 1.14 2004/05/06 22:35:46 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/ChangeLog,v 1.15 2004/05/12 13:03:24 pappy Exp $ + + 12 May 2004; Alexander Gabert grub-0.93.20030118.ebuild: + removed hardened-gcc logic, added logic for suppressing PIE and SSP 06 May 2004; Mike Frysinger +files/grub-0.94-gcc3.4.patch, grub-0.94-r1.ebuild: diff --git a/sys-boot/grub/Manifest b/sys-boot/grub/Manifest index 9e6d294208f3..e5f32514f0c6 100644 --- a/sys-boot/grub/Manifest +++ b/sys-boot/grub/Manifest @@ -1,11 +1,11 @@ +MD5 e04f2bf8bf4d7b73f56e8ec1fe167b0c ChangeLog 9016 +MD5 8098e19e3f056d996f517a8cbc254536 grub-0.92-r1.ebuild 2546 +MD5 6ad7c3c9b40c26078996f5133581bbc0 grub-0.93.20030118.ebuild 2520 +MD5 63571b0129e60600df6580d43c717058 grub-0.94-r1.ebuild 3317 +MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164 MD5 16039704cf1e6b6f46b4413532af082c files/digest-grub-0.92-r1 133 MD5 b302edf756d9f8996d9e1ae6d3a49768 files/digest-grub-0.93.20030118 1764 +MD5 0b52e1b3a6a9f3c9b86742580eabf28d files/digest-grub-0.94-r1 131 MD5 8d898cd9d1928916596cc3f9883eac67 files/grub-0.93-gcc3.3.diff 639 MD5 cdd6c89d48982ecd544c0b4774755afd files/splash.xpm.gz 33856 -MD5 0b52e1b3a6a9f3c9b86742580eabf28d files/digest-grub-0.94-r1 131 MD5 e9e73f57d9f9d5c550792980b2635f94 files/grub-0.94-gcc3.4.patch 479 -MD5 d7063dcccc8a3823fcbe44fc1ea2db32 ChangeLog 8868 -MD5 8098e19e3f056d996f517a8cbc254536 grub-0.92-r1.ebuild 2546 -MD5 143492d67264ac30e251ffb1d62a1a67 grub-0.93.20030118.ebuild 2429 -MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164 -MD5 63571b0129e60600df6580d43c717058 grub-0.94-r1.ebuild 3317 diff --git a/sys-boot/grub/grub-0.93.20030118.ebuild b/sys-boot/grub/grub-0.93.20030118.ebuild index 74d99bea35a9..c947b0d446ad 100644 --- a/sys-boot/grub/grub-0.93.20030118.ebuild +++ b/sys-boot/grub/grub-0.93.20030118.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-0.93.20030118.ebuild,v 1.5 2004/01/30 07:22:15 drobbins Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-0.93.20030118.ebuild,v 1.6 2004/05/12 13:03:24 pappy Exp $ inherit mount-boot eutils flag-o-matic @@ -44,6 +44,7 @@ src_unpack() { src_compile() { filter-flags -fstack-protector + filter-flags -fPIC ### i686-specific code in the boot loader is a bad idea; disabling to ensure ### at least some compatibility if the hard drive is moved to an older or @@ -52,16 +53,14 @@ src_compile() { use static && export LDFLAGS="${LDFLAGS} -static" - # http://www.gentoo.org/proj/en/hardened/etdyn-ssp.xml - if has_version 'sys-devel/hardened-gcc' && [ "${CC}"="gcc" ] - then - # the configure script has problems with -nostdlib - CC="${CC} -yet_exec -yno_propolice" - fi + # hardened automatic PIC plus PIE building should be suppressed + # because of assembler instructions that cannot be compiled PIC + HARDENED_CFLAGS="`test_flag -fno-pic` `test_flag -nopie` `test_flag -fno-stack-protector`" - econf --exec-prefix=/ \ + econf CC="${CC:=gcc} ${HARDENED_CFLAGS}" --exec-prefix=/ \ --disable-auto-linux-mem-opt || die - emake || die + + emake CC="${CC:=gcc} ${HARDENED_CFLAGS}" || die } src_install() { -- cgit v1.2.3-65-gdbad