Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/prefix:master commit in: sys-devel/gcc/
Date: Tue, 22 Dec 2020 21:30:47
Message-Id: 1608672636.78584815905d5133850551dee2940ac4e1221358.grobian@gentoo
1 commit: 78584815905d5133850551dee2940ac4e1221358
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 22 21:30:36 2020 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 22 21:30:36 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=78584815
7
8 sys-devel/gcc: drop ~ppc-aix
9
10 Bug: https://bugs.gentoo.org/760057
11 Package-Manager: Portage-3.0.12-prefix, Repoman-3.0.2
12 RepoMan-Options: --force
13 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
14
15 sys-devel/gcc/Manifest | 6 ---
16 sys-devel/gcc/gcc-10.1.0-r1.ebuild | 3 +-
17 sys-devel/gcc/gcc-4.1.2.ebuild | 13 +-----
18 sys-devel/gcc/gcc-4.2.4-r2.ebuild | 78 ++-----------------------------
19 sys-devel/gcc/gcc-4.7.3-r1.ebuild | 48 +------------------
20 sys-devel/gcc/gcc-4.8.5-r1.ebuild | 81 +-------------------------------
21 sys-devel/gcc/gcc-4.9.4.ebuild | 85 +---------------------------------
22 sys-devel/gcc/gcc-5.4.0-r4.ebuild | 85 +---------------------------------
23 sys-devel/gcc/gcc-6.4.0-r2.ebuild | 6 +--
24 sys-devel/gcc/gcc-7.3.0-r6.ebuild | 92 ------------------------------------
25 sys-devel/gcc/gcc-7.4.0.ebuild | 5 +-
26 sys-devel/gcc/gcc-8.2.0-r5.ebuild | 95 --------------------------------------
27 sys-devel/gcc/gcc-8.3.0.ebuild | 5 +-
28 sys-devel/gcc/gcc-9.2.0-r3.ebuild | 3 +-
29 14 files changed, 17 insertions(+), 588 deletions(-)
30
31 diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest
32 index d3970689d3..7549317634 100644
33 --- a/sys-devel/gcc/Manifest
34 +++ b/sys-devel/gcc/Manifest
35 @@ -28,12 +28,8 @@ DIST gcc-5.4.0.tar.bz2 95661481 BLAKE2B bf882acfa28cc1064cddd21e25332fff6bc65505
36 DIST gcc-6.4.0-patches-1.4.tar.bz2 13451 BLAKE2B 9934558989405141ae22c941fc4f5b4fb9dc425b0f35b458ab9c2704b8fbf61975a93c3d0e4c9ebde0cc7f935be868e9ad7ebdd78441235b81316fcca339fc42 SHA512 6d94f1ac196deabc8fcd30215bcbec4bbb19924929ef11c3000c8bfa189c59d87f95d37ac8cb0ff2d59cc2fc632b5767dbb80cbe7a354084cb2bc5e14cfbabb2
37 DIST gcc-6.4.0-uclibc-patches-1.0.tar.bz2 1586 BLAKE2B 21f97a9e1c349b3d52def092a03e5a90533521da9af586be7ee527594f2d65745491ff8758d88c99a7ac215bde7ebf4e47a0a36cfcd7e66f70e0bebf2dadd922 SHA512 266dbe2bb53d892a24cd752d5c6833ea33f8df8b11b0471700ee53865243cd41f412f9bea8a369b474c9cd1435faff2e03902c7cb5638dd3ddcaa665aa2ec522
38 DIST gcc-6.4.0.tar.xz 76156220 BLAKE2B 2018c338b28ea644cdd1b327cb0dfe7ee9aa2010357c93f7e71969f587c58d3fdfa2bb4c82a309490c48bc86924400022fa93f41dc6c4345878d1bc1d8204265 SHA512 02c60e54527c7adf584798d5251f8a0b80c93d5deafce82501b2c28e6692e0bd783927bbfc4bc527a863c0cccc025150a34740a9e29badb02d4b48e56a8aba90
39 -DIST gcc-7.3.0-patches-1.8.tar.bz2 14435 BLAKE2B 3e5c1abad56ccd6e0aa7739cb7cd651ec07ef9bf25be554343f1fa0444f251de41bde5fe6f8bb9e85e3f7a5cf8b2b83515647d93d62f338fa7843581fcaff2f8 SHA512 4d9d76b3d47f1af4f23cae15278d165b22065a3d1512323d1e31b5e0cb47e4654733dc43fa11906a3bd18e827621c9a5ec62b73563f8e5ead663c29f7d0d7345
40 -DIST gcc-7.3.0.tar.xz 62462388 BLAKE2B dc8f132b21bd0543c3d9dd17557038aafe65675aa73c540954234a3c972b4c31c939149bd50183d072ab6c8d16919e19daeaaffd619ce2ccd62dbdf9a5bb3302 SHA512 ad41a7e4584e40e92cdf860bc0288500fbaf5dfb7e8c3fcabe9eba809c87bcfa85b46c19c19921b0cdf6d05483faede8287bb9ea120c0d1559449a70e602c8d4
41 DIST gcc-7.4.0-patches-1.1.tar.bz2 8778 BLAKE2B 52b02b3c619b99912ee254599788abebe3963cf85e49b56166069318e340a8e271d767e82798e6062fc2a042a86a88da66ab95f2d9e42933ff17688d616a903f SHA512 02ec2eb2460e24cf46f7a04ca3b80ca120719389a54a740070e991d9c96b6fd55d1fa04eb4249fd3043edc9c0f6519b5babcce76036cd0146183512aaae2d573
42 DIST gcc-7.4.0.tar.xz 62601888 BLAKE2B df91ec680d5389736d3a37a2d85cf2e12fbe87b642fdf4b332e67a043e00944aca00243cc6709f86abd92115cb5a78502146636395571d1ea4899531e15d5d0e SHA512 8864d8e4b97c2e1a4f17422f6e68120172ebefeab97b1757734f7185ca68a6b9a89011c6833c03fa454c17b0ac35b15e1d284881e6971035948ac6100f3aa45e
43 -DIST gcc-8.2.0-patches-1.6.tar.bz2 17138 BLAKE2B edbeba9c41972836de072955c0db51406603aaf0dbb5f84ac1c5d8d2d61a8df6d725356655b69e3678950a0dc6dacc1bc2bf56f3620d685fe5c32045b3893f96 SHA512 32e7bddb5ec288def1e5c79d58023d90e29d77e83b70e3f21a22f4da78061cc49184d92c43807bdfd56a5067cbb9a8cfbfcb514016662aa1a24d791c7bd87b6b
44 -DIST gcc-8.2.0.tar.xz 63460876 BLAKE2B c5372b0bdfcd2729577dca287b294623b78c583491998404eb307768c573618bdaaedb7d9ae0e39ba41a62a14b9525dff0e3083285754b7f5bb9987ecf635185 SHA512 64898a165f67e136d802a92e7633bf1b06c85266027e52127ea025bf5fc2291b5e858288aac0bdba246e6cdf7c6ec88bc8e0e7f3f6f1985f4297710cafde56ed
45 DIST gcc-8.3.0-patches-1.0.tar.bz2 12278 BLAKE2B 793465c5de0af850c7f3017b3011e68f3bd1664e6ce3500a3dc3003d37c03fe81857698957770a135eadd395a7767fa804d354ecdcdeb1d83623280ca569d4ec SHA512 0efadd2481713992807fed2683666f1094b3757674754601c079569f3ef70cd7aed3cefc9f815f4e59a21d37e4e940c122df714e16f3878a5f966450c4273669
46 DIST gcc-8.3.0.tar.xz 63694700 BLAKE2B 71df2ff5bd6874d57519c2e9af6b22152c8c4d7fab906a5f427b41bc4e8e742127592a8684120d9d3c9ce6241439531850be08ec0a4f29dbfdee95435655fdca SHA512 1811337ae3add9680cec64968a2509d085b6dc5b6783fc1e8c295e3e47416196fd1a3ad8dfe7e10be2276b4f62c357659ce2902f239f60a8648548231b4b5802
47 DIST gcc-9.2.0-patches-4.tar.bz2 21655 BLAKE2B 2acf6d83ec934a65e77d2079a024b42622e1234f0516f12839f7d03c2f3e1bb275037b020e35ba847d6809d5577ba966619c78345b75355df0a754d02ccf9819 SHA512 114e01a7b08ecb1feab24ef3cfc72c8953748f1526722b80c18602025eef132e2b4c05db59c7a23eb2e7f42ed48eb02d92bcd73b1ca932374d6bedaf89cc66d0
48 @@ -41,6 +37,4 @@ DIST gcc-9.2.0.tar.xz 70607648 BLAKE2B 41a5e148f9a6857d6599679964c203533f76f330a
49 DIST gcc-cygwinports-0de6b2ae6b6577eb0891a7ca8d551bdfa79bf5e8.tar.gz 20183 BLAKE2B dc9a4c78f98851ed77720d4c06d3fbf9f2d7d0e81a825cc89026994060fd29214f111fd3a52cec6518417cab2be89caf4a844a0869136287f174147ca7a6ebf3 SHA512 d01ee85a1327e7f6f16b3c2de6659699764f365215bd3e58247c5c65594153b9232bdc43ff89420cac75ad908ed39c7ff9fa4006818f5dd209b792d34d9ae7de
50 DIST gcc-cygwinports-11fa2eec213324d64673ad41358f726f6523667f.tar.gz 23047 BLAKE2B 83e44a2eed9e134ea2531e3ecff4479f4d305a55d14729ed11c91199c1f56ec7e2d4df48d56de11ba43a9e936019943edc370a04a26f6b3bfd5616230feeffa5 SHA512 f8cbf3b2b20c1950d0984fe672536d92f7d05b065495d93205d72b7578e696847f074430c6e642668d1c0c26fa9d98a4dfd3fce7030d45f2d04f80499437587c
51 DIST gcc-cygwinports-a03d77536f40d1a6335b6d313a4e4a4dff38ce66.tar.gz 35809 BLAKE2B e009012e86b83032a7d316580eddfc8f03dccdaa9f573ce9a0e80209ef545748c4c98388238bc22c6666394346d5d4d42d21bf964454a6c05da1f80cd95f6ada SHA512 989b3b0bc0c55715d7c87fa59f465d2af7042e052a5d01e9cdb26fd61e08504a596a604aa482438560e011b8ea5d015da75f172ea5c2ea5b9a90e8943f355734
52 -DIST gcc-cygwinports-d83e3d1ac0a9adfacdf120f013870472e8e712c3.tar.gz 27216 BLAKE2B 0f4737d1f115d95d3e752c02e4f6eb8cde3e42653ece6aaa0eb90edf74bfad1e9b91514b49bc2b3dcb822de99d4bb37e697a3a37c555c6c306e8debd02bd283d SHA512 0bf2e75d788a8e2dce352a084c44d6ae2c470ced178f257f464963041e13fc217ff31e970efb77261ac1916fe849eac110703343773ee1ec4d45c69c6b9200eb
53 DIST gcc-cygwinports-f44d762eb3551ea0d81aa8e4b428bcb7caabb628.tar.gz 32780 BLAKE2B 364353bf379a2a950050148caf2cef86239f2418a98f72b3edec4cf56e43e7d07601f4d1ca8103c691ddddff0fca96a6a8c728e2e50bca373c34441bdc7505be SHA512 d5bc37965745fa32a3ddd357e658bd066d4aadf19eee7a30047f4dc6f47450d320e33cbbe4bf22fa6f5e30f7f41ec6ec3a250df56760a38df0f14fea3e34a83e
54 -DIST gdc-0.24-src.tar.bz2 1012099 BLAKE2B 2c85058aad09af328719a702f69d655b9aa9655f2a83bb46bd21367cd442ed72c9b471ddaa764753f782dcb2f22fe51b052a965ed08290e0d9415b543481d144 SHA512 9aec7e4b102e602dfb61cd09ea4b4a96af637ceb3d726235261d09ebd35dbd416abcbfe0e46918e48474bd241fe9bb29abc145a65aa834669295aaee4fca0686
55
56 diff --git a/sys-devel/gcc/gcc-10.1.0-r1.ebuild b/sys-devel/gcc/gcc-10.1.0-r1.ebuild
57 index e4e696251a..ce7e8d3a7d 100644
58 --- a/sys-devel/gcc/gcc-10.1.0-r1.ebuild
59 +++ b/sys-devel/gcc/gcc-10.1.0-r1.ebuild
60 @@ -14,8 +14,7 @@ BDEPEND="
61 kernel_linux? ( ${CATEGORY}/binutils )
62 kernel_Darwin? (
63 || ( ${CATEGORY}/binutils-apple ${CATEGORY}/native-cctools )
64 - )
65 - kernel_AIX? ( ${CATEGORY}/native-cctools )"
66 + )"
67
68 src_prepare() {
69 toolchain_src_prepare
70
71 diff --git a/sys-devel/gcc/gcc-4.1.2.ebuild b/sys-devel/gcc/gcc-4.1.2.ebuild
72 index da6e33eac7..83751a153f 100644
73 --- a/sys-devel/gcc/gcc-4.1.2.ebuild
74 +++ b/sys-devel/gcc/gcc-4.1.2.ebuild
75 @@ -1,4 +1,4 @@
76 -# Copyright 1999-2017 Gentoo Foundation
77 +# Copyright 1999-2020 Gentoo Authors
78 # Distributed under the terms of the GNU General Public License v2
79 # $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-4.1.2.ebuild,v 1.37 2014/01/19 01:51:34 dirtyepic Exp $
80
81 @@ -18,7 +18,6 @@ KEYWORDS="~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
82 RDEPEND=""
83 DEPEND="${RDEPEND}
84 kernel_Darwin? ( ${CATEGORY}/binutils-apple )
85 - kernel_AIX? ( ${CATEGORY}/native-cctools )
86 !kernel_Darwin? ( !kernel_AIX? (
87 ppc? ( >=${CATEGORY}/binutils-2.17 )
88 ppc64? ( >=${CATEGORY}/binutils-2.17 )
89 @@ -61,16 +60,6 @@ src_configure() {
90 # todo: some magic for native vs. GNU linking?
91 EXTRA_ECONF="${EXTRA_ECONF} --with-gnu-ld"
92 ;;
93 - *-aix*)
94 - # AIX doesn't use GNU binutils, because it doesn't produce usable
95 - # code
96 - EXTRA_ECONF="${EXTRA_ECONF} --without-gnu-ld --without-gnu-as"
97 - ;;
98 - *-darwin7)
99 - # libintl triggers inclusion of -lc which results in multiply
100 - # defined symbols, so disable nls
101 - EXTRA_ECONF="${EXTRA_ECONF} --disable-nls"
102 - ;;
103 esac
104 # Since GCC 4.1.2 some non-posix (?) /bin/sh compatible code is used, at
105 # least on Solaris, so force it into our own bash
106
107 diff --git a/sys-devel/gcc/gcc-4.2.4-r2.ebuild b/sys-devel/gcc/gcc-4.2.4-r2.ebuild
108 index 2435f93e96..30089080d7 100644
109 --- a/sys-devel/gcc/gcc-4.2.4-r2.ebuild
110 +++ b/sys-devel/gcc/gcc-4.2.4-r2.ebuild
111 @@ -1,4 +1,4 @@
112 -# Copyright 1999-2018 Gentoo Foundation
113 +# Copyright 1999-2020 Gentoo Authors
114 # Distributed under the terms of the GNU General Public License v2
115 # $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-4.2.4-r1.ebuild,v 1.16 2014/01/19 01:51:34 dirtyepic Exp $
116
117 @@ -12,20 +12,18 @@ inherit eutils toolchain flag-o-matic prefix
118 DESCRIPTION="The GNU Compiler Collection"
119
120 LICENSE="GPL-3+ LGPL-2.1+ || ( GPL-3+ libgcc libstdc++ ) FDL-1.2+"
121 -KEYWORDS="~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
122 +KEYWORDS="~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
123
124 SRC_URI+=" https://dev.gentoo.org/~grobian/distfiles/gcc-4.2.3-mint.patch"
125
126 RDEPEND=""
127 DEPEND="${RDEPEND}
128 kernel_Darwin? ( ${CATEGORY}/binutils-apple )
129 - kernel_AIX? ( ${CATEGORY}/native-cctools )
130 - elibc_Interix? ( || ( ${CATEGORY}/native-cctools >=${CATEGORY}/binutils-2.16 ) )
131 - !kernel_Darwin? ( !kernel_AIX? ( !elibc_Interix? (
132 + !kernel_Darwin? (
133 ppc? ( >=${CATEGORY}/binutils-2.17 )
134 ppc64? ( >=${CATEGORY}/binutils-2.17 )
135 >=${CATEGORY}/binutils-2.15.94
136 - ) ) )"
137 + )"
138
139 src_prepare() {
140 toolchain_src_prepare
141 @@ -73,46 +71,14 @@ src_prepare() {
142 eprefixify "${S}"/gcc/gcc.c
143 fi
144
145 - # interix patch from http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15212
146 - epatch "${FILESDIR}"/4.2.2/interix-x86.patch.bz2
147 - # gcc sources are polluted with old stuff for interix 3.5 not needed here
148 - epatch "${FILESDIR}"/4.2.2/interix-3.5-x86.patch
149 - # define _ALL_SOURCE by default on Interix
150 - epatch "${FILESDIR}"/${P}-interix-all-source.patch
151 - # support for the $@#$% dir structure on 64bit SUA
152 - epatch "${FILESDIR}"/${P}-interix-x64-support.patch
153 - # make long double be 64bit on intierx, as libc was built with VC++ (which
154 - # has 64 bit long doubles).
155 - epatch "${FILESDIR}"/${P}-interix-long-double.patch
156 -
157 if [[ ${CHOST} == *-mint* ]] ; then
158 epatch "${DISTDIR}"/gcc-4.2.3-mint.patch
159 epatch "${FILESDIR}"/gcc-4.2.3-mint2.patch
160 fi
161
162 - # http://gcc.gnu.org/PR20366
163 - epatch "${FILESDIR}"/${P}-aix-largefiles.patch
164 -
165 - # Always behave on AIX as if:
166 - # -fPIC was passed (packages know that "everything on AIX is PIC")
167 - # -pthread was passed (#266548)
168 - # -Wl,-bsvr4 was passed (#213277 runtime linking, hold -L paths off the runpath)
169 - # -Wl,-G,-bernotok was passed for shared libraries (runtime linking, --no-undefined)
170 - epatch "${FILESDIR}"/4.2.2/aix-force-pthread-r1.patch
171 - epatch "${FILESDIR}"/4.2.2/aix-runtimelinking-r1.patch
172 - echo '#define DRIVER_SELF_SPECS "-fPIC -pthread %x{-bsvr4} %{shared:%x{-G} %x{-bernotok}}"' \
173 - >> "${S}"/gcc/config/rs6000/aix.h || die
174 -
175 # allow gcj compilation to succeed on platforms with libiconv
176 epatch "${FILESDIR}"/gcj-${PV}-iconvlink.patch
177
178 - epatch "${FILESDIR}"/${PN}-4.2-pa-hpux-libgcc_s-soname.patch
179 - epatch "${FILESDIR}"/${PN}-4.2-ia64-hpux-always-pthread.patch
180 - epatch "${FILESDIR}"/4.2.2/pr26189-pa.patch
181 - epatch "${FILESDIR}"/4.2.2/aix-bnoerok.patch
182 - epatch "${FILESDIR}"/4.2.2/aix-lineno.patch
183 - epatch "${FILESDIR}"/4.2.2/aix-pr46072.patch
184 -
185 # try /usr/lib32 in 32bit profile on x86_64-linux (needs --enable-multilib)
186 # but this does make sense in prefix only.
187 use prefix && epatch "${FILESDIR}"/${P}-linux-x86-on-amd64.patch
188 @@ -121,10 +87,6 @@ src_prepare() {
189
190 [[ ${CTARGET} == *-softfloat-* ]] && epatch "${FILESDIR}"/4.0.2/gcc-4.0.2-softfloat.patch
191
192 - epatch "${FILESDIR}"/4.2.2/aix-minimal-toc.patch
193 - epatch "${FILESDIR}"/4.2.2/aix61-longdouble64.patch
194 - epatch "${FILESDIR}"/4.2.2/aix-soname.patch
195 - epatch "${FILESDIR}"/4.2.2/aix-libssp.patch
196 epatch "${FILESDIR}"/4.2.2/ro-string.patch
197 }
198
199 @@ -134,17 +96,6 @@ src_configure() {
200 # todo: some magic for native vs. GNU linking?
201 EXTRA_ECONF="${EXTRA_ECONF} --with-gnu-ld --with-gnu-as"
202 ;;
203 - *-aix*)
204 - # AIX doesn't use GNU binutils, because it doesn't produce usable
205 - # code
206 - EXTRA_ECONF="${EXTRA_ECONF} --without-gnu-ld --without-gnu-as"
207 - append-ldflags -Wl,-bbigtoc,-bmaxdata:0x10000000 # bug#194635
208 - ;;
209 - *-darwin7)
210 - # libintl triggers inclusion of -lc which results in multiply
211 - # defined symbols, so disable nls
212 - EXTRA_ECONF="${EXTRA_ECONF} --disable-nls"
213 - ;;
214 i[34567]86-*-linux*:*" prefix "*)
215 # to allow the linux-x86-on-amd64.patch become useful, we need
216 # to enable multilib, even if there is just one multilib option.
217 @@ -158,15 +109,6 @@ src_configure() {
218 CXX="${CC} -m32"
219 fi
220 ;;
221 - *-interix*" bootstrap "*)
222 - # with suacomp, on interix, we need to have some header files
223 - # available, which complement the system headers. adding this
224 - # to CC/CXX is the only way to get a stage1 gcc built during
225 - # bootstrap. the rest will work as normal.
226 - tc-export CC CXX
227 - CC="${CC} -I${EPREFIX}/usr/include"
228 - CXX="${CXX} -I${EPREFIX}/usr/include"
229 - ;;
230 esac
231 # Since GCC 4.1.2 some non-posix (?) /bin/sh compatible code is used, at
232 # least on Solaris, and AIX /bin/sh is ways too slow,
233 @@ -179,17 +121,6 @@ src_configure() {
234 src_install() {
235 toolchain_src_install
236
237 - if [[ ${CTARGET} == *-interix* ]] && ! is_crosscompile; then
238 - # interix delivers libdl and dlfcn.h with gcc-3.3.
239 - # Since those parts are perfectly usable by this gcc (and
240 - # required for example by perl), we simply can reuse them.
241 - # As libdl is in /usr/lib, we only need to copy dlfcn.h.
242 - # When cross compiling for interix once, ensure that sysroot
243 - # contains dlfcn.h.
244 - cp /opt/gcc.3.3/include/dlfcn.h "${ED}${INCLUDEPATH}" \
245 - || die "Cannot gain /opt/gcc.3.3/include/dlfcn.h"
246 - fi
247 -
248 # create a small profile.d script, unsetting some of the bad
249 # environment variables that the system could set from the outside.
250 # (GCC_SPECS, GCC_EXEC_PREFIX, CPATH, LIBRARY_PATH, LD_LIBRARY_PATH,
251 @@ -211,4 +142,3 @@ src_install() {
252 insinto /etc/profile.d
253 doins "${T}"/00-gcc-paths.sh
254 }
255 -
256
257 diff --git a/sys-devel/gcc/gcc-4.7.3-r1.ebuild b/sys-devel/gcc/gcc-4.7.3-r1.ebuild
258 index 527dcc3f45..5379d56552 100644
259 --- a/sys-devel/gcc/gcc-4.7.3-r1.ebuild
260 +++ b/sys-devel/gcc/gcc-4.7.3-r1.ebuild
261 @@ -1,4 +1,4 @@
262 -# Copyright 1999-2018 Gentoo Foundation
263 +# Copyright 1999-2020 Gentoo Authors
264 # Distributed under the terms of the GNU General Public License v2
265 # $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-4.7.3-r1.ebuild,v 1.16 2014/01/19 01:51:34 dirtyepic Exp $
266
267 @@ -31,7 +31,6 @@ RDEPEND=""
268 DEPEND="${RDEPEND}
269 !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.8 ) )
270 kernel_Darwin? ( ${CATEGORY}/binutils-apple )
271 - kernel_AIX? ( ${CATEGORY}/native-cctools )
272 kernel_linux? ( >=${CATEGORY}/binutils-2.18 )"
273
274 if [[ ${CATEGORY} != cross-* ]] ; then
275 @@ -93,11 +92,6 @@ src_prepare() {
276 epatch "${FILESDIR}"/4.7.2/pr52714.patch
277 fi
278
279 - # Always behave as if -pthread were passed on AIX and HPUX (#266548)
280 -# fails, likely still necessary though
281 -# epatch "${FILESDIR}"/4.5.1/aix-force-pthread.patch
282 -# epatch "${FILESDIR}"/4.5.1/ia64-hpux-always-pthread.patch
283 -
284 [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch
285 }
286
287 @@ -114,27 +108,6 @@ src_configure() {
288 # todo: some magic for native vs. GNU linking?
289 EXTRA_ECONF="${EXTRA_ECONF} --with-gnu-ld --with-gnu-as"
290 ;;
291 - *-aix*)
292 - # AIX doesn't use GNU binutils, because it doesn't produce usable
293 - # code
294 - EXTRA_ECONF="${EXTRA_ECONF} --without-gnu-ld --without-gnu-as"
295 - append-ldflags -Wl,-bbigtoc,-bmaxdata:0x10000000 # bug#194635
296 - ;;
297 - *-interix*)
298 - # disable usage of poll() on interix, since poll() only
299 - # works on the /proc filesystem (.......)
300 - export glibcxx_cv_POLL=no
301 -
302 - # if using the old system as, gcc's configure script fails
303 - # to detect that as cannot handle .lcomm with alignment.
304 - # on interix, it is rather easy to detect the as, since there
305 - # is only _one_ build of it with a fixed date in the version
306 - # header...
307 - if as --version | grep 20021111 > /dev/null 2>&1; then
308 - einfo "preventing gcc from detecting .lcomm alignment option in interix system as."
309 - export gcc_cv_as_lcomm_with_alignment=no
310 - fi
311 - ;;
312 i[34567]86-*-linux*:*" prefix "*)
313 # to allow the linux-x86-on-amd64.patch become useful, we need
314 # to enable multilib, even if there is just one multilib option.
315 @@ -161,25 +134,6 @@ src_configure() {
316 src_install() {
317 toolchain_src_install
318
319 - if [[ ${CTARGET} == *-interix* ]] && ! is_crosscompile; then
320 - # interix delivers libdl and dlfcn.h with gcc-3.3.
321 - # Since those parts are perfectly usable by this gcc (and
322 - # required for example by perl), we simply can reuse them.
323 - # As libdl is in /usr/lib, we only need to copy dlfcn.h.
324 - # When cross compiling for interix once, ensure that sysroot
325 - # contains dlfcn.h.
326 - cp /opt/gcc.3.3/include/dlfcn.h "${ED}${INCLUDEPATH}" \
327 - || die "Cannot gain /opt/gcc.3.3/include/dlfcn.h"
328 - fi
329 -
330 - if [[ ${CTARGET} == *-interix3* ]]; then
331 - # interix 3.5 has no stdint.h and no inttypes.h. This breaks
332 - # so many packages, that i just install interix 5.2's stdint.h
333 - # which should be ok.
334 - cp "${FILESDIR}"/interix-3.5-stdint.h "${ED}${INCLUDEPATH}/stdint.h" \
335 - || die "Cannot install stdint.h for interix3"
336 - fi
337 -
338 # create a small profile.d script, unsetting some of the bad
339 # environment variables that the sustem could set from the outside.
340 # (GCC_SPECS, GCC_EXEC_PREFIX, CPATH, LIBRARY_PATH, LD_LIBRARY_PATH,
341
342 diff --git a/sys-devel/gcc/gcc-4.8.5-r1.ebuild b/sys-devel/gcc/gcc-4.8.5-r1.ebuild
343 index 88fcbf6709..36bc87b575 100644
344 --- a/sys-devel/gcc/gcc-4.8.5-r1.ebuild
345 +++ b/sys-devel/gcc/gcc-4.8.5-r1.ebuild
346 @@ -1,4 +1,4 @@
347 -# Copyright 1999-2018 Gentoo Foundation
348 +# Copyright 1999-2020 Gentoo Authors
349 # Distributed under the terms of the GNU General Public License v2
350
351 EAPI="5"
352 @@ -28,7 +28,6 @@ DEPEND="${RDEPEND}
353 !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.8 ) )
354 kernel_linux? ( >=${CATEGORY}/binutils-2.20 )
355 kernel_Darwin? ( ${CATEGORY}/binutils-apple )
356 - kernel_AIX? ( ${CATEGORY}/native-cctools )
357 "
358
359 if [[ ${CATEGORY} != cross-* ]] ; then
360 @@ -69,28 +68,6 @@ src_prepare() {
361
362 # make it have correct install_names on Darwin
363 epatch "${FILESDIR}"/4.3.3/darwin-libgcc_s-installname.patch
364 - # filename based versioning of libgcc_s for AIX
365 - epatch "${FILESDIR}"/gcc-4.8.4-aix-soname-libgcc.patch.xz
366 - # let --with-specs=-pthread work for libgcc_s on AIX without multilib
367 - epatch "${FILESDIR}"/gcc-4.8.4-aix-pthread-specs.patch
368 - # drop -B flag when ./nm encounters -P
369 - epatch "${FILESDIR}"/gcc-4.8.4-aix-soname-nm-weak.patch
370 - # support --with-aix-soname=aix|both|svr4 for libtool libs
371 - epatch "${FILESDIR}"/gcc-4.8.4-aix-soname-libtool.patch.xz
372 - epatch "${FILESDIR}"/gcc-4.8.4-aix-soname-regen.patch.xz
373 - epatch "${FILESDIR}"/gcc-4.8-aix-extref.patch # PR target/65058
374 - if [[ ${CHOST} == *-aix* ]]; then
375 - # -fPIC breaks stage2/3 comparison, use per-build random seed
376 - local myseed=$(echo $(
377 - head -c32 /dev/urandom | uuencode - | tr -d -c a-zA-Z0-9_+/.,
378 - ))
379 - echo "STAGE2_CFLAGS += -frandom-seed=${myseed}" >> config/mh-ppc-aix
380 - echo "STAGE3_CFLAGS += -frandom-seed=${myseed}" >> config/mh-ppc-aix
381 - is_crosscompile ||
382 - echo "CFLAGS_FOR_TARGET += -frandom-seed=${myseed}" >> config/mh-ppc-aix
383 - # build large insn-*.o one at a time
384 - epatch "${FILESDIR}"/gcc-4.8.4-lowmem-build.patch
385 - fi
386
387 if [[ ${CHOST} == *-mint* ]] ; then
388 epatch "${FILESDIR}"/4.3.2/${PN}-4.3.2-mint3.patch
389 @@ -122,39 +99,6 @@ src_configure() {
390 # todo: some magic for native vs. GNU linking?
391 myconf+=( --with-gnu-ld --with-gnu-as )
392 ;;
393 - *-aix*)
394 - # AIX doesn't use GNU binutils, because it doesn't produce usable
395 - # code
396 - myconf+=( --without-gnu-ld --without-gnu-as --disable-lto )
397 - append-ldflags -Wl,-bbigtoc,-bmaxdata:0x10000000 # bug#194635
398 - # we have backports of the aix-soname upstream patches
399 - myconf+=( --with-aix-soname=svr4 )
400 - # Always behave on AIX as if:
401 - # -fPIC was passed (packages know that "everything on AIX is PIC")
402 - # -pthread was passed (#266548)
403 - # -Wl,-bsvr4 was passed (runtime linking, hold -L paths off the runpath)
404 - # -Wl,-G,-bernotok was passed for shared libraries (runtime linking, --no-undefined)
405 - myconf+=( --with-specs="-fPIC -pthread %x{-bsvr4} %{shared:%x{-G} %x{-bernotok}}" )
406 - ;;
407 - ia64*-*-hpux*)
408 - # Always behave as if -pthread were passed on HPUX (#266548)
409 - myconf+=( --with-specs=-pthread )
410 - ;;
411 - *-interix*)
412 - # disable usage of poll() on interix, since poll() only
413 - # works on the /proc filesystem (.......)
414 - export glibcxx_cv_POLL=no
415 -
416 - # if using the old system as, gcc's configure script fails
417 - # to detect that as cannot handle .lcomm with alignment.
418 - # on interix, it is rather easy to detect the as, since there
419 - # is only _one_ build of it with a fixed date in the version
420 - # header...
421 - if as --version | grep 20021111 > /dev/null 2>&1; then
422 - einfo "preventing gcc from detecting .lcomm alignment option in interix system as."
423 - export gcc_cv_as_lcomm_with_alignment=no
424 - fi
425 - ;;
426 i[34567]86-*-linux*:*" prefix "*)
427 # to allow the linux-x86-on-amd64.patch become useful, we need
428 # to enable multilib, even if there is just one multilib option.
429 @@ -175,26 +119,3 @@ src_configure() {
430 export CONFIG_SHELL="${CONFIG_SHELL:-${BASH}}"
431 toolchain_src_configure "${myconf[@]}"
432 }
433 -
434 -src_install() {
435 - toolchain_src_install
436 -
437 - if [[ ${CTARGET} == *-interix* ]] && ! is_crosscompile; then
438 - # interix delivers libdl and dlfcn.h with gcc-3.3.
439 - # Since those parts are perfectly usable by this gcc (and
440 - # required for example by perl), we simply can reuse them.
441 - # As libdl is in /usr/lib, we only need to copy dlfcn.h.
442 - # When cross compiling for interix once, ensure that sysroot
443 - # contains dlfcn.h.
444 - cp /opt/gcc.3.3/include/dlfcn.h "${ED}${INCLUDEPATH}" \
445 - || die "Cannot gain /opt/gcc.3.3/include/dlfcn.h"
446 - fi
447 -
448 - if [[ ${CTARGET} == *-interix3* ]]; then
449 - # interix 3.5 has no stdint.h and no inttypes.h. This breaks
450 - # so many packages, that i just install interix 5.2's stdint.h
451 - # which should be ok.
452 - cp "${FILESDIR}"/interix-3.5-stdint.h "${ED}${INCLUDEPATH}/stdint.h" \
453 - || die "Cannot install stdint.h for interix3"
454 - fi
455 -}
456
457 diff --git a/sys-devel/gcc/gcc-4.9.4.ebuild b/sys-devel/gcc/gcc-4.9.4.ebuild
458 index 656da303d7..a3dd30c472 100644
459 --- a/sys-devel/gcc/gcc-4.9.4.ebuild
460 +++ b/sys-devel/gcc/gcc-4.9.4.ebuild
461 @@ -1,4 +1,4 @@
462 -# Copyright 1999-2018 Gentoo Foundation
463 +# Copyright 1999-2020 Gentoo Authors
464 # Distributed under the terms of the GNU General Public License v2
465
466 EAPI="5"
467 @@ -28,7 +28,6 @@ DEPEND="${RDEPEND}
468 !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.8 ) )
469 kernel_linux? ( >=${CATEGORY}/binutils-2.20 )
470 kernel_Darwin? ( ${CATEGORY}/binutils-apple )
471 - kernel_AIX? ( ${CATEGORY}/native-cctools )
472 "
473
474 if [[ ${CATEGORY} != cross-* ]] ; then
475 @@ -55,11 +54,7 @@ src_prepare() {
476 use vanilla && return 0
477 # Use -r1 for newer piepatchet that use DRIVER_SELF_SPECS for the hardened specs.
478
479 - # make sure solaris-x64 doesn't misdetect tls support, bug #505446
480 - #epatch "${FILESDIR}"/4.7.2/solaris-x64-tls-gnu-as.patch
481 -
482 # make sure 64-bits native targets don't screw up the linker paths
483 - #epatch "${FILESDIR}"/4.7.1/solaris-searchpath.patch
484 epatch "${FILESDIR}"/no-libs-for-startfile.patch
485 if use prefix; then
486 epatch "${FILESDIR}"/4.5.2/prefix-search-dirs.patch
487 @@ -70,28 +65,6 @@ src_prepare() {
488
489 # make it have correct install_names on Darwin
490 epatch "${FILESDIR}"/4.3.3/darwin-libgcc_s-installname.patch
491 - # filename based versioning of libgcc_s for AIX
492 - #epatch "${FILESDIR}"/gcc-4.8.4-aix-soname-libgcc.patch.xz
493 - # let --with-specs=-pthread work for libgcc_s on AIX without multilib
494 - #epatch "${FILESDIR}"/gcc-4.8.4-aix-pthread-specs.patch
495 - # drop -B flag when ./nm encounters -P
496 - #epatch "${FILESDIR}"/gcc-4.8.4-aix-soname-nm-weak.patch
497 - # support --with-aix-soname=aix|both|svr4 for libtool libs
498 - #epatch "${FILESDIR}"/gcc-4.8.4-aix-soname-libtool.patch.xz
499 - #epatch "${FILESDIR}"/gcc-4.8.4-aix-soname-regen.patch.xz
500 - #epatch "${FILESDIR}"/gcc-4.8-aix-extref.patch # PR target/65058
501 - if [[ ${CHOST} == *-aix* ]]; then
502 - # -fPIC breaks stage2/3 comparison, use per-build random seed
503 - local myseed=$(echo $(
504 - head -c32 /dev/urandom | uuencode - | tr -d -c a-zA-Z0-9_+/.,
505 - ))
506 - echo "STAGE2_CFLAGS += -frandom-seed=${myseed}" >> config/mh-ppc-aix
507 - echo "STAGE3_CFLAGS += -frandom-seed=${myseed}" >> config/mh-ppc-aix
508 - is_crosscompile ||
509 - echo "CFLAGS_FOR_TARGET += -frandom-seed=${myseed}" >> config/mh-ppc-aix
510 - # build large insn-*.o one at a time
511 - epatch "${FILESDIR}"/gcc-4.8.4-lowmem-build.patch
512 - fi
513
514 if [[ ${CHOST} == *-mint* ]] ; then
515 epatch "${FILESDIR}"/4.3.2/${PN}-4.3.2-mint3.patch
516 @@ -123,39 +96,6 @@ src_configure() {
517 # todo: some magic for native vs. GNU linking?
518 myconf+=( --with-gnu-ld --with-gnu-as )
519 ;;
520 - *-aix*)
521 - # AIX doesn't use GNU binutils, because it doesn't produce usable
522 - # code
523 - myconf+=( --without-gnu-ld --without-gnu-as --disable-lto )
524 - append-ldflags -Wl,-bbigtoc,-bmaxdata:0x10000000 # bug#194635
525 - # we have backports of the aix-soname upstream patches
526 - myconf+=( --with-aix-soname=svr4 )
527 - # Always behave on AIX as if:
528 - # -fPIC was passed (packages know that "everything on AIX is PIC")
529 - # -pthread was passed (#266548)
530 - # -Wl,-bsvr4 was passed (runtime linking, hold -L paths off the runpath)
531 - # -Wl,-G,-bernotok was passed for shared libraries (runtime linking, --no-undefined)
532 - myconf+=( --with-specs="-fPIC -pthread %x{-bsvr4} %{shared:%x{-G} %x{-bernotok}}" )
533 - ;;
534 - ia64*-*-hpux*)
535 - # Always behave as if -pthread were passed on HPUX (#266548)
536 - myconf+=( --with-specs=-pthread )
537 - ;;
538 - *-interix*)
539 - # disable usage of poll() on interix, since poll() only
540 - # works on the /proc filesystem (.......)
541 - export glibcxx_cv_POLL=no
542 -
543 - # if using the old system as, gcc's configure script fails
544 - # to detect that as cannot handle .lcomm with alignment.
545 - # on interix, it is rather easy to detect the as, since there
546 - # is only _one_ build of it with a fixed date in the version
547 - # header...
548 - if as --version | grep 20021111 > /dev/null 2>&1; then
549 - einfo "preventing gcc from detecting .lcomm alignment option in interix system as."
550 - export gcc_cv_as_lcomm_with_alignment=no
551 - fi
552 - ;;
553 i[34567]86-*-linux*:*" prefix "*)
554 # to allow the linux-x86-on-amd64.patch become useful, we need
555 # to enable multilib, even if there is just one multilib option.
556 @@ -176,26 +116,3 @@ src_configure() {
557 export CONFIG_SHELL="${CONFIG_SHELL:-${BASH}}"
558 toolchain_src_configure "${myconf[@]}"
559 }
560 -
561 -src_install() {
562 - toolchain_src_install
563 -
564 - if [[ ${CTARGET} == *-interix* ]] && ! is_crosscompile; then
565 - # interix delivers libdl and dlfcn.h with gcc-3.3.
566 - # Since those parts are perfectly usable by this gcc (and
567 - # required for example by perl), we simply can reuse them.
568 - # As libdl is in /usr/lib, we only need to copy dlfcn.h.
569 - # When cross compiling for interix once, ensure that sysroot
570 - # contains dlfcn.h.
571 - cp /opt/gcc.3.3/include/dlfcn.h "${ED}${INCLUDEPATH}" \
572 - || die "Cannot gain /opt/gcc.3.3/include/dlfcn.h"
573 - fi
574 -
575 - if [[ ${CTARGET} == *-interix3* ]]; then
576 - # interix 3.5 has no stdint.h and no inttypes.h. This breaks
577 - # so many packages, that i just install interix 5.2's stdint.h
578 - # which should be ok.
579 - cp "${FILESDIR}"/interix-3.5-stdint.h "${ED}${INCLUDEPATH}/stdint.h" \
580 - || die "Cannot install stdint.h for interix3"
581 - fi
582 -}
583
584 diff --git a/sys-devel/gcc/gcc-5.4.0-r4.ebuild b/sys-devel/gcc/gcc-5.4.0-r4.ebuild
585 index 5c7b566a76..e98d8d8b50 100644
586 --- a/sys-devel/gcc/gcc-5.4.0-r4.ebuild
587 +++ b/sys-devel/gcc/gcc-5.4.0-r4.ebuild
588 @@ -1,4 +1,4 @@
589 -# Copyright 1999-2018 Gentoo Foundation
590 +# Copyright 1999-2020 Gentoo Authors
591 # Distributed under the terms of the GNU General Public License v2
592
593 EAPI="5"
594 @@ -29,7 +29,6 @@ DEPEND="${RDEPEND}
595 !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.8 ) )
596 kernel_linux? ( >=${CATEGORY}/binutils-2.20 )
597 kernel_Darwin? ( ${CATEGORY}/binutils-apple )
598 - kernel_AIX? ( ${CATEGORY}/native-cctools )
599 "
600
601 if [[ ${CATEGORY} != cross-* ]] ; then
602 @@ -59,7 +58,6 @@ src_prepare() {
603 #epatch "${FILESDIR}"/4.7.2/solaris-x64-tls-gnu-as.patch
604
605 # make sure 64-bits native targets don't screw up the linker paths
606 - #epatch "${FILESDIR}"/4.7.1/solaris-searchpath.patch
607 epatch "${FILESDIR}"/no-libs-for-startfile.patch
608 epatch "${FILESDIR}"/${P}-libc_name_p.patch #631976
609 if use prefix; then
610 @@ -71,28 +69,6 @@ src_prepare() {
611
612 # make it have correct install_names on Darwin
613 epatch "${FILESDIR}"/4.3.3/darwin-libgcc_s-installname.patch
614 - # filename based versioning of libgcc_s for AIX
615 - #epatch "${FILESDIR}"/gcc-4.8.4-aix-soname-libgcc.patch.xz
616 - # let --with-specs=-pthread work for libgcc_s on AIX without multilib
617 - #epatch "${FILESDIR}"/gcc-4.8.4-aix-pthread-specs.patch
618 - # drop -B flag when ./nm encounters -P
619 - #epatch "${FILESDIR}"/gcc-4.8.4-aix-soname-nm-weak.patch
620 - # support --with-aix-soname=aix|both|svr4 for libtool libs
621 - #epatch "${FILESDIR}"/gcc-4.8.4-aix-soname-libtool.patch.xz
622 - #epatch "${FILESDIR}"/gcc-4.8.4-aix-soname-regen.patch.xz
623 - #epatch "${FILESDIR}"/gcc-4.8-aix-extref.patch # PR target/65058
624 - if [[ ${CHOST} == *-aix* ]]; then
625 - # -fPIC breaks stage2/3 comparison, use per-build random seed
626 - local myseed=$(echo $(
627 - head -c32 /dev/urandom | uuencode - | tr -d -c a-zA-Z0-9_+/.,
628 - ))
629 - echo "STAGE2_CFLAGS += -frandom-seed=${myseed}" >> config/mh-ppc-aix
630 - echo "STAGE3_CFLAGS += -frandom-seed=${myseed}" >> config/mh-ppc-aix
631 - is_crosscompile ||
632 - echo "CFLAGS_FOR_TARGET += -frandom-seed=${myseed}" >> config/mh-ppc-aix
633 - # build large insn-*.o one at a time
634 - epatch "${FILESDIR}"/gcc-4.8.4-lowmem-build.patch
635 - fi
636
637 if [[ ${CHOST} == *-mint* ]] ; then
638 epatch "${FILESDIR}"/4.3.2/${PN}-4.3.2-mint3.patch
639 @@ -110,9 +86,6 @@ src_prepare() {
640 # upstream shipped since gcc-6.1.0.
641 find libstdc++-v3 -name Makefile.in -exec sed -i -e \
642 '/^AM_CPPFLAGS = \$(GLIBCXX_INCLUDES)$/s/$/ $(CPPFLAGS)/p' {} +
643 -
644 - #Use -r1 for newer piepatchet that use DRIVER_SELF_SPECS for the hardened specs.
645 - #[[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env-r1.patch
646 }
647
648 src_configure() {
649 @@ -129,39 +102,6 @@ src_configure() {
650 # todo: some magic for native vs. GNU linking?
651 myconf+=( --with-gnu-ld --with-gnu-as --enable-largefile )
652 ;;
653 - *-aix*)
654 - # AIX doesn't use GNU binutils, because it doesn't produce usable
655 - # code
656 - myconf+=( --without-gnu-ld --without-gnu-as --disable-lto )
657 - append-ldflags -Wl,-bbigtoc,-bmaxdata:0x10000000 # bug#194635
658 - # we have backports of the aix-soname upstream patches
659 - myconf+=( --with-aix-soname=svr4 )
660 - # Always behave on AIX as if:
661 - # -fPIC was passed (packages know that "everything on AIX is PIC")
662 - # -pthread was passed (#266548)
663 - # -Wl,-bsvr4 was passed (runtime linking, hold -L paths off the runpath)
664 - # -Wl,-G,-bernotok was passed for shared libraries (runtime linking, --no-undefined)
665 - myconf+=( --with-specs="-fPIC -pthread %x{-bsvr4} %{shared:%x{-G} %x{-bernotok}}" )
666 - ;;
667 - ia64*-*-hpux*)
668 - # Always behave as if -pthread were passed on HPUX (#266548)
669 - myconf+=( --with-specs=-pthread )
670 - ;;
671 - *-interix*)
672 - # disable usage of poll() on interix, since poll() only
673 - # works on the /proc filesystem (.......)
674 - export glibcxx_cv_POLL=no
675 -
676 - # if using the old system as, gcc's configure script fails
677 - # to detect that as cannot handle .lcomm with alignment.
678 - # on interix, it is rather easy to detect the as, since there
679 - # is only _one_ build of it with a fixed date in the version
680 - # header...
681 - if as --version | grep 20021111 > /dev/null 2>&1; then
682 - einfo "preventing gcc from detecting .lcomm alignment option in interix system as."
683 - export gcc_cv_as_lcomm_with_alignment=no
684 - fi
685 - ;;
686 i[34567]86-*-linux*:*" prefix "*)
687 # to allow the linux-x86-on-amd64.patch become useful, we need
688 # to enable multilib, even if there is just one multilib option.
689 @@ -182,26 +122,3 @@ src_configure() {
690 export CONFIG_SHELL="${CONFIG_SHELL:-${BASH}}"
691 toolchain_src_configure "${myconf[@]}"
692 }
693 -
694 -src_install() {
695 - toolchain_src_install
696 -
697 - if [[ ${CTARGET} == *-interix* ]] && ! is_crosscompile; then
698 - # interix delivers libdl and dlfcn.h with gcc-3.3.
699 - # Since those parts are perfectly usable by this gcc (and
700 - # required for example by perl), we simply can reuse them.
701 - # As libdl is in /usr/lib, we only need to copy dlfcn.h.
702 - # When cross compiling for interix once, ensure that sysroot
703 - # contains dlfcn.h.
704 - cp /opt/gcc.3.3/include/dlfcn.h "${ED}${INCLUDEPATH}" \
705 - || die "Cannot gain /opt/gcc.3.3/include/dlfcn.h"
706 - fi
707 -
708 - if [[ ${CTARGET} == *-interix3* ]]; then
709 - # interix 3.5 has no stdint.h and no inttypes.h. This breaks
710 - # so many packages, that i just install interix 5.2's stdint.h
711 - # which should be ok.
712 - cp "${FILESDIR}"/interix-3.5-stdint.h "${ED}${INCLUDEPATH}/stdint.h" \
713 - || die "Cannot install stdint.h for interix3"
714 - fi
715 -}
716
717 diff --git a/sys-devel/gcc/gcc-6.4.0-r2.ebuild b/sys-devel/gcc/gcc-6.4.0-r2.ebuild
718 index 90607ab35b..cdf69fdfb8 100644
719 --- a/sys-devel/gcc/gcc-6.4.0-r2.ebuild
720 +++ b/sys-devel/gcc/gcc-6.4.0-r2.ebuild
721 @@ -1,4 +1,4 @@
722 -# Copyright 1999-2018 Gentoo Foundation
723 +# Copyright 1999-2020 Gentoo Authors
724 # Distributed under the terms of the GNU General Public License v2
725
726 EAPI="5"
727 @@ -9,15 +9,13 @@ CYGWINPORTS_GITREV="a03d77536f40d1a6335b6d313a4e4a4dff38ce66" # gcc-6.4.0-3
728
729 inherit eutils toolchain flag-o-matic
730
731 -#KEYWORDS="~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
732 KEYWORDS="~x64-cygwin ~amd64-linux ~x86-linux ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
733
734 RDEPEND=""
735 DEPEND="${RDEPEND}
736 !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.13 ) )
737 kernel_linux? ( >=${CATEGORY}/binutils-2.20 )
738 - kernel_Darwin? ( ${CATEGORY}/binutils-apple )
739 - kernel_AIX? ( ${CATEGORY}/native-cctools )"
740 + kernel_Darwin? ( ${CATEGORY}/binutils-apple )"
741
742 if [[ ${CATEGORY} != cross-* ]] ; then
743 PDEPEND="${PDEPEND} !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.13 ) )"
744
745 diff --git a/sys-devel/gcc/gcc-7.3.0-r6.ebuild b/sys-devel/gcc/gcc-7.3.0-r6.ebuild
746 deleted file mode 100644
747 index c6d17395b3..0000000000
748 --- a/sys-devel/gcc/gcc-7.3.0-r6.ebuild
749 +++ /dev/null
750 @@ -1,92 +0,0 @@
751 -# Copyright 1999-2018 Gentoo Authors
752 -# Distributed under the terms of the GNU General Public License v2
753 -
754 -EAPI="5"
755 -
756 -PATCH_VER="1.8"
757 -#UCLIBC_VER="1.0"
758 -CYGWINPORTS_GITREV="d83e3d1ac0a9adfacdf120f013870472e8e712c3" # gcc-7.3.0
759 -
760 -inherit eutils toolchain flag-o-matic
761 -
762 -KEYWORDS="~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
763 -
764 -RDEPEND=""
765 -DEPEND="${RDEPEND}
766 - !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.13 ) )
767 - kernel_linux? ( >=${CATEGORY}/binutils-2.20 )
768 - kernel_Darwin? ( ${CATEGORY}/binutils-apple )
769 - kernel_AIX? ( ${CATEGORY}/native-cctools )"
770 -
771 -if [[ ${CATEGORY} != cross-* ]] ; then
772 - PDEPEND="${PDEPEND} !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.13 ) )"
773 -fi
774 -
775 -src_prepare() {
776 - toolchain_src_prepare
777 -
778 - use vanilla && return 0
779 -
780 - # make sure 64-bits native targets don't screw up the linker paths
781 - epatch "${FILESDIR}"/no-libs-for-startfile.patch
782 - if use prefix; then
783 - epatch "${FILESDIR}"/4.5.2/prefix-search-dirs.patch
784 - # try /usr/lib32 in 32bit profile on x86_64-linux (needs
785 - # --enable-multilib), but this does make sense in prefix only
786 - epatch "${FILESDIR}"/${PN}-4.8.3-linux-x86-on-amd64.patch
787 - fi
788 -
789 - # make it have correct install_names on Darwin
790 - epatch "${FILESDIR}"/4.3.3/darwin-libgcc_s-installname.patch
791 -
792 - # fix for powerpc-darwin, from upstream, fixed for 7.4
793 - epatch "${FILESDIR}"/${P}-powerpc-darwin.patch
794 -}
795 -
796 -src_configure() {
797 - local myconf=()
798 - case ${CTARGET}:" ${USE} " in
799 - powerpc*-darwin*)
800 - # bug #381179
801 - filter-flags "-mcpu=*" "-mtune=*"
802 - # bug #657522
803 - # A bug in configure checks whether -no-pie works, but the
804 - # compiler doesn't pass -no-pie onto the linker if -fno-PIE
805 - # isn't passed, so the configure check always finds -no-pie
806 - # is accepted. (Likewise, when -fno-PIE is passed, the
807 - # compiler passes -no_pie onto the linker.)
808 - # Since our linker doesn't grok this, avoid above checks to
809 - # be run
810 - # NOTE: later ld64 does grok -no_pie, not -no-pie (as checked)
811 - export gcc_cv_c_no_fpie=no
812 - export gcc_cv_no_pie=no
813 - ;;
814 - *-solaris*)
815 - # todo: some magic for native vs. GNU linking?
816 - myconf+=( --with-gnu-ld --with-gnu-as --enable-largefile )
817 - # Solaris 11 defines this in its headers, but that causes a
818 - # mismatch whilst compiling, bug #657514
819 - export ac_cv_func_aligned_alloc=no
820 - export ac_cv_func_memalign=no
821 - export ac_cv_func_posix_memalign=no
822 - ;;
823 - i[34567]86-*-linux*:*" prefix "*)
824 - # to allow the linux-x86-on-amd64.patch become useful, we need
825 - # to enable multilib, even if there is just one multilib option.
826 - myconf+=( --enable-multilib )
827 - if [[ ${CBUILD:-${CHOST}} == "${CHOST}" ]]; then
828 - # we might be on x86_64-linux, but don't do cross-compile, so
829 - # tell the host-compiler to really create 32bits (for stage1)
830 - # (real x86-linux-gcc also accept -m32).
831 - append-flags -m32
832 - fi
833 - ;;
834 - esac
835 -
836 - # Since GCC 4.1.2 some non-posix (?) /bin/sh compatible code is used, at
837 - # least on Solaris, and AIX /bin/sh is way too slow,
838 - # so force it to use $BASH (that portage uses) - it can't be EPREFIX
839 - # in case that doesn't exist yet
840 - export CONFIG_SHELL="${CONFIG_SHELL:-${BASH}}"
841 - toolchain_src_configure "${myconf[@]}"
842 -}
843
844 diff --git a/sys-devel/gcc/gcc-7.4.0.ebuild b/sys-devel/gcc/gcc-7.4.0.ebuild
845 index 207bc01b30..c1ad3f6c2f 100644
846 --- a/sys-devel/gcc/gcc-7.4.0.ebuild
847 +++ b/sys-devel/gcc/gcc-7.4.0.ebuild
848 @@ -1,4 +1,4 @@
849 -# Copyright 1999-2019 Gentoo Authors
850 +# Copyright 1999-2020 Gentoo Authors
851 # Distributed under the terms of the GNU General Public License v2
852
853 EAPI="5"
854 @@ -14,8 +14,7 @@ RDEPEND=""
855 DEPEND="${RDEPEND}
856 !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.13 ) )
857 kernel_linux? ( >=${CATEGORY}/binutils-2.20 )
858 - kernel_Darwin? ( ${CATEGORY}/binutils-apple )
859 - kernel_AIX? ( ${CATEGORY}/native-cctools )"
860 + kernel_Darwin? ( ${CATEGORY}/binutils-apple )"
861
862 if [[ ${CATEGORY} != cross-* ]] ; then
863 PDEPEND="${PDEPEND} !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.13 ) )"
864
865 diff --git a/sys-devel/gcc/gcc-8.2.0-r5.ebuild b/sys-devel/gcc/gcc-8.2.0-r5.ebuild
866 deleted file mode 100644
867 index ad49175f0e..0000000000
868 --- a/sys-devel/gcc/gcc-8.2.0-r5.ebuild
869 +++ /dev/null
870 @@ -1,95 +0,0 @@
871 -# Copyright 1999-2019 Gentoo Authors
872 -# Distributed under the terms of the GNU General Public License v2
873 -
874 -EAPI="5"
875 -
876 -PATCH_VER="1.6"
877 -#UCLIBC_VER="1.0"
878 -#CYGWINPORTS_GITREV="d83e3d1ac0a9adfacdf120f013870472e8e712c3" # gcc-7.3.0
879 -
880 -inherit eutils toolchain flag-o-matic
881 -
882 -KEYWORDS="~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
883 -
884 -RDEPEND=""
885 -DEPEND="${RDEPEND}
886 - !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.13 ) )
887 - kernel_linux? ( >=${CATEGORY}/binutils-2.20 )
888 - kernel_Darwin? ( ${CATEGORY}/binutils-apple )
889 - kernel_AIX? ( ${CATEGORY}/native-cctools )"
890 -
891 -if [[ ${CATEGORY} != cross-* ]] ; then
892 - PDEPEND="${PDEPEND} !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.13 ) )"
893 -fi
894 -
895 -src_prepare() {
896 - toolchain_src_prepare
897 -
898 - use vanilla && return 0
899 -
900 - # make sure 64-bits native targets don't screw up the linker paths
901 - epatch "${FILESDIR}"/no-libs-for-startfile.patch
902 - if use prefix; then
903 - epatch "${FILESDIR}"/4.5.2/prefix-search-dirs.patch
904 - # try /usr/lib32 in 32bit profile on x86_64-linux (needs
905 - # --enable-multilib), but this does make sense in prefix only
906 - epatch "${FILESDIR}"/${PN}-4.8.3-linux-x86-on-amd64.patch
907 - fi
908 -
909 - # make it have correct install_names on Darwin
910 - epatch "${FILESDIR}"/4.3.3/darwin-libgcc_s-installname.patch
911 -
912 - if [[ ${CHOST} == powerpc*-darwin* ]] ; then
913 - # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44107
914 - sed -i -e 's|^ifeq (/usr/lib,|ifneq (/usr/lib,|' \
915 - libgcc/config/t-slibgcc-darwin || die
916 - fi
917 -}
918 -
919 -src_configure() {
920 - local myconf=()
921 - case ${CTARGET}:" ${USE} " in
922 - powerpc*-darwin*)
923 - # bug #381179
924 - filter-flags "-mcpu=*" "-mtune=*"
925 - # bug #657522
926 - # A bug in configure checks whether -no-pie works, but the
927 - # compiler doesn't pass -no-pie onto the linker if -fno-PIE
928 - # isn't passed, so the configure check always finds -no-pie
929 - # is accepted. (Likewise, when -fno-PIE is passed, the
930 - # compiler passes -no_pie onto the linker.)
931 - # Since our linker doesn't grok this, avoid above checks to
932 - # be run
933 - # NOTE: later ld64 does grok -no_pie, not -no-pie (as checked)
934 - export gcc_cv_c_no_fpie=no
935 - export gcc_cv_no_pie=no
936 - ;;
937 - *-solaris*)
938 - # todo: some magic for native vs. GNU linking?
939 - myconf+=( --with-gnu-ld --with-gnu-as --enable-largefile )
940 - # Solaris 11 defines this in its headers, but that causes a
941 - # mismatch whilst compiling, bug #657514
942 - export ac_cv_func_aligned_alloc=no
943 - export ac_cv_func_memalign=no
944 - export ac_cv_func_posix_memalign=no
945 - ;;
946 - i[34567]86-*-linux*:*" prefix "*)
947 - # to allow the linux-x86-on-amd64.patch become useful, we need
948 - # to enable multilib, even if there is just one multilib option.
949 - myconf+=( --enable-multilib )
950 - if [[ ${CBUILD:-${CHOST}} == "${CHOST}" ]]; then
951 - # we might be on x86_64-linux, but don't do cross-compile, so
952 - # tell the host-compiler to really create 32bits (for stage1)
953 - # (real x86-linux-gcc also accept -m32).
954 - append-flags -m32
955 - fi
956 - ;;
957 - esac
958 -
959 - # Since GCC 4.1.2 some non-posix (?) /bin/sh compatible code is used, at
960 - # least on Solaris, and AIX /bin/sh is way too slow,
961 - # so force it to use $BASH (that portage uses) - it can't be EPREFIX
962 - # in case that doesn't exist yet
963 - export CONFIG_SHELL="${CONFIG_SHELL:-${BASH}}"
964 - toolchain_src_configure "${myconf[@]}"
965 -}
966
967 diff --git a/sys-devel/gcc/gcc-8.3.0.ebuild b/sys-devel/gcc/gcc-8.3.0.ebuild
968 index 9fd18b937f..2da9f162cf 100644
969 --- a/sys-devel/gcc/gcc-8.3.0.ebuild
970 +++ b/sys-devel/gcc/gcc-8.3.0.ebuild
971 @@ -1,4 +1,4 @@
972 -# Copyright 1999-2019 Gentoo Authors
973 +# Copyright 1999-2020 Gentoo Authors
974 # Distributed under the terms of the GNU General Public License v2
975
976 EAPI="5"
977 @@ -14,8 +14,7 @@ RDEPEND=""
978 DEPEND="${RDEPEND}
979 !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.13 ) )
980 kernel_linux? ( >=${CATEGORY}/binutils-2.20 )
981 - kernel_Darwin? ( ${CATEGORY}/binutils-apple )
982 - kernel_AIX? ( ${CATEGORY}/native-cctools )"
983 + kernel_Darwin? ( ${CATEGORY}/binutils-apple )"
984
985 if [[ ${CATEGORY} != cross-* ]] ; then
986 PDEPEND="${PDEPEND} !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.13 ) )"
987
988 diff --git a/sys-devel/gcc/gcc-9.2.0-r3.ebuild b/sys-devel/gcc/gcc-9.2.0-r3.ebuild
989 index 5956e684c1..6d345e0357 100644
990 --- a/sys-devel/gcc/gcc-9.2.0-r3.ebuild
991 +++ b/sys-devel/gcc/gcc-9.2.0-r3.ebuild
992 @@ -13,8 +13,7 @@ RDEPEND=""
993 DEPEND="${RDEPEND}
994 !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.13 ) )
995 kernel_linux? ( >=${CATEGORY}/binutils-2.20 )
996 - kernel_Darwin? ( ${CATEGORY}/binutils-apple )
997 - kernel_AIX? ( ${CATEGORY}/native-cctools )"
998 + kernel_Darwin? ( ${CATEGORY}/binutils-apple )"
999
1000 if [[ ${CATEGORY} != cross-* ]] ; then
1001 PDEPEND="${PDEPEND} !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.13 ) )"