1 |
commit: 7feba33143b3b11e91448c9f331ecefd4cd05aa0 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 7 16:14:01 2018 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 7 16:14:25 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7feba331 |
7 |
|
8 |
sys-boot/silo: fix a build against PIC profiles |
9 |
|
10 |
Build failed on default/linux/sparc/17.0 profiles as |
11 |
./util -a silotftp.map silotftp.aout silotftp2.aout silotftp.b silotftp.b2 |
12 |
Distance between two changes larger than 63K 3 83881 0 |
13 |
|
14 |
I suspect th breakage happens due code inflation (caused by |
15 |
-fPIC) on new profiles. iamben reports that -fno-PIC makes |
16 |
silo to build and boot a sparc machine \o/ |
17 |
|
18 |
Fixed-by: iamben |
19 |
Tested-by: iamben |
20 |
Package-Manager: Portage-2.3.36, Repoman-2.3.9 |
21 |
|
22 |
sys-boot/silo/silo-1.4.14_p20120819-r1.ebuild | 4 +++- |
23 |
sys-boot/silo/silo-1.4.14_p20170829.ebuild | 4 +++- |
24 |
2 files changed, 6 insertions(+), 2 deletions(-) |
25 |
|
26 |
diff --git a/sys-boot/silo/silo-1.4.14_p20120819-r1.ebuild b/sys-boot/silo/silo-1.4.14_p20120819-r1.ebuild |
27 |
index 2431901f440..946707a2947 100644 |
28 |
--- a/sys-boot/silo/silo-1.4.14_p20120819-r1.ebuild |
29 |
+++ b/sys-boot/silo/silo-1.4.14_p20120819-r1.ebuild |
30 |
@@ -40,7 +40,9 @@ src_prepare() { |
31 |
sed -i -e "s/1.4.14/1.4.14_git20120819_p1/g" Rules.make || die |
32 |
|
33 |
# Fix build failure |
34 |
- sed -i -e "s/-fno-strict-aliasing/-fno-strict-aliasing -U_FORTIFY_SOURCE -mcpu=v9/g" Rules.make || die |
35 |
+ # -fno-PIC is needed to shrink silo size back to manageable on |
36 |
+ # profiles where gcc has -fPIC default (via --enable-default-pie). |
37 |
+ sed -i -e "s/-fno-strict-aliasing/-fno-strict-aliasing -U_FORTIFY_SOURCE -mcpu=v9 -fno-PIC/g" Rules.make || die |
38 |
} |
39 |
|
40 |
src_compile() { |
41 |
|
42 |
diff --git a/sys-boot/silo/silo-1.4.14_p20170829.ebuild b/sys-boot/silo/silo-1.4.14_p20170829.ebuild |
43 |
index dde2b3c9a73..e62265f8848 100644 |
44 |
--- a/sys-boot/silo/silo-1.4.14_p20170829.ebuild |
45 |
+++ b/sys-boot/silo/silo-1.4.14_p20170829.ebuild |
46 |
@@ -29,7 +29,9 @@ src_prepare() { |
47 |
sed -i -e "s/1.4.14/1.4.14_git20170829/g" Rules.make || die |
48 |
|
49 |
# Fix build failure |
50 |
- sed -i -e "s/-fno-strict-aliasing/-fno-strict-aliasing -U_FORTIFY_SOURCE -mcpu=v9/g" Rules.make || die |
51 |
+ # -fno-PIC is needed to shrink silo size back to manageable on |
52 |
+ # profiles where gcc has -fPIC default (via --enable-default-pie). |
53 |
+ sed -i -e "s/-fno-strict-aliasing/-fno-strict-aliasing -U_FORTIFY_SOURCE -mcpu=v9 -fno-PIC/g" Rules.make || die |
54 |
|
55 |
# Don't strip ieee32.b during compile |
56 |
sed -i -e '/^ $(STRIP) ieee32.b/d' first/Makefile || die |