From: Jeroen Roovers Date: Sat, 21 May 2016 09:44:37 +0000 (+0200) Subject: sys-boot/palo: Fix miscompilation of iplboot with sys-devel/gcc-4.9 by Werner Meisner... X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=66ea028746f90e7263c4171e5016234e0e635bd8;p=gentoo.git sys-boot/palo: Fix miscompilation of iplboot with sys-devel/gcc-4.9 by Werner Meisner (bug #583436). Package-Manager: portage-2.3.0_rc1 --- diff --git a/sys-boot/palo/files/palo-1.95-iplboot-gcc-4.9.patch b/sys-boot/palo/files/palo-1.95-iplboot-gcc-4.9.patch new file mode 100644 index 000000000000..bff0f4c65270 --- /dev/null +++ b/sys-boot/palo/files/palo-1.95-iplboot-gcc-4.9.patch @@ -0,0 +1,36 @@ +From eb869303b0c140e806f81f022211648e42290d6d Mon Sep 17 00:00:00 2001 +From: Helge Deller +Date: Wed, 18 Feb 2015 21:26:43 +0100 +Subject: Add -fno-delete-null-pointer-checks compiler option + +Otherwise gcc-4.9 will miscompile the IPL bootloader since it +will optimize out accesses to PAGE0 +--- + ipl/Makefile | 4 +--- + 1 file changed, 1 insertion(+), 3 deletions(-) + +diff --git a/ipl/Makefile b/ipl/Makefile +index 7695ea5..6b8e105 100644 +--- a/ipl/Makefile ++++ b/ipl/Makefile +@@ -38,7 +38,7 @@ endif + # Source sharing with palo + VPATH=../lib:. + +-CFLAGS = -DIPL_LOADER -I. -I../lib -I../include -O2 -mdisable-fpregs -Wall ++CFLAGS = -DIPL_LOADER -I. -I../lib -I../include -O2 -mdisable-fpregs -Wall -fno-delete-null-pointer-checks + LDFLAGS = -N --section-start .init=0x60000 -e '$$START$$' + + all: iplelf +@@ -61,8 +61,6 @@ distclean: clean + .S.o: + $(CC) -D__ASSEMBLY__ $(AFLAGS) -traditional -c -o $*.o $< + +-###############} +- + byteio.o \ + ext2.o \ + fileio.o \ +-- +cgit v0.12 + diff --git a/sys-boot/palo/palo-1.95.ebuild b/sys-boot/palo/palo-1.95-r1.ebuild similarity index 76% rename from sys-boot/palo/palo-1.95.ebuild rename to sys-boot/palo/palo-1.95-r1.ebuild index 03ea98239607..efa3eb2f7ae4 100644 --- a/sys-boot/palo/palo-1.95.ebuild +++ b/sys-boot/palo/palo-1.95-r1.ebuild @@ -1,9 +1,8 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ -EAPI=5 - +EAPI=6 inherit eutils flag-o-matic toolchain-funcs DESCRIPTION="PALO : PArisc Linux Loader" @@ -12,11 +11,12 @@ SRC_URI="mirror://debian/pool/main/p/${PN}/${P/-/_}.tar.xz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="-* hppa" +KEYWORDS="-* ~hppa" -src_prepare() { - epatch "${FILESDIR}"/${PN}-1.95-toolchain.patch -} +PATCHES=( + "${FILESDIR}"/${PN}-1.95-toolchain.patch + "${FILESDIR}"/${PN}-1.95-iplboot-gcc-4.9.patch +) src_compile() { local target @@ -30,8 +30,7 @@ src_install() { dosbin palo/palo doman palo.8 - dohtml README.html - dodoc Changes TODO debian/changelog + dodoc Changes TODO debian/changelog README.html insinto /etc doins "${FILESDIR}"/palo.conf