1 |
commit: 4c804ef51e6ee9ddf02e838a547e0345464468a3 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jun 1 08:37:50 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=4c804ef5 |
7 |
|
8 |
sys-devel/gcc: 4.7.4: cut 1.6 patchset |
9 |
|
10 |
Single patch to fix libjava build on glibc-2.28 |
11 |
(ucontext changes). |
12 |
|
13 |
Closes: https://bugs.gentoo.org/629502 |
14 |
Package-Manager: Portage-2.3.67, Repoman-2.3.13 |
15 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
16 |
|
17 |
sys-devel/gcc/Manifest | 1 + |
18 |
sys-devel/gcc/gcc-4.7.4-r3.ebuild | 47 +++++++++++++++++++++++++++++++++++++++ |
19 |
2 files changed, 48 insertions(+) |
20 |
|
21 |
diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest |
22 |
index f809e8afb38..06f90a48a38 100644 |
23 |
--- a/sys-devel/gcc/Manifest |
24 |
+++ b/sys-devel/gcc/Manifest |
25 |
@@ -40,6 +40,7 @@ DIST gcc-4.6.4-uclibc-patches-1.0.tar.bz2 3010 BLAKE2B e841db5125638b0ec34323d05 |
26 |
DIST gcc-4.6.4.tar.bz2 72006076 BLAKE2B 321c14c097c18cf60c32d228720980717e25e22e26ce5e75c3a411c423f9657eb896974200664132e2fb10c3010c5136d2da7f3c916fffddf7e4afe4e8bfdc20 SHA512 b5a5395782e0b9e61cda052f6e00c8575d1aa0b7e8db9e34c06e4e45f12ff37b436018536b7fa69a04a4235b5b368895652e3ed8fab2fe11763f9782ed9161dc |
27 |
DIST gcc-4.7.4-patches-1.4.tar.bz2 18072 BLAKE2B 6bab25aee9f9ef605ce2942928a9d1aa91371b8fdec00643805e5010a4b0ffb043e0dd1a119d1064f79e499983374ed39e475a9718fce632cad07811363ed56b SHA512 9f5d68ba62aee909023542dcece81e4e448ea750254258107d4f70291d8ae99469c4518e42ffddbe6b622b258f463127be6e6ef7eaaeeeb0f59b3b719f3eadca |
28 |
DIST gcc-4.7.4-patches-1.5.tar.bz2 20193 BLAKE2B 56c6258ee7c8c5657161e8eb182364b862d536300dbbb6ed7e781b45456a265debd299dc16496a543a291313af4d2cfd5f17a842abf64ebc3635d6b50458e4ae SHA512 340dea0cb11c676b5936ad1a32317987cd3a9b3271cf99bd50e40be39d5d361a218f4312deb2a6a17c6ae1fc7fd229b718857fde0e303b3537a4b89ba918c8d3 |
29 |
+DIST gcc-4.7.4-patches-1.6.tar.bz2 20746 BLAKE2B 56687d1788b2a6484fd52dbfffef77f19f3182a38d90ccd24f8df6fbe5daeb3b27176cf01de7ce3723e79b427cd3cc77e06e690e13e8271a0a5067c20117c273 SHA512 4ad9a08f1c9b21b3d9f069346ca752bb9772b9826d3cc50abb9a1cc2b916c208d6a715efdfe3602d5a3f08b6c058e5bfb43f87248b7a09d8b0fc39e2403580bc |
30 |
DIST gcc-4.7.4-piepatches-v0.5.5.tar.bz2 15358 BLAKE2B e0df0b19829d9f9b1e8719467a6e15336d58ccf50c182c3d14438bc7e8690940535f6391b83f359c4e0bedf16814b7d4e2b0888f4698740be511bf6a574f9556 SHA512 f5e078bf4c17f7b5be102f1e3358d91c72e80363b5e055a92461f78399a1bf27bf6cb690d41900719bb260b6529f5d1aac999e613fda6ac5e4efa27f622510e6 |
31 |
DIST gcc-4.7.4-uclibc-patches-1.0.tar.bz2 3019 BLAKE2B b24522bd5516e0f2bb4e8d20437e0a0aed22ea8cae3c78fc600688f71a57bb7fbd3d431737a30e4406a9ff5426ed7d2289b3efac4d5efaa5841f7db290ef023c SHA512 c2e6c96b74365f8233f6106fa03d94075b60f6f77c683aa2e27aceb007da723243f8e3ddea8b178e6a0f7939b8e35615165534dc74e5050f87680ab261a31c52 |
32 |
DIST gcc-4.7.4.tar.bz2 82935453 BLAKE2B 98cc902dd1506161b96c8eba10e5a5c7fb11d2dfd95ebac15825806fcdb262a1ff962b72275dcfc8453b753164fc234bdd666b207202cfd5a0a2b4cd09b8c741 SHA512 dfcb737073191e628231031a3571ec77ee760a59377630f4a6e4fdfa66f9ddad39fde47e3f0f227eb43cdf90e0d34cde5abdc9ac892c1e111a911062a66c9189 |
33 |
|
34 |
diff --git a/sys-devel/gcc/gcc-4.7.4-r3.ebuild b/sys-devel/gcc/gcc-4.7.4-r3.ebuild |
35 |
new file mode 100644 |
36 |
index 00000000000..8aad0d38326 |
37 |
--- /dev/null |
38 |
+++ b/sys-devel/gcc/gcc-4.7.4-r3.ebuild |
39 |
@@ -0,0 +1,47 @@ |
40 |
+# Copyright 1999-2019 Gentoo Authors |
41 |
+# Distributed under the terms of the GNU General Public License v2 |
42 |
+ |
43 |
+EAPI="5" |
44 |
+ |
45 |
+PATCH_VER="1.6" |
46 |
+UCLIBC_VER="1.0" |
47 |
+ |
48 |
+# Hardened gcc 4 stuff |
49 |
+PIE_VER="0.5.5" |
50 |
+SPECS_VER="0.2.0" |
51 |
+SPECS_GCC_VER="4.4.3" |
52 |
+# arch/libc configurations known to be stable with {PIE,SSP}-by-default |
53 |
+PIE_GLIBC_STABLE="x86 amd64 ppc ppc64 arm ia64" |
54 |
+PIE_UCLIBC_STABLE="x86 arm amd64 ppc ppc64" |
55 |
+SSP_STABLE="amd64 x86 ppc ppc64 arm" |
56 |
+# uclibc need tls and nptl support for SSP support |
57 |
+# uclibc need to be >= 0.9.33 |
58 |
+SSP_UCLIBC_STABLE="x86 amd64 ppc ppc64 arm" |
59 |
+#end Hardened stuff |
60 |
+ |
61 |
+inherit eutils toolchain |
62 |
+ |
63 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 -amd64-fbsd -x86-fbsd" |
64 |
+ |
65 |
+RDEPEND="" |
66 |
+DEPEND="${RDEPEND} |
67 |
+ elibc_glibc? ( >=sys-libs/glibc-2.8 ) |
68 |
+ >=${CATEGORY}/binutils-2.18" |
69 |
+ |
70 |
+if [[ ${CATEGORY} != cross-* ]] ; then |
71 |
+ PDEPEND="${PDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.8 )" |
72 |
+fi |
73 |
+ |
74 |
+src_prepare() { |
75 |
+ if has_version '<sys-libs/glibc-2.12' ; then |
76 |
+ ewarn "Your host glibc is too old; disabling automatic fortify." |
77 |
+ ewarn "Please rebuild gcc after upgrading to >=glibc-2.12 #362315" |
78 |
+ EPATCH_EXCLUDE+=" 10_all_default-fortify-source.patch" |
79 |
+ fi |
80 |
+ |
81 |
+ toolchain_src_prepare |
82 |
+ |
83 |
+ use vanilla && return 0 |
84 |
+ |
85 |
+ [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch |
86 |
+} |