Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/blueness:loongson commit in: sys-devel/gcc/, sys-devel/gcc/files/awk/, sys-devel/gcc/files/
Date: Thu, 28 Jun 2012 16:21:50
Message-Id: 1340900479.c063527b4eb0fcc4987bc21a10d6e057ea30fe06.blueness@gentoo
1 commit: c063527b4eb0fcc4987bc21a10d6e057ea30fe06
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 28 16:21:19 2012 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 28 16:21:19 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/blueness.git;a=commit;h=c063527b
7
8 sys-devel/gcc: tree now has PIC and SSP for mips glibc
9
10 (Portage version: 2.1.10.65/git/Linux x86_64, unsigned Manifest commit)
11
12 ---
13 sys-devel/gcc/Manifest | 25 --
14 sys-devel/gcc/files/awk/fixlafiles.awk | 314 --------------------
15 sys-devel/gcc/files/awk/fixlafiles.awk-no_gcc_la | 335 ----------------------
16 sys-devel/gcc/files/c89 | 20 --
17 sys-devel/gcc/files/c99 | 21 --
18 sys-devel/gcc/files/fix_libtool_files.sh | 68 -----
19 sys-devel/gcc/files/gcc-configure-texinfo.patch | 16 -
20 sys-devel/gcc/files/gcc-spec-env.patch | 42 ---
21 sys-devel/gcc/gcc-4.6.3-r99.ebuild | 62 ----
22 sys-devel/gcc/metadata.xml | 25 --
23 10 files changed, 0 insertions(+), 928 deletions(-)
24
25 diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest
26 deleted file mode 100644
27 index eeb696a..0000000
28 --- a/sys-devel/gcc/Manifest
29 +++ /dev/null
30 @@ -1,25 +0,0 @@
31 ------BEGIN PGP SIGNED MESSAGE-----
32 -Hash: SHA256
33 -
34 -AUX awk/fixlafiles.awk 7807 RMD160 749402c9c0a0f1e8755067c0e001f69d73edb09f SHA1 5fc91ce11eb93e989ae64470dba602fe534ac409 SHA256 3cae4890a295adef50c6cf8a7e14d1be4e7a2356479c073e5c29433c3cdf9c5c
35 -AUX awk/fixlafiles.awk-no_gcc_la 8596 RMD160 d34279d732586514b220ec0d583c5e634b5d97ef SHA1 95f07ff4d6c3196e682371f02e6d2207d921a1b5 SHA256 91e36c29133b6ff854bc84acd6cd2e9d07be6eaa73ef9b23e4f7bc6371107fab
36 -AUX c89 412 RMD160 2b54e526a76ff0b2e0e8f4f7f9d6949ac45806fa SHA1 6f6ed5affc4ae906c5d8cbdda557d5bbf683d861 SHA256 29ad5dd697135c2892067e780447894dc1cd071708157e46d21773ab99c5022c
37 -AUX c99 446 RMD160 04ecc9ef9b7a1fd525768955ff6a67fc0d5a17f7 SHA1 312b3b47490d9f62656706908112f9331bc509a4 SHA256 057b348cf5be9b4fb9db99a4549f6433c89d21e5f91dc5e46b0b4dc6b70432f5
38 -AUX fix_libtool_files.sh 1679 RMD160 fbe1ce256574f9da86f03544417e6c4204101873 SHA1 4431d0675aa9613666b1ea0a7ed8efc38035ab0b SHA256 0037e3f1303560f1ffadc61c7ed6bca13a41d6f2f70f196276938cda9dd158f0
39 -AUX gcc-configure-texinfo.patch 337 RMD160 d0e872a9f0ccb5ab51d10f129acd7a19d76a7b75 SHA1 7e267fac540175ce848e563539db8c951cab557b SHA256 74b73a7ecec2d88889876b4db480cd173632f49d5396bb8e5b3c93673f9b5b98
40 -AUX gcc-spec-env.patch 1544 RMD160 1f7747546513a6d8e16bd82c2824969b9a739dfb SHA1 bdc2736377813da4046ceea77922620dd69d8658 SHA256 64b01f29fb853fee5ecda998b66eeaa7ec86ff1fc3b21432bfd69eb543c93e6a
41 -DIST ecj-4.5.jar 1470676 RMD160 d3f4da657f086b6423f74e93f001132f4855368a SHA1 58c1d79c64c8cd718550f32a932ccfde8d1e6449 SHA256 98fd128f1d374d9e42fd9d4836bdd249c6d511ebc6c0df17fbc1b9df96c3d781
42 -DIST gcc-4.4.3-specs-0.2.0.tar.bz2 2004 RMD160 0a013f95029a170eeea3cb6ccbfd65f64b66f465 SHA1 61bd3c13400772ec4d5d4fcee297e3d86adbd065 SHA256 f6c7cb99beead66dd4d06f7004c5731a9360330cbe878ce79792c618e008eed2
43 -DIST gcc-4.6.3-patches-1.3.tar.bz2 83071 RMD160 4e8c94ce83421ed1138439f946321763803b3157 SHA1 b05f96f1741828fb13ca23f0bd057223de1908ab SHA256 0acc8494932259dbadc118587626bb2505fc565e1a862bb792116e08961c141a
44 -DIST gcc-4.6.3-piepatches-v0.5.2.tar.bz2 15002 RMD160 75f25287ded26fd8ae88516b0b72d21fc0f17296 SHA1 8a1848819bc9c3e00513e68abded115410f25f78 SHA256 6606d47a8bbaa9cba0dd3b022cbf6ed14325b8560dd17f7601dbaa4697df3691
45 -DIST gcc-4.6.3-uclibc-patches-1.0.tar.bz2 3023 RMD160 6487e89d892687c51f4d764979c90133ae4c0a07 SHA1 26581caab046ba4a03041557db641f2899d518af SHA256 4219a3582c5f98bf8437bfc3feb8c264f8aabd8078caaddef46dd38be33f089f
46 -DIST gcc-4.6.3.tar.bz2 71999439 RMD160 9abb2f940d08fc84f2d91b6a6ce8d662ca889269 SHA1 ce317ca5c8185b58bc9300182b534608c578637f SHA256 e8f5853d4eec2f5ebaf8a72ae4d53c436aacf98153b2499f8635b48c4718a093
47 -EBUILD gcc-4.6.3-r99.ebuild 1872 RMD160 341e52b7a17f4f5cee7c73aee53d5c6111530318 SHA1 fc6fabdaf5dedb23b577a3777d5c80d5cf3fc8d5 SHA256 43836be9ce4b23cf6d3c27266d7c5ccfa1e72389e1b550daba3421560a52339c
48 -MISC metadata.xml 1446 RMD160 4d081af8871753802ef38170948a8c40bd5397aa SHA1 e68b6d2f1eec5b3230df253c62e286d06c656415 SHA256 3943d24d769c3632a5f1b13e00e323337ddc3115b16e49bc1b0751532f8455a8
49 ------BEGIN PGP SIGNATURE-----
50 -Version: GnuPG v2.0.19 (GNU/Linux)
51 -
52 -iEYEAREIAAYFAk/qBoEACgkQl5yvQNBFVTULBgCfUsJl+BbAnO+kXWv3+CEjWOPc
53 -WKEAniWEyY13M1Ja56h3DJ8oDNyIjoKF
54 -=buOG
55 ------END PGP SIGNATURE-----
56
57 diff --git a/sys-devel/gcc/files/awk/fixlafiles.awk b/sys-devel/gcc/files/awk/fixlafiles.awk
58 deleted file mode 100644
59 index ffade96..0000000
60 --- a/sys-devel/gcc/files/awk/fixlafiles.awk
61 +++ /dev/null
62 @@ -1,314 +0,0 @@
63 -# Copyright 1999-2005 Gentoo Foundation
64 -# Distributed under the terms of the GNU General Public License v2
65 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/files/awk/fixlafiles.awk,v 1.15 2008/02/19 05:47:29 vapier Exp $
66 -
67 -#
68 -# Helper functions
69 -#
70 -function printn(string) {
71 - printf("%s", string)
72 -}
73 -function einfo(string) {
74 - printf(" \033[32;01m*\033[0m %s\n", string)
75 -}
76 -function einfon(string) {
77 - printf(" \033[32;01m*\033[0m %s", string)
78 -}
79 -function ewarn(string) {
80 - printf(" \033[33;01m*\033[0m %s\n", string)
81 -}
82 -function ewarnn(string) {
83 - printf(" \033[33;01m*\033[0m %s", string)
84 -}
85 -function eerror(string) {
86 - printf(" \033[31;01m*\033[0m %s\n", string)
87 -}
88 -
89 -#
90 -# assert(condition, errmsg)
91 -# assert that a condition is true. Otherwise exit.
92 -#
93 -function assert(condition, string) {
94 - if (! condition) {
95 - printf("%s:%d: assertion failed: %s\n",
96 - FILENAME, FNR, string) > "/dev/stderr"
97 - _assert_exit = 1
98 - exit 1
99 - }
100 -}
101 -
102 -#
103 -# system(command, return)
104 -# wrapper that normalizes return codes ...
105 -#
106 -function dosystem(command, ret) {
107 - ret = 0
108 - ret = system(command)
109 - if (ret == 0)
110 - return 1
111 - else
112 - return 0
113 -}
114 -
115 -BEGIN {
116 - #
117 - # Get our variables from environment
118 - #
119 - OLDVER = ENVIRON["OLDVER"]
120 - OLDCHOST = ENVIRON["OLDCHOST"]
121 -
122 - if (OLDVER == "") {
123 - eerror("Could not get OLDVER!");
124 - exit 1
125 - }
126 -
127 - # Setup some sane defaults
128 - LIBCOUNT = 2
129 - HAVE_GCC34 = 0
130 - DIRLIST[1] = "/lib"
131 - DIRLIST[2] = "/usr/lib"
132 -
133 - #
134 - # Walk /etc/ld.so.conf to discover all our library paths
135 - #
136 - pipe = "cat /etc/ld.so.conf | sort 2>/dev/null"
137 - while(((pipe) | getline ldsoconf_data) > 0) {
138 - if (ldsoconf_data !~ /^[[:space:]]*#/) {
139 - if (ldsoconf_data == "") continue
140 -
141 - # Remove any trailing comments
142 - sub(/#.*$/, "", ldsoconf_data)
143 - # Remove any trailing spaces
144 - sub(/[[:space:]]+$/, "", ldsoconf_data)
145 -
146 - # If there's more than one path per line, split
147 - # it up as if they were sep lines
148 - split(ldsoconf_data, nodes, /[:,[:space:]]/)
149 -
150 - # Now add the rest from ld.so.conf
151 - for (x in nodes) {
152 - # wtf does this line do ?
153 - sub(/=.*/, "", nodes[x])
154 - # Prune trailing /
155 - sub(/\/$/, "", nodes[x])
156 -
157 - if (nodes[x] == "") continue
158 -
159 - #
160 - # Drop the directory if its a child directory of
161 - # one that was already added ...
162 - # For example, if we have:
163 - # /usr/lib /usr/libexec /usr/lib/mozilla /usr/lib/nss
164 - # We really just want to save /usr/lib /usr/libexec
165 - #
166 - CHILD = 0
167 - for (y in DIRLIST) {
168 - if (nodes[x] ~ "^" DIRLIST[y] "(/|$)") {
169 - CHILD = 1
170 - break
171 - }
172 - }
173 - if (CHILD) continue
174 -
175 - DIRLIST[++LIBCOUNT] = nodes[x]
176 - }
177 - }
178 - }
179 - close(pipe)
180 -
181 - #
182 - # Get line from gcc's output containing CHOST
183 - #
184 - pipe = "gcc -print-file-name=libgcc.a 2>/dev/null"
185 - if ((!((pipe) | getline TMP_CHOST)) || (TMP_CHOST == "")) {
186 - close(pipe)
187 -
188 - # If we fail to get the CHOST, see if we can get the CHOST
189 - # portage thinks we are using ...
190 - pipe = "/usr/bin/portageq envvar 'CHOST'"
191 - assert(((pipe) | getline CHOST), "(" pipe ") | getline CHOST")
192 - } else {
193 - # Check pre gcc-3.4.x versions
194 - CHOST = gensub("^.+lib/gcc-lib/([^/]+)/[0-9]+.+$", "\\1", 1, TMP_CHOST)
195 -
196 - if (CHOST == TMP_CHOST || CHOST == "") {
197 - # Check gcc-3.4.x or later
198 - CHOST = gensub("^.+lib/gcc/([^/]+)/[0-9]+.+$", "\\1", 1, TMP_CHOST);
199 -
200 - if (CHOST == TMP_CHOST || CHOST == "")
201 - CHOST = ""
202 - else
203 - HAVE_GCC34 = 1
204 - }
205 - }
206 - close(pipe)
207 -
208 - if (CHOST == "") {
209 - eerror("Could not get gcc's CHOST!")
210 - exit 1
211 - }
212 -
213 - if (OLDCHOST != "")
214 - if (OLDCHOST == CHOST)
215 - OLDCHOST = ""
216 -
217 - GCCLIBPREFIX_OLD = "/usr/lib/gcc-lib/"
218 - GCCLIBPREFIX_NEW = "/usr/lib/gcc/"
219 -
220 - if (HAVE_GCC34)
221 - GCCLIBPREFIX = GCCLIBPREFIX_NEW
222 - else
223 - GCCLIBPREFIX = GCCLIBPREFIX_OLD
224 -
225 - GCCLIB = GCCLIBPREFIX CHOST
226 -
227 - if (OLDCHOST != "") {
228 - OLDGCCLIB1 = GCCLIBPREFIX_OLD OLDCHOST
229 - OLDGCCLIB2 = GCCLIBPREFIX_NEW OLDCHOST
230 - }
231 -
232 - # Get current gcc's version
233 - pipe = "gcc -dumpversion"
234 - assert(((pipe) | getline NEWVER), "(" pipe ") | getline NEWVER)")
235 - close(pipe)
236 -
237 - if (NEWVER == "") {
238 - eerror("Could not get gcc's version!")
239 - exit 1
240 - }
241 -
242 - # Nothing to do ?
243 - if ((OLDVER == NEWVER) && (OLDCHOST == ""))
244 - exit 0
245 -
246 - #
247 - # Ok, now let's scan for the .la files and actually fix them up
248 - #
249 - for (x = 1; x <= LIBCOUNT; x++) {
250 - # Do nothing if the target dir is gcc's internal library path
251 - if (DIRLIST[x] ~ GCCLIBPREFIX_OLD ||
252 - DIRLIST[x] ~ GCCLIBPREFIX_NEW)
253 - continue
254 -
255 - einfo(" [" x "/" LIBCOUNT "] Scanning " DIRLIST[x] " ...")
256 -
257 - pipe = "find " DIRLIST[x] "/ -name '*.la' 2>/dev/null"
258 - while (((pipe) | getline la_files) > 0) {
259 -
260 - # Do nothing if the .la file is located in gcc's internal lib path
261 - if (la_files ~ GCCLIBPREFIX_OLD ||
262 - la_files ~ GCCLIBPREFIX_NEW)
263 - continue
264 -
265 - CHANGED = 0
266 - CHOST_CHANGED = 0
267 -
268 - # See if we need to fix the .la file
269 - while ((getline la_data < (la_files)) > 0) {
270 - if (OLDCHOST != "") {
271 - if ((gsub(OLDGCCLIB1 "[/[:space:]]+",
272 - GCCLIB, la_data) > 0) ||
273 - (gsub(OLDGCCLIB2 "[/[:space:]]+",
274 - GCCLIB, la_data) > 0)) {
275 - CHANGED = 1
276 - CHOST_CHANGED = 1
277 - }
278 - }
279 - if (OLDVER != NEWVER) {
280 - if ((gsub(GCCLIBPREFIX_OLD CHOST "/" OLDVER "[/[:space:]]*",
281 - GCCLIB "/" NEWVER, la_data) > 0) ||
282 - (gsub(GCCLIBPREFIX_NEW CHOST "/" OLDVER "[/[:space:]]*",
283 - GCCLIB "/" NEWVER, la_data) > 0))
284 - CHANGED = 1
285 - }
286 - }
287 - close(la_files)
288 -
289 - # Do the actual changes in a second loop, as we can then
290 - # verify that CHOST_CHANGED among things is correct ...
291 - if (CHANGED) {
292 - ewarnn(" FIXING: " la_files " ...")
293 -
294 - if (CHANGED)
295 - printn("[")
296 -
297 - # Clear the temp file (removing rather than '>foo' is better
298 - # out of a security point of view?)
299 - dosystem("rm -f " la_files ".new")
300 -
301 - while ((getline la_data < (la_files)) > 0) {
302 - if (OLDCHOST != "") {
303 - tmpstr = gensub(OLDGCCLIB1 "([/[:space:]]+)",
304 - GCCLIB "\\1", "g", la_data)
305 - tmpstr = gensub(OLDGCCLIB2 "([/[:space:]]+)",
306 - GCCLIB "\\1", "g", tmpstr)
307 -
308 - if (la_data != tmpstr) {
309 - printn("c")
310 - la_data = tmpstr
311 - }
312 -
313 - if (CHOST_CHANGED > 0) {
314 - # We try to be careful about CHOST changes outside
315 - # the gcc library path (meaning we cannot match it
316 - # via /GCCLIBPREFIX CHOST/) ...
317 -
318 - # Catch:
319 - #
320 - # dependency_libs=' -L/usr/CHOST/{bin,lib}'
321 - #
322 - gsub("-L/usr/" OLDCHOST "/",
323 - "-L/usr/" CHOST "/", la_data)
324 - # Catch:
325 - #
326 - # dependency_libs=' -L/usr/lib/gcc-lib/CHOST/VER/../../../../CHOST/lib'
327 - #
328 - la_data = gensub("(" GCCLIB "/[^[:space:]]+)/" OLDCHOST "/",
329 - "\\1/" CHOST "/", "g", la_data)
330 - }
331 - }
332 -
333 - if (OLDVER != NEWVER) {
334 - # Catch:
335 - #
336 - # dependency_libs=' -L/usr/lib/gcc/CHOST/VER'
337 - #
338 - tmpstr = gensub(GCCLIBPREFIX_OLD CHOST "/" OLDVER "([/[:space:]]+)",
339 - GCCLIB "/" NEWVER "\\1", "g", la_data)
340 - tmpstr = gensub(GCCLIBPREFIX_NEW CHOST "/" OLDVER "([/[:space:]]+)",
341 - GCCLIB "/" NEWVER "\\1", "g", tmpstr)
342 -
343 - if (la_data != tmpstr) {
344 - # Catch:
345 - #
346 - # dependency_libs=' -L/usr/lib/gcc-lib/../../CHOST/lib'
347 - #
348 - # in cases where we have gcc34
349 - tmpstr = gensub(GCCLIBPREFIX_OLD "(../../" CHOST "/lib)",
350 - GCCLIBPREFIX "\\1", "g", tmpstr)
351 - tmpstr = gensub(GCCLIBPREFIX_NEW "(../../" CHOST "/lib)",
352 - GCCLIBPREFIX "\\1", "g", tmpstr)
353 - printn("v")
354 - la_data = tmpstr
355 - }
356 - }
357 -
358 - print la_data >> (la_files ".new")
359 - }
360 -
361 - if (CHANGED)
362 - print "]"
363 -
364 - close(la_files)
365 - close(la_files ".new")
366 -
367 - assert(dosystem("mv -f " la_files ".new " la_files),
368 - "dosystem(\"mv -f " la_files ".new " la_files "\")")
369 - }
370 - }
371 -
372 - close(pipe)
373 - }
374 -}
375 -
376 -# vim:ts=4
377
378 diff --git a/sys-devel/gcc/files/awk/fixlafiles.awk-no_gcc_la b/sys-devel/gcc/files/awk/fixlafiles.awk-no_gcc_la
379 deleted file mode 100644
380 index 346bd16..0000000
381 --- a/sys-devel/gcc/files/awk/fixlafiles.awk-no_gcc_la
382 +++ /dev/null
383 @@ -1,335 +0,0 @@
384 -# Copyright 1999-2005 Gentoo Foundation
385 -# Distributed under the terms of the GNU General Public License v2
386 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/files/awk/fixlafiles.awk-no_gcc_la,v 1.4 2010/03/19 23:53:07 vapier Exp $
387 -
388 -#
389 -# Helper functions
390 -#
391 -function printn(string) {
392 - printf("%s", string)
393 -}
394 -function einfo(string) {
395 - printf(" \033[32;01m*\033[0m %s\n", string)
396 -}
397 -function einfon(string) {
398 - printf(" \033[32;01m*\033[0m %s", string)
399 -}
400 -function ewarn(string) {
401 - printf(" \033[33;01m*\033[0m %s\n", string)
402 -}
403 -function ewarnn(string) {
404 - printf(" \033[33;01m*\033[0m %s", string)
405 -}
406 -function eerror(string) {
407 - printf(" \033[31;01m*\033[0m %s\n", string)
408 -}
409 -
410 -#
411 -# assert(condition, errmsg)
412 -# assert that a condition is true. Otherwise exit.
413 -#
414 -function assert(condition, string) {
415 - if (! condition) {
416 - printf("%s:%d: assertion failed: %s\n",
417 - FILENAME, FNR, string) > "/dev/stderr"
418 - _assert_exit = 1
419 - exit 1
420 - }
421 -}
422 -
423 -#
424 -# system(command, return)
425 -# wrapper that normalizes return codes ...
426 -#
427 -function dosystem(command, ret) {
428 - ret = 0
429 - ret = system(command)
430 - if (ret == 0)
431 - return 1
432 - else
433 - return 0
434 -}
435 -
436 -#
437 -# parse_ld_conf(config_file)
438 -#
439 -function parse_ld_conf(conf, pipe, ldsoconf_data, CHILD, y) {
440 - pipe = "cd /etc; cat " conf " | sort 2>/dev/null"
441 - while(((pipe) | getline ldsoconf_data) > 0) {
442 - if (ldsoconf_data ~ /^[[:space:]]*#/)
443 - continue
444 - if (ldsoconf_data == "")
445 - continue
446 -
447 - # Handle the "include" keyword
448 - if (ldsoconf_data ~ /^include /) {
449 - sub(/^include /, "", ldsoconf_data)
450 - parse_ld_conf(ldsoconf_data)
451 - continue
452 - }
453 -
454 - # Remove any trailing comments
455 - sub(/#.*$/, "", ldsoconf_data)
456 - # Remove any trailing spaces
457 - sub(/[[:space:]]+$/, "", ldsoconf_data)
458 - # Eat duplicate slashes
459 - sub(/\/\//, "/", ldsoconf_data)
460 - # Prune trailing /
461 - sub(/\/$/, "", ldsoconf_data)
462 -
463 - #
464 - # Drop the directory if its a child directory of
465 - # one that was already added ...
466 - # For example, if we have:
467 - # /usr/lib /usr/libexec /usr/lib/mozilla /usr/lib/nss
468 - # We really just want to save /usr/lib /usr/libexec
469 - #
470 - CHILD = 0
471 - for (y in DIRLIST) {
472 - if (ldsoconf_data ~ "^" DIRLIST[y] "(/|$)") {
473 - CHILD = 1
474 - break
475 - }
476 - }
477 - if (CHILD) continue
478 -
479 - DIRLIST[++LIBCOUNT] = ldsoconf_data
480 - }
481 - close(pipe)
482 -}
483 -
484 -BEGIN {
485 - #
486 - # Get our variables from environment
487 - #
488 - OLDVER = ENVIRON["OLDVER"]
489 - OLDCHOST = ENVIRON["OLDCHOST"]
490 -
491 - if (OLDVER == "") {
492 - eerror("Could not get OLDVER!");
493 - exit 1
494 - }
495 -
496 - # Setup some sane defaults
497 - LIBCOUNT = 2
498 - HAVE_GCC34 = 0
499 - DIRLIST[1] = "/lib"
500 - DIRLIST[2] = "/usr/lib"
501 -
502 - #
503 - # Walk /etc/ld.so.conf to discover all our library paths
504 - #
505 - parse_ld_conf("/etc/ld.so.conf")
506 -
507 - #
508 - # Get line from gcc's output containing CHOST
509 - #
510 - pipe = "gcc -print-file-name=libgcc.a 2>/dev/null"
511 - if ((!((pipe) | getline TMP_CHOST)) || (TMP_CHOST == "")) {
512 - close(pipe)
513 -
514 - # If we fail to get the CHOST, see if we can get the CHOST
515 - # portage thinks we are using ...
516 - pipe = "/usr/bin/portageq envvar 'CHOST'"
517 - assert(((pipe) | getline CHOST), "(" pipe ") | getline CHOST")
518 - } else {
519 - # Check pre gcc-3.4.x versions
520 - CHOST = gensub("^.+lib/gcc-lib/([^/]+)/[0-9]+.+$", "\\1", 1, TMP_CHOST)
521 -
522 - if (CHOST == TMP_CHOST || CHOST == "") {
523 - # Check gcc-3.4.x or later
524 - CHOST = gensub("^.+lib/gcc/([^/]+)/[0-9]+.+$", "\\1", 1, TMP_CHOST);
525 -
526 - if (CHOST == TMP_CHOST || CHOST == "")
527 - CHOST = ""
528 - else
529 - HAVE_GCC34 = 1
530 - }
531 - }
532 - close(pipe)
533 -
534 - if (CHOST == "") {
535 - eerror("Could not get gcc's CHOST!")
536 - exit 1
537 - }
538 -
539 - if (OLDCHOST != "")
540 - if (OLDCHOST == CHOST)
541 - OLDCHOST = ""
542 -
543 - GCCLIBPREFIX_OLD = "/usr/lib/gcc-lib/"
544 - GCCLIBPREFIX_NEW = "/usr/lib/gcc/"
545 -
546 - if (HAVE_GCC34)
547 - GCCLIBPREFIX = GCCLIBPREFIX_NEW
548 - else
549 - GCCLIBPREFIX = GCCLIBPREFIX_OLD
550 -
551 - GCCLIB = GCCLIBPREFIX CHOST
552 -
553 - if (OLDCHOST != "") {
554 - OLDGCCLIB1 = GCCLIBPREFIX_OLD OLDCHOST
555 - OLDGCCLIB2 = GCCLIBPREFIX_NEW OLDCHOST
556 - }
557 -
558 - # Get current gcc's version
559 - pipe = "gcc -dumpversion"
560 - assert(((pipe) | getline NEWVER), "(" pipe ") | getline NEWVER)")
561 - close(pipe)
562 -
563 - if (NEWVER == "") {
564 - eerror("Could not get gcc's version!")
565 - exit 1
566 - }
567 -
568 - # Nothing to do ?
569 - # NB: Do not check for (OLDVER == NEWVER) anymore, as we might need to
570 - # replace libstdc++.la ....
571 - if ((OLDVER == "") && (OLDCHOST == ""))
572 - exit 0
573 -
574 - #
575 - # Ok, now let's scan for the .la files and actually fix them up
576 - #
577 - for (x = 1; x <= LIBCOUNT; x++) {
578 - # Do nothing if the target dir is gcc's internal library path
579 - if (DIRLIST[x] ~ GCCLIBPREFIX_OLD ||
580 - DIRLIST[x] ~ GCCLIBPREFIX_NEW)
581 - continue
582 -
583 - einfo(" [" x "/" LIBCOUNT "] Scanning " DIRLIST[x] " ...")
584 -
585 - pipe = "find " DIRLIST[x] "/ -name '*.la' 2>/dev/null"
586 - while (((pipe) | getline la_files) > 0) {
587 -
588 - # Do nothing if the .la file is located in gcc's internal lib path
589 - if (la_files ~ GCCLIBPREFIX_OLD ||
590 - la_files ~ GCCLIBPREFIX_NEW)
591 - continue
592 -
593 - CHANGED = 0
594 - CHOST_CHANGED = 0
595 -
596 - # See if we need to fix the .la file
597 - while ((getline la_data < (la_files)) > 0) {
598 - if (OLDCHOST != "") {
599 - if ((gsub(OLDGCCLIB1 "[/[:space:]]+",
600 - GCCLIB, la_data) > 0) ||
601 - (gsub(OLDGCCLIB2 "[/[:space:]]+",
602 - GCCLIB, la_data) > 0)) {
603 - CHANGED = 1
604 - CHOST_CHANGED = 1
605 - }
606 - }
607 - if (OLDVER != NEWVER) {
608 - if ((gsub(GCCLIBPREFIX_OLD CHOST "/" OLDVER "[/[:space:]]*",
609 - GCCLIB "/" NEWVER, la_data) > 0) ||
610 - (gsub(GCCLIBPREFIX_NEW CHOST "/" OLDVER "[/[:space:]]*",
611 - GCCLIB "/" NEWVER, la_data) > 0))
612 - CHANGED = 1
613 - }
614 - # We now check if we have libstdc++.la, as we remove the
615 - # libtool linker scripts for gcc ...
616 - # We do this last, as we only match the new paths
617 - if (gsub(GCCLIB "/" NEWVER "/libstdc\\+\\+\\.la",
618 - "-lstdc++", la_data) > 0)
619 - CHANGED = 1
620 - }
621 - close(la_files)
622 -
623 - # Do the actual changes in a second loop, as we can then
624 - # verify that CHOST_CHANGED among things is correct ...
625 - if (CHANGED) {
626 - ewarnn(" FIXING: " la_files " ...[")
627 -
628 - # Clear the temp file (removing rather than '>foo' is better
629 - # out of a security point of view?)
630 - dosystem("rm -f " la_files ".new")
631 -
632 - while ((getline la_data < (la_files)) > 0) {
633 - if (OLDCHOST != "") {
634 - tmpstr = gensub(OLDGCCLIB1 "([/[:space:]]+)",
635 - GCCLIB "\\1", "g", la_data)
636 - tmpstr = gensub(OLDGCCLIB2 "([/[:space:]]+)",
637 - GCCLIB "\\1", "g", tmpstr)
638 -
639 - if (la_data != tmpstr) {
640 - printn("c")
641 - la_data = tmpstr
642 - }
643 -
644 - if (CHOST_CHANGED > 0) {
645 - # We try to be careful about CHOST changes outside
646 - # the gcc library path (meaning we cannot match it
647 - # via /GCCLIBPREFIX CHOST/) ...
648 -
649 - # Catch:
650 - #
651 - # dependency_libs=' -L/usr/CHOST/{bin,lib}'
652 - #
653 - gsub("-L/usr/" OLDCHOST "/",
654 - "-L/usr/" CHOST "/", la_data)
655 - # Catch:
656 - #
657 - # dependency_libs=' -L/usr/lib/gcc-lib/CHOST/VER/../../../../CHOST/lib'
658 - #
659 - la_data = gensub("(" GCCLIB "/[^[:space:]]+)/" OLDCHOST "/",
660 - "\\1/" CHOST "/", "g", la_data)
661 - }
662 - }
663 -
664 - if (OLDVER != NEWVER) {
665 - # Catch:
666 - #
667 - # dependency_libs=' -L/usr/lib/gcc/CHOST/VER'
668 - #
669 - tmpstr = gensub(GCCLIBPREFIX_OLD CHOST "/" OLDVER "([/[:space:]]+)",
670 - GCCLIB "/" NEWVER "\\1", "g", la_data)
671 - tmpstr = gensub(GCCLIBPREFIX_NEW CHOST "/" OLDVER "([/[:space:]]+)",
672 - GCCLIB "/" NEWVER "\\1", "g", tmpstr)
673 -
674 - if (la_data != tmpstr) {
675 - # Catch:
676 - #
677 - # dependency_libs=' -L/usr/lib/gcc-lib/../../CHOST/lib'
678 - #
679 - # in cases where we have gcc34
680 - tmpstr = gensub(GCCLIBPREFIX_OLD "(../../" CHOST "/lib)",
681 - GCCLIBPREFIX "\\1", "g", tmpstr)
682 - tmpstr = gensub(GCCLIBPREFIX_NEW "(../../" CHOST "/lib)",
683 - GCCLIBPREFIX "\\1", "g", tmpstr)
684 - printn("v")
685 - la_data = tmpstr
686 - }
687 - }
688 -
689 - # We now check if we have libstdc++.la, as we remove the
690 - # libtool linker scripts for gcc and any referencese in any
691 - # libtool linker scripts.
692 - # We do this last, as we only match the new paths
693 - tmpstr = gensub(GCCLIB "/" NEWVER "/libstdc\\+\\+\\.la",
694 - "-lstdc++", "g", la_data);
695 - if (la_data != tmpstr) {
696 - printn("l")
697 - la_data = tmpstr
698 - }
699 -
700 - print la_data >> (la_files ".new")
701 - }
702 -
703 - if (CHANGED)
704 - print "]"
705 -
706 - close(la_files)
707 - close(la_files ".new")
708 -
709 - assert(dosystem("mv -f " la_files ".new " la_files),
710 - "dosystem(\"mv -f " la_files ".new " la_files "\")")
711 - }
712 - }
713 -
714 - close(pipe)
715 - }
716 -}
717 -
718 -# vim:ts=4
719
720 diff --git a/sys-devel/gcc/files/c89 b/sys-devel/gcc/files/c89
721 deleted file mode 100755
722 index cee0325..0000000
723 --- a/sys-devel/gcc/files/c89
724 +++ /dev/null
725 @@ -1,20 +0,0 @@
726 -#! /bin/sh
727 -
728 -# Call the appropriate C compiler with options to accept ANSI/ISO C
729 -# The following options are the same (as of gcc-2.95):
730 -# -ansi
731 -# -std=c89
732 -# -std=iso9899:1990
733 -
734 -for i; do
735 - case "$i" in
736 - -ansi|-std=c89|-std=iso9899:1990)
737 - ;;
738 - -std=*)
739 - echo >&2 "`basename $0` called with non ANSI/ISO C90 option $i"
740 - exit 1
741 - ;;
742 - esac
743 -done
744 -
745 -exec gcc -std=c89 -pedantic -U_FORTIFY_SOURCE "$@"
746
747 diff --git a/sys-devel/gcc/files/c99 b/sys-devel/gcc/files/c99
748 deleted file mode 100755
749 index c954209..0000000
750 --- a/sys-devel/gcc/files/c99
751 +++ /dev/null
752 @@ -1,21 +0,0 @@
753 -#! /bin/sh
754 -
755 -# Call the appropriate C compiler with options to accept ANSI/ISO C
756 -# The following options are the same (as of gcc-3.3):
757 -# -std=c99
758 -# -std=c9x
759 -# -std=iso9899:1999
760 -# -std=iso9899:199x
761 -
762 -for i; do
763 - case "$i" in
764 - -std=c9[9x]|-std=iso9899:199[9x])
765 - ;;
766 - -ansi|-std=*)
767 - echo >&2 "`basename $0` called with non ANSI/ISO C99 option $i"
768 - exit 1
769 - ;;
770 - esac
771 -done
772 -
773 -exec gcc -std=c99 -pedantic -U_FORTIFY_SOURCE ${1+"$@"}
774
775 diff --git a/sys-devel/gcc/files/fix_libtool_files.sh b/sys-devel/gcc/files/fix_libtool_files.sh
776 deleted file mode 100644
777 index c55250b..0000000
778 --- a/sys-devel/gcc/files/fix_libtool_files.sh
779 +++ /dev/null
780 @@ -1,68 +0,0 @@
781 -#!/bin/sh
782 -# Copyright 1999-2012 Gentoo Foundation
783 -# Distributed under the terms of the GNU General Public License v2
784 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/files/fix_libtool_files.sh,v 1.16 2012/05/18 21:28:56 vapier Exp $
785 -
786 -usage() {
787 -cat << "USAGE_END"
788 -Usage: fix_libtool_files.sh <old-gcc-version> [--oldarch <old-CHOST>]
789 -
790 - Where <old-gcc-version> is the version number of the
791 - previous gcc version. For example, if you updated to
792 - gcc-3.2.1, and you had gcc-3.2 installed, run:
793 -
794 - # fix_libtool_files.sh 3.2
795 -
796 - If you updated to gcc-3.2.3, and the old CHOST was i586-pc-linux-gnu
797 - but you now have CHOST as i686-pc-linux-gnu, run:
798 -
799 - # fix_libtool_files.sh 3.2 --oldarch i586-pc-linux-gnu
800 -
801 - Note that if only the CHOST and not the version changed, you can run
802 - it with the current version and the '--oldarch <old-CHOST>' arguments,
803 - and it will do the expected:
804 -
805 - # fix_libtool_files.sh `gcc -dumpversion` --oldarch i586-pc-linux-gnu
806 -
807 -USAGE_END
808 - exit 1
809 -}
810 -
811 -case $2 in
812 ---oldarch) [ $# -ne 3 ] && usage ;;
813 -*) [ $# -ne 1 ] && usage ;;
814 -esac
815 -
816 -ARGV1=$1
817 -ARGV2=$2
818 -ARGV3=$3
819 -
820 -. /etc/profile || exit 1
821 -. /etc/init.d/functions.sh || exit 1
822 -
823 -if [ ${EUID:-0} -ne 0 ] ; then
824 - eerror "${0##*/}: Must be root."
825 - exit 1
826 -fi
827 -
828 -# make sure the files come out sane
829 -umask 0022
830 -
831 -OLDCHOST=
832 -[ "${ARGV2}" = "--oldarch" ] && OLDCHOST=${ARGV3}
833 -
834 -AWKDIR="/usr/share/gcc-data"
835 -
836 -if [ ! -r "${AWKDIR}/fixlafiles.awk" ] ; then
837 - eerror "${0##*/}: ${AWKDIR}/fixlafiles.awk does not exist!"
838 - exit 1
839 -fi
840 -
841 -OLDVER=${ARGV1}
842 -
843 -export OLDVER OLDCHOST
844 -
845 -einfo "Scanning libtool files for hardcoded gcc library paths..."
846 -exec gawk -f "${AWKDIR}/fixlafiles.awk"
847 -
848 -# vim:ts=4
849
850 diff --git a/sys-devel/gcc/files/gcc-configure-texinfo.patch b/sys-devel/gcc/files/gcc-configure-texinfo.patch
851 deleted file mode 100644
852 index ddc098d..0000000
853 --- a/sys-devel/gcc/files/gcc-configure-texinfo.patch
854 +++ /dev/null
855 @@ -1,16 +0,0 @@
856 -Chances are quite good that the installed makeinfo is sufficient.
857 -So ignore false positives where the makeinfo installed is so new
858 -that it violates the cheesy version grep.
859 -
860 -http://bugs.gentoo.org/198182
861 -
862 ---- configure
863 -+++ configure
864 -@@ -3573,6 +3573,6 @@
865 - :
866 - else
867 -- MAKEINFO="$MISSING makeinfo"
868 -+ :
869 - fi
870 - ;;
871 -
872
873 diff --git a/sys-devel/gcc/files/gcc-spec-env.patch b/sys-devel/gcc/files/gcc-spec-env.patch
874 deleted file mode 100644
875 index 57e7567..0000000
876 --- a/sys-devel/gcc/files/gcc-spec-env.patch
877 +++ /dev/null
878 @@ -1,42 +0,0 @@
879 - Add support for external spec file via the GCC_SPECS env var. This
880 - allows us to easily control pie/ssp defaults with gcc-config profiles.
881 -
882 - Original patch by Rob Holland
883 - Extended to support multiple entries separated by ':' by Kevin F. Quinn
884 - Modified to use getenv instead of poisoned GET_ENVIRONMENT by Ryan Hill
885 -
886 ---- gcc-4/gcc/gcc.c
887 -+++ gcc-4/gcc/gcc.c
888 -@@ -6482,6 +6482,32 @@
889 -
890 - /* Process any user specified specs in the order given on the command
891 - line. */
892 -+#if !(defined (__MSDOS__) || defined (OS2) || defined (VMS) || defined (WIN32))
893 -+ /* Add specs listed in GCC_SPECS. Note; in the process of separating
894 -+ * each spec listed, the string is overwritten at token boundaries
895 -+ * (':') with '\0', an effect of strtok_r().
896 -+ */
897 -+ specs_file = getenv ("GCC_SPECS");
898 -+ if (specs_file && (strlen(specs_file) > 0))
899 -+ {
900 -+ char *spec, *saveptr;
901 -+ for (spec=strtok_r(specs_file,":",&saveptr);
902 -+ spec!=NULL;
903 -+ spec=strtok_r(NULL,":",&saveptr))
904 -+ {
905 -+ struct user_specs *user = (struct user_specs *)
906 -+ xmalloc (sizeof (struct user_specs));
907 -+
908 -+ user->next = (struct user_specs *) 0;
909 -+ user->filename = spec;
910 -+ if (user_specs_tail)
911 -+ user_specs_tail->next = user;
912 -+ else
913 -+ user_specs_head = user;
914 -+ user_specs_tail = user;
915 -+ }
916 -+ }
917 -+#endif
918 - for (uptr = user_specs_head; uptr; uptr = uptr->next)
919 - {
920 - char *filename = find_a_file (&startfile_prefixes, uptr->filename,
921
922 diff --git a/sys-devel/gcc/gcc-4.6.3-r99.ebuild b/sys-devel/gcc/gcc-4.6.3-r99.ebuild
923 deleted file mode 100644
924 index ced7dfa..0000000
925 --- a/sys-devel/gcc/gcc-4.6.3-r99.ebuild
926 +++ /dev/null
927 @@ -1,62 +0,0 @@
928 -# Copyright 1999-2012 Gentoo Foundation
929 -# Distributed under the terms of the GNU General Public License v2
930 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-4.6.3.ebuild,v 1.8 2012/06/04 22:48:18 zorry Exp $
931 -
932 -PATCH_VER="1.3"
933 -UCLIBC_VER="1.0"
934 -
935 -# Hardened gcc 4 stuff
936 -PIE_VER="0.5.2"
937 -SPECS_VER="0.2.0"
938 -SPECS_GCC_VER="4.4.3"
939 -# arch/libc configurations known to be stable with {PIE,SSP}-by-default
940 -PIE_GLIBC_STABLE="mips x86 amd64 ppc ppc64 arm ia64"
941 -PIE_UCLIBC_STABLE="x86 arm amd64 ppc ppc64"
942 -SSP_STABLE="mips amd64 x86 ppc ppc64 arm"
943 -# uclibc need tls and nptl support for SSP support
944 -# uclibc need to be >= 0.9.32
945 -SSP_UCLIBC_STABLE="x86 amd64 ppc ppc64 arm"
946 -#end Hardened stuff
947 -
948 -inherit toolchain
949 -
950 -DESCRIPTION="The GNU Compiler Collection"
951 -
952 -LICENSE="GPL-3 LGPL-3 || ( GPL-3 libgcc libstdc++ gcc-runtime-library-exception-3.1 ) FDL-1.2"
953 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
954 -
955 -RDEPEND=""
956 -DEPEND="${RDEPEND}
957 - elibc_glibc? ( >=sys-libs/glibc-2.8 )
958 - amd64? ( multilib? ( gcj? ( app-emulation/emul-linux-x86-xlibs ) ) )
959 - >=${CATEGORY}/binutils-2.18"
960 -
961 -if [[ ${CATEGORY} != cross-* ]] ; then
962 - PDEPEND="${PDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.8 )"
963 -fi
964 -
965 -src_unpack() {
966 - if has_version '<sys-libs/glibc-2.12' ; then
967 - ewarn "Your host glibc is too old; disabling automatic fortify."
968 - ewarn "Please rebuild gcc after upgrading to >=glibc-2.12 #362315"
969 - EPATCH_EXCLUDE+=" 10_all_default-fortify-source.patch"
970 - fi
971 -
972 - # drop the x32 stuff once 4.7 goes stable
973 - EPATCH_EXCLUDE+=" 80_all_gcc-4.6-x32.patch"
974 -
975 - toolchain_src_unpack
976 -
977 - use vanilla && return 0
978 -
979 - [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch
980 -}
981 -
982 -pkg_setup() {
983 - toolchain_pkg_setup
984 -
985 - ewarn
986 - ewarn "LTO support is still experimental and unstable."
987 - ewarn "Any bugs resulting from the use of LTO will not be fixed."
988 - ewarn
989 -}
990
991 diff --git a/sys-devel/gcc/metadata.xml b/sys-devel/gcc/metadata.xml
992 deleted file mode 100644
993 index 733d99b..0000000
994 --- a/sys-devel/gcc/metadata.xml
995 +++ /dev/null
996 @@ -1,25 +0,0 @@
997 -<?xml version="1.0" encoding="UTF-8"?>
998 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
999 -<pkgmetadata>
1000 - <herd>toolchain</herd>
1001 - <use>
1002 - <flag name="fixed-point">Enable fixed-point arithmetic support for MIPS targets
1003 - in gcc (Warning: significantly increases compile time!)</flag>
1004 - <flag name="go">Build the GCC Go language frontend.</flag>
1005 - <flag name="graphite">Add support for the framework for loop
1006 - optimizations based on a polyhedral intermediate representation</flag>
1007 - <flag name="gtk">Useful only when building GCJ, this enables Abstract Window Toolkit
1008 - (AWT) peer support on top of GTK+</flag>
1009 - <flag name="libssp">Build SSP support into a dedicated library rather than use the
1010 - code in the C library (DO NOT ENABLE THIS IF YOU DON'T KNOW WHAT IT DOES)</flag>
1011 - <flag name="mudflap">Add support for mudflap, a pointer use checking library</flag>
1012 - <flag name="multislot">Allow for SLOTs to include minor version (3.3.4
1013 - instead of just 3.3)</flag>
1014 - <flag name="nopie">Disable PIE support (NOT FOR GENERAL USE)</flag>
1015 - <flag name="nossp">Disable SSP support (NOT FOR GENERAL USE)</flag>
1016 - <flag name="objc">Build support for the Objective C code language</flag>
1017 - <flag name="objc++">Build support for the Objective C++ language</flag>
1018 - <flag name="objc-gc">Build support for the Objective C code language Garbage
1019 - Collector</flag>
1020 - </use>
1021 -</pkgmetadata>