diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-03-12 01:31:19 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-03-12 01:31:19 +0000 |
commit | 2df289f30a31095bc6237dc33b1ccb02faed4735 (patch) | |
tree | 8ed2e711429ee9599f0d7fd977a7263bd9384e17 /sys-boot/grub | |
parent | Remove old. (diff) | |
download | gentoo-2-2df289f30a31095bc6237dc33b1ccb02faed4735.tar.gz gentoo-2-2df289f30a31095bc6237dc33b1ccb02faed4735.tar.bz2 gentoo-2-2df289f30a31095bc6237dc33b1ccb02faed4735.zip |
fix tests # 71811
(Portage version: 2.0.51.19)
Diffstat (limited to 'sys-boot/grub')
-rw-r--r-- | sys-boot/grub/files/grub-0.96-bounced-checks.patch | 19 | ||||
-rw-r--r-- | sys-boot/grub/grub-0.96-r1.ebuild | 13 |
2 files changed, 28 insertions, 4 deletions
diff --git a/sys-boot/grub/files/grub-0.96-bounced-checks.patch b/sys-boot/grub/files/grub-0.96-bounced-checks.patch new file mode 100644 index 000000000000..6ad2c82ee0f4 --- /dev/null +++ b/sys-boot/grub/files/grub-0.96-bounced-checks.patch @@ -0,0 +1,19 @@ +Remove tests that the grub maintainers say can be ignored. + +http://lists.gnu.org/archive/html/bug-grub/2004-05/msg00076.html + +--- grub-0.96/stage2/size_test ++++ grub-0.96/stage2/size_test +@@ -36,9 +36,9 @@ + } + + # The bootloader area of a FFS partition is 14 sectors. +-check ffs_stage1_5 7168 +- +-check ufs2_stage1_5 7168 ++#check ffs_stage1_5 7168 ++# ++#check ufs2_stage1_5 7168 + + # Stage 1.5 can be installed in the sectors immediately after MBR in the + # first cylinder, so the size is (63 - 1) sectors. diff --git a/sys-boot/grub/grub-0.96-r1.ebuild b/sys-boot/grub/grub-0.96-r1.ebuild index 6411aae65201..485b9135b22d 100644 --- a/sys-boot/grub/grub-0.96-r1.ebuild +++ b/sys-boot/grub/grub-0.96-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-0.96-r1.ebuild,v 1.2 2005/03/11 14:04:32 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-0.96-r1.ebuild,v 1.3 2005/03/12 01:31:19 vapier Exp $ inherit mount-boot eutils flag-o-matic toolchain-funcs @@ -43,6 +43,9 @@ src_unpack() { # PIC patch by psm & kevin f. quinn #80693 epatch "${FILESDIR}"/${P}-PIC.patch + # disable testing of FFS and UFS2 images that always fail (bug #71811) + epatch "${FILESDIR}"/${P}-bounced-checks.patch + # i2o RAID support #76143 epatch "${FILESDIR}"/${P}-i2o-raid.patch @@ -65,7 +68,6 @@ src_compile() { ### 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 ### incompatible system. - unset CFLAGS # grub-0.95 added -fno-stack-protector detection, to disable ssp for stage2, # but the objcopy's (faulty) test fails if -fstack-protector is default. @@ -76,7 +78,6 @@ src_compile() { # STAGE2_CFLAGS is not allowed to be used on emake command-line, it overwrites # -fno-stack-protector detected by configure, removed from netboot's emake. - append-flags -DNDEBUG export grub_cv_prog_objcopy_absolute=yes #79734 use static && append-ldflags -static @@ -104,7 +105,7 @@ src_compile() { # Now build the regular grub # Note that FFS and UFS2 support are broken for now - stage1_5 files too big - CFLAGS="${CFLAGS}" \ + CFLAGS="" \ econf \ --libdir=/lib \ --datadir=/usr/lib/grub \ @@ -153,6 +154,10 @@ pkg_postinst() { [[ -f ${x} ]] && cp -p ${x} /boot/grub done + # hardened voodoo + [[ -x /sbin/chpax ]] && /sbin/chpax -spme /sbin/grub + [[ -x /sbin/paxctl ]] && /sbin/paxctl -spme /sbin/grub + [[ -e /boot/grub/grub.conf ]] \ && /sbin/grub \ --batch \ |