1 |
commit: 5251f3d97f0ec56ffd340e3977a4a7af7c82c80d |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jun 1 08:33:35 2019 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jun 1 10:10:30 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5251f3d9 |
7 |
|
8 |
sys-devel/gcc: 4.8.5: cut 1.5 patchset |
9 |
|
10 |
Four new patches: |
11 |
96_all_stage1-ldflags.patch: fix LDFLAGS passing to STAGE1 |
12 |
97_all_libjava-ucontext.patch: fix ucontext definition for glibc-2.28 |
13 |
98_all_asan-signal_h.patch: fix signal declarations for glibc-2.28 |
14 |
99_all_libsanitizer-res_state-glibc-2.28.patch: fix libsanitizer for glibc-2.28 |
15 |
|
16 |
Closes: https://bugs.gentoo.org/629502 |
17 |
Closes: https://bugs.gentoo.org/671568 |
18 |
Package-Manager: Portage-2.3.67, Repoman-2.3.13 |
19 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
20 |
|
21 |
sys-devel/gcc/Manifest | 1 + |
22 |
sys-devel/gcc/gcc-4.8.5-r3.ebuild | 47 +++++++++++++++++++++++++++++++++++++++ |
23 |
2 files changed, 48 insertions(+) |
24 |
|
25 |
diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest |
26 |
index e3e1ea06bfd..f809e8afb38 100644 |
27 |
--- a/sys-devel/gcc/Manifest |
28 |
+++ b/sys-devel/gcc/Manifest |
29 |
@@ -45,6 +45,7 @@ DIST gcc-4.7.4-uclibc-patches-1.0.tar.bz2 3019 BLAKE2B b24522bd5516e0f2bb4e8d204 |
30 |
DIST gcc-4.7.4.tar.bz2 82935453 BLAKE2B 98cc902dd1506161b96c8eba10e5a5c7fb11d2dfd95ebac15825806fcdb262a1ff962b72275dcfc8453b753164fc234bdd666b207202cfd5a0a2b4cd09b8c741 SHA512 dfcb737073191e628231031a3571ec77ee760a59377630f4a6e4fdfa66f9ddad39fde47e3f0f227eb43cdf90e0d34cde5abdc9ac892c1e111a911062a66c9189 |
31 |
DIST gcc-4.8.5-patches-1.3.tar.bz2 26025 BLAKE2B 3744dfcac069b5f8321fc9cfb019d44c848d70d17e5908d3d97f0c314b98a7fd884235fec2b21c93027f6152577439f6d424f96836b113dcd589604af969c756 SHA512 8d190f81ca0d25281250dbf0a670fcf12334b0811a5bf664e6450942a2996d02b979c6e8f8760b287edad06df3d1f8e2fe5cb0c3dcf9677c3420457d841d9506 |
32 |
DIST gcc-4.8.5-patches-1.4.tar.bz2 28937 BLAKE2B ecc1d6836b2a2f924a6c5bc224804273901bd362436245fa5ac7c4648693c41931ae970ae8ba0b5a5e43cf2f73493bda2b950a96618df2557f88114b6becab39 SHA512 5cffbc0004e010b8f3140dee3a0e1414d9003461330250ca609eaa98f5ef78ea1f55eae8ad2dc17f11370e036c958825c2940962cd22ca661b469b116b8be8c2 |
33 |
+DIST gcc-4.8.5-patches-1.5.tar.bz2 30345 BLAKE2B 1bd2868e675b43c15d4bafe3c18655042ebf2687ca28675d0e94135251375d6912e086f3132620d8a20a2a6d11a6282b2749c7dbd3b8bb1307909d3502610c32 SHA512 238b5a852521feb90f4f1df691eaeb95c7d125d749253fb800208265e10c9a357842206fcd78a4a2d9c6c16362b623ae1c4878f21e3a9010c6dbffafc5a31f66 |
34 |
DIST gcc-4.8.5-piepatches-v0.6.2.tar.bz2 14265 BLAKE2B b3bb37957ba8ee446967a3a60fee61c26a49f237241bbaf8bb3c3ec63656dd0492f518b129c8ef43cc06091742bc9c0b1042bb612c1110732b1e9608f28753ad SHA512 cd6af4047d4719dae9dbe86ce5342c7d8ddec38aad032486713b08e1b0cb711f5ca017e08d583137d51b8d4ef673366ba310e71bca7b49b82e9314781d6e9d99 |
35 |
DIST gcc-4.8.5-uclibc-patches-1.0.tar.bz2 2976 BLAKE2B 1a804fd0b2fd5756e824f3eb511cf62d6af0fa8059ebcffadf6deb85e242ec8728b7883f2e054b465b87e4b61b6a2b55061a68eb8329c3a79a659d4c15808d21 SHA512 5469128eab06525915c75241797ad9ec4b63072ebfd5e110319bf810633cf3fbed39bbda4f6a0c74e537b248e7642780ecbe2086ad10be6e66b7dd289fa6534f |
36 |
DIST gcc-4.8.5.tar.bz2 86165587 BLAKE2B 760931013f96083078e74b8376eede6c23954e1f41cb44dbbdd8220fdede48807d89b9ca44fc4ae309f7cef441831b533512f1145cd563c5c797e96cf6cf1bfa SHA512 47fdfeca0c0a624cdec9c4ae47137d056c918d5c386d4b96985bb3c8172aba377cb66cbcc30e80832fd244a7d98f562c20198056915c70cfef0977545073a8ea |
37 |
|
38 |
diff --git a/sys-devel/gcc/gcc-4.8.5-r3.ebuild b/sys-devel/gcc/gcc-4.8.5-r3.ebuild |
39 |
new file mode 100644 |
40 |
index 00000000000..006faad08fa |
41 |
--- /dev/null |
42 |
+++ b/sys-devel/gcc/gcc-4.8.5-r3.ebuild |
43 |
@@ -0,0 +1,47 @@ |
44 |
+# Copyright 1999-2019 Gentoo Authors |
45 |
+# Distributed under the terms of the GNU General Public License v2 |
46 |
+ |
47 |
+EAPI="5" |
48 |
+ |
49 |
+PATCH_VER="1.5" |
50 |
+UCLIBC_VER="1.0" |
51 |
+ |
52 |
+# Hardened gcc 4 stuff |
53 |
+PIE_VER="0.6.2" |
54 |
+SPECS_VER="0.2.0" |
55 |
+SPECS_GCC_VER="4.4.3" |
56 |
+# arch/libc configurations known to be stable with {PIE,SSP}-by-default |
57 |
+PIE_GLIBC_STABLE="x86 amd64 mips ppc ppc64 arm ia64" |
58 |
+PIE_UCLIBC_STABLE="x86 arm amd64 mips ppc ppc64" |
59 |
+SSP_STABLE="amd64 x86 mips ppc ppc64 arm" |
60 |
+# uclibc need tls and nptl support for SSP support |
61 |
+# uclibc need to be >= 0.9.33 |
62 |
+SSP_UCLIBC_STABLE="x86 amd64 mips ppc ppc64 arm" |
63 |
+#end Hardened stuff |
64 |
+ |
65 |
+inherit eutils toolchain |
66 |
+ |
67 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
68 |
+ |
69 |
+RDEPEND="" |
70 |
+DEPEND="${RDEPEND} |
71 |
+ elibc_glibc? ( >=sys-libs/glibc-2.8 ) |
72 |
+ >=${CATEGORY}/binutils-2.20" |
73 |
+ |
74 |
+if [[ ${CATEGORY} != cross-* ]] ; then |
75 |
+ PDEPEND="${PDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.8 )" |
76 |
+fi |
77 |
+ |
78 |
+src_prepare() { |
79 |
+ if has_version '<sys-libs/glibc-2.12' ; then |
80 |
+ ewarn "Your host glibc is too old; disabling automatic fortify." |
81 |
+ ewarn "Please rebuild gcc after upgrading to >=glibc-2.12 #362315" |
82 |
+ EPATCH_EXCLUDE+=" 10_all_default-fortify-source.patch" |
83 |
+ fi |
84 |
+ |
85 |
+ toolchain_src_prepare |
86 |
+ |
87 |
+ use vanilla && return 0 |
88 |
+ #Use -r1 for newer piepatchet that use DRIVER_SELF_SPECS for the hardened specs. |
89 |
+ [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env-r1.patch |
90 |
+} |