1 |
commit: d365b9dc92f26040599047dabd5cde10831f56f9 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 23 21:19:03 2018 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 23 22:35:59 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d365b9dc |
7 |
|
8 |
sys-devel/gcc: cut 1.4 patchset for 4.8.5 |
9 |
|
10 |
Three new patches and two updates: |
11 |
U 09_all_default-ssp.patch |
12 |
disable stack protector when stage1 is built, |
13 |
fix ffreestanding handling |
14 |
+ 34_all_libjava-classpath-locale-sort.patch |
15 |
fix sortting on cs_CZ locale |
16 |
U 74_all_gcc48_cloog-dl.patch |
17 |
update cloog patch |
18 |
+ 94_all_gcc-gperf-gnu-inline.patch |
19 |
fix build failure against new gcc |
20 |
+ 95_all_ucontext-to-ucontext_t.patch |
21 |
fix build failure against glibc-2.28 |
22 |
|
23 |
Bug: https://bugs.gentoo.org/629502 |
24 |
Package-Manager: Portage-2.3.49, Repoman-2.3.11 |
25 |
|
26 |
sys-devel/gcc/Manifest | 1 + |
27 |
sys-devel/gcc/gcc-4.8.5-r2.ebuild | 47 +++++++++++++++++++++++++++++++++++++++ |
28 |
2 files changed, 48 insertions(+) |
29 |
|
30 |
diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest |
31 |
index a75d67a6531..5b08a01be38 100644 |
32 |
--- a/sys-devel/gcc/Manifest |
33 |
+++ b/sys-devel/gcc/Manifest |
34 |
@@ -37,6 +37,7 @@ DIST gcc-4.7.4-piepatches-v0.5.5.tar.bz2 15358 BLAKE2B e0df0b19829d9f9b1e8719467 |
35 |
DIST gcc-4.7.4-uclibc-patches-1.0.tar.bz2 3019 BLAKE2B b24522bd5516e0f2bb4e8d20437e0a0aed22ea8cae3c78fc600688f71a57bb7fbd3d431737a30e4406a9ff5426ed7d2289b3efac4d5efaa5841f7db290ef023c SHA512 c2e6c96b74365f8233f6106fa03d94075b60f6f77c683aa2e27aceb007da723243f8e3ddea8b178e6a0f7939b8e35615165534dc74e5050f87680ab261a31c52 |
36 |
DIST gcc-4.7.4.tar.bz2 82935453 BLAKE2B 98cc902dd1506161b96c8eba10e5a5c7fb11d2dfd95ebac15825806fcdb262a1ff962b72275dcfc8453b753164fc234bdd666b207202cfd5a0a2b4cd09b8c741 SHA512 dfcb737073191e628231031a3571ec77ee760a59377630f4a6e4fdfa66f9ddad39fde47e3f0f227eb43cdf90e0d34cde5abdc9ac892c1e111a911062a66c9189 |
37 |
DIST gcc-4.8.5-patches-1.3.tar.bz2 26025 BLAKE2B 3744dfcac069b5f8321fc9cfb019d44c848d70d17e5908d3d97f0c314b98a7fd884235fec2b21c93027f6152577439f6d424f96836b113dcd589604af969c756 SHA512 8d190f81ca0d25281250dbf0a670fcf12334b0811a5bf664e6450942a2996d02b979c6e8f8760b287edad06df3d1f8e2fe5cb0c3dcf9677c3420457d841d9506 |
38 |
+DIST gcc-4.8.5-patches-1.4.tar.bz2 28937 BLAKE2B ecc1d6836b2a2f924a6c5bc224804273901bd362436245fa5ac7c4648693c41931ae970ae8ba0b5a5e43cf2f73493bda2b950a96618df2557f88114b6becab39 SHA512 5cffbc0004e010b8f3140dee3a0e1414d9003461330250ca609eaa98f5ef78ea1f55eae8ad2dc17f11370e036c958825c2940962cd22ca661b469b116b8be8c2 |
39 |
DIST gcc-4.8.5-piepatches-v0.6.2.tar.bz2 14265 BLAKE2B b3bb37957ba8ee446967a3a60fee61c26a49f237241bbaf8bb3c3ec63656dd0492f518b129c8ef43cc06091742bc9c0b1042bb612c1110732b1e9608f28753ad SHA512 cd6af4047d4719dae9dbe86ce5342c7d8ddec38aad032486713b08e1b0cb711f5ca017e08d583137d51b8d4ef673366ba310e71bca7b49b82e9314781d6e9d99 |
40 |
DIST gcc-4.8.5-uclibc-patches-1.0.tar.bz2 2976 BLAKE2B 1a804fd0b2fd5756e824f3eb511cf62d6af0fa8059ebcffadf6deb85e242ec8728b7883f2e054b465b87e4b61b6a2b55061a68eb8329c3a79a659d4c15808d21 SHA512 5469128eab06525915c75241797ad9ec4b63072ebfd5e110319bf810633cf3fbed39bbda4f6a0c74e537b248e7642780ecbe2086ad10be6e66b7dd289fa6534f |
41 |
DIST gcc-4.8.5.tar.bz2 86165587 BLAKE2B 760931013f96083078e74b8376eede6c23954e1f41cb44dbbdd8220fdede48807d89b9ca44fc4ae309f7cef441831b533512f1145cd563c5c797e96cf6cf1bfa SHA512 47fdfeca0c0a624cdec9c4ae47137d056c918d5c386d4b96985bb3c8172aba377cb66cbcc30e80832fd244a7d98f562c20198056915c70cfef0977545073a8ea |
42 |
|
43 |
diff --git a/sys-devel/gcc/gcc-4.8.5-r2.ebuild b/sys-devel/gcc/gcc-4.8.5-r2.ebuild |
44 |
new file mode 100644 |
45 |
index 00000000000..4fa56956b9d |
46 |
--- /dev/null |
47 |
+++ b/sys-devel/gcc/gcc-4.8.5-r2.ebuild |
48 |
@@ -0,0 +1,47 @@ |
49 |
+# Copyright 1999-2018 Gentoo Authors |
50 |
+# Distributed under the terms of the GNU General Public License v2 |
51 |
+ |
52 |
+EAPI="5" |
53 |
+ |
54 |
+PATCH_VER="1.4" |
55 |
+UCLIBC_VER="1.0" |
56 |
+ |
57 |
+# Hardened gcc 4 stuff |
58 |
+PIE_VER="0.6.2" |
59 |
+SPECS_VER="0.2.0" |
60 |
+SPECS_GCC_VER="4.4.3" |
61 |
+# arch/libc configurations known to be stable with {PIE,SSP}-by-default |
62 |
+PIE_GLIBC_STABLE="x86 amd64 mips ppc ppc64 arm ia64" |
63 |
+PIE_UCLIBC_STABLE="x86 arm amd64 mips ppc ppc64" |
64 |
+SSP_STABLE="amd64 x86 mips ppc ppc64 arm" |
65 |
+# uclibc need tls and nptl support for SSP support |
66 |
+# uclibc need to be >= 0.9.33 |
67 |
+SSP_UCLIBC_STABLE="x86 amd64 mips ppc ppc64 arm" |
68 |
+#end Hardened stuff |
69 |
+ |
70 |
+inherit eutils toolchain |
71 |
+ |
72 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
73 |
+ |
74 |
+RDEPEND="" |
75 |
+DEPEND="${RDEPEND} |
76 |
+ elibc_glibc? ( >=sys-libs/glibc-2.8 ) |
77 |
+ >=${CATEGORY}/binutils-2.20" |
78 |
+ |
79 |
+if [[ ${CATEGORY} != cross-* ]] ; then |
80 |
+ PDEPEND="${PDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.8 )" |
81 |
+fi |
82 |
+ |
83 |
+src_prepare() { |
84 |
+ if has_version '<sys-libs/glibc-2.12' ; then |
85 |
+ ewarn "Your host glibc is too old; disabling automatic fortify." |
86 |
+ ewarn "Please rebuild gcc after upgrading to >=glibc-2.12 #362315" |
87 |
+ EPATCH_EXCLUDE+=" 10_all_default-fortify-source.patch" |
88 |
+ fi |
89 |
+ |
90 |
+ toolchain_src_prepare |
91 |
+ |
92 |
+ use vanilla && return 0 |
93 |
+ #Use -r1 for newer piepatchet that use DRIVER_SELF_SPECS for the hardened specs. |
94 |
+ [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env-r1.patch |
95 |
+} |