sys-boot/palo: Fix miscompilation of iplboot with sys-devel/gcc-4.9 by Werner Meisner...
authorJeroen Roovers <jer@gentoo.org>
Sat, 21 May 2016 09:44:37 +0000 (11:44 +0200)
committerJeroen Roovers <jer@gentoo.org>
Sat, 21 May 2016 09:45:33 +0000 (11:45 +0200)
Package-Manager: portage-2.3.0_rc1

sys-boot/palo/files/palo-1.95-iplboot-gcc-4.9.patch [new file with mode: 0644]
sys-boot/palo/palo-1.95-r1.ebuild [moved from sys-boot/palo/palo-1.95.ebuild with 76% similarity]

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 (file)
index 0000000..bff0f4c
--- /dev/null
@@ -0,0 +1,36 @@
+From eb869303b0c140e806f81f022211648e42290d6d Mon Sep 17 00:00:00 2001
+From: Helge Deller <deller@gmx.de>
+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
+
similarity index 76%
rename from sys-boot/palo/palo-1.95.ebuild
rename to sys-boot/palo/palo-1.95-r1.ebuild
index 03ea98239607eafb8ef94f4f54ae3ba1fcb13f27..efa3eb2f7ae40930d628996b3fdad0c9941176f1 100644 (file)
@@ -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