summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-devel/base-gcc/Manifest35
-rw-r--r--sys-devel/base-gcc/base-gcc-4.5.3-r2.ebuild176
-rw-r--r--sys-devel/base-gcc/base-gcc-4.6.2.ebuild184
-rw-r--r--sys-devel/base-gcc/base-gcc-4.6.3.ebuild210
-rw-r--r--sys-devel/base-gcc/base-gcc-4.6.4.ebuild225
-rw-r--r--sys-devel/base-gcc/base-gcc-4.7.3-r1.ebuild209
-rw-r--r--sys-devel/base-gcc/base-gcc-4.7.3.ebuild231
-rw-r--r--sys-devel/base-gcc/base-gcc-4.7.4.ebuild211
-rw-r--r--sys-devel/base-gcc/base-gcc-4.8.3.ebuild211
-rw-r--r--sys-devel/base-gcc/base-gcc-4.8.4.ebuild214
-rw-r--r--sys-devel/base-gcc/files/awk/fixlafiles.awk314
-rw-r--r--sys-devel/base-gcc/files/awk/fixlafiles.awk-no_gcc_la335
-rw-r--r--sys-devel/base-gcc/files/base-gcc-4.8.4-no_instrument_function.patch15
-rw-r--r--sys-devel/base-gcc/files/fix_libtool_files.sh72
-rw-r--r--sys-devel/base-gcc/files/gcc-configure-LANG.patch64
-rw-r--r--sys-devel/base-gcc/files/gcc-configure-texinfo.patch16
-rw-r--r--sys-devel/base-gcc/files/gcc-spec-env-r1.patch87
-rw-r--r--sys-devel/base-gcc/files/gcc-spec-env.patch42
-rw-r--r--sys-devel/base-gcc/files/mkinfodir233
-rw-r--r--sys-devel/base-gcc/files/pro-police-docs.patch74
-rw-r--r--sys-devel/base-gcc/metadata.xml31
-rw-r--r--sys-devel/gcc/gcc-4.5.3-r2.ebuild113
-rw-r--r--sys-devel/gcc/gcc-4.6.2.ebuild132
-rw-r--r--sys-devel/gcc/gcc-4.6.3.ebuild159
-rw-r--r--sys-devel/gcc/gcc-4.7.3.ebuild164
25 files changed, 0 insertions, 3757 deletions
diff --git a/sys-devel/base-gcc/Manifest b/sys-devel/base-gcc/Manifest
deleted file mode 100644
index f7abf651..00000000
--- a/sys-devel/base-gcc/Manifest
+++ /dev/null
@@ -1,35 +0,0 @@
-DIST ecj-4.5.jar 1470676 SHA256 98fd128f1d374d9e42fd9d4836bdd249c6d511ebc6c0df17fbc1b9df96c3d781 SHA512 d4e1bf7538ace56e3d69fa91da5bbd16c272923b4de0a9d8dee23ea2b75f9f38c603de72fc4061df49285c450b63f3df211cee5270e9fffc5447445d1a9c9e4e WHIRLPOOL db54206cfd5eba935e707b8d36ebac40f3c4ed3c1f06ede794288cbdd9c7da9d90c0898e8c98b383af276ea4c1b40c861ebd9e1fc1dce712946184321339d3ad
-DIST gcc-4.4.3-specs-0.2.0.tar.bz2 2004 SHA256 f6c7cb99beead66dd4d06f7004c5731a9360330cbe878ce79792c618e008eed2 SHA512 779ecb0a064d2138b54569c8ae501975b8a6b72e5a3acbf8597619a8db77ee42ef9b0e62608d5192a15e4393e7dfc009bb50b994782236faa744b2c46b5fe517 WHIRLPOOL 8a1e45aad9d306cb19de93c63b5854a97e629d90852feb6861dcfca042b6257705304fc13ad65655a4cb227d36b83fc6063648c94f270821574ee0e85307094e
-DIST gcc-4.5.3-patches-1.1.tar.bz2 20627 SHA256 171348adbdbf3eeb26f47be414a47591eb332271995a052ef57fccb5742361ec SHA512 02e283e67e8c855e4e41a731c2a9f69a2d5160f3ef2cc928c945960b07e88f549b4920262c3476a400245d074726c5d87c256b5275a2c647fc4cf1cebbd197d9 WHIRLPOOL 7e93abb596e31077c7bd524bf5357ca3256959d1eb5edd71075b8aa99492b6bbfc631d8e27ba25227be1af7c4cb3c24142868c8ec93b0552f2c4ddeb6f3e483a
-DIST gcc-4.5.3-piepatches-v0.4.7.tar.bz2 14638 SHA256 fe3414a85b6b0a1e4ff758c008bbefc7411148ccb9af70cb1a0af179eba55a32 SHA512 e3cebb6caa67a949ec8e2a129ee2fb53e4f04549891d8522756c3f123495169d37328dc25c5f12ba79a530d79b422e95b2e8423301c1c521463da7ddabc1240e WHIRLPOOL 4b01a6c8099bc26ed197e8ba1236dbe1327777033a025c269976ac6a218a12a47b7e333356ace3727852b0b58d4e26e33b68538cbf591dca325376ccad45c410
-DIST gcc-4.5.3-uclibc-patches-1.0.tar.bz2 3015 SHA256 7ddb8ac57b42c0de07a9afb3338c05d884da3c606f80cf21ee767f9c4682e3f6 SHA512 dee229ab53968cd1b6eab3040dcb64d145d194bc55eb0599036192e27cfb6001db857f3a0baac9a31edd6df57941c59b6323f5a533bf834a5ca4288f84cc911c WHIRLPOOL c1579263965b6b05e075e6064afb716f3d60c39ff7e7cd10e05639312c789c7498a39d89fd05962788d2be14331d53d2f8a8c29745d263921021144cb39b86dc
-DIST gcc-4.5.3.tar.bz2 66374586 SHA256 0a8847af44a9b33813b199997a73139517c96adfd519eaf24c79d4d9d09f65de SHA512 42c03aa0d16a52e95d1857d859ddd0a4923c232b90481ee52b02bc9a3976bc6e5e502e94af3fc76ac054572a420303c47e409c72f816416aeffd74c4bcd443d3 WHIRLPOOL faad2337eaae059cde6a2f42227f29a6c2855e6cbf16894a178e446b7668b7f68e23a7968926473974ec9aff3680cebbebfc01af0a60474ff90cf1fad3e96a11
-DIST gcc-4.6.2-patches-1.0.tar.bz2 12374 SHA256 a6fd308469094095891ba003b9c3c2d4c8bf35713df987609b675f04a43e83df SHA512 e320dc000a1640cbca174a66a2ae3b88d2f64df35205a1e94d654cee01904e571b3297b4d6a5bd5eb4e697d557436366926ff574d85f9e1e69d14f77e11c0900 WHIRLPOOL a31a80cfb28f116d05f1615dd29f234d8aa67b51c8bce66a1536fc38e8c4b8dca424e86b944be7000c5219b321dd0e95149a1e6f3eb0a5c91d019168a5245bf2
-DIST gcc-4.6.2-piepatches-v0.4.5.tar.bz2 14156 SHA256 a18bea1bc2cad2efde5481a5777a97cf539d206dcbca33758d56d7fbdb43a554 SHA512 53212c6cfb4b8ce6a02af9c6542904d2840cd06346e108daf5e655ee4a7844ff8cb7ed7effda5e5848ea6022f4c0545429121485a4d7a4fad545b2dd2f971103 WHIRLPOOL e783b087283931d3ca36c099f7260e683f6a5348068901fa8b5a45e3c257193add972168700094d90815a6415b582f1fef9270971fe4c2e317333af074af55f8
-DIST gcc-4.6.2-uclibc-patches-1.0.tar.bz2 3019 SHA256 25e902a6d2db7181394df5ad11fafaad064bf28a6ffebd889033f744613ac201 SHA512 b02ce4bd972e80923182b86ff77d9a37b7733985501a9c6f1889d4c77cd0d240ba984d4bd902ba13502fe158b891d313360812f4076044ab58539f2e29930e0e WHIRLPOOL 950bab1bd47d4bf533a618637917449f50d6f9b9bef1b51a9a22248f7d11c1af411d226d57d856ce7736d6d6516345e82ce0fadca18eee68572e1a3af11e4c8b
-DIST gcc-4.6.2.tar.bz2 71995338 SHA256 60b05463dfe18d40d68fb8a71b25b408a01f86cc6ceaf5e6b22238b6b0f450c2 SHA512 51bd123b71b6e4ee4e4b9689a93d328332ea129692f6af2473efdcaedc897a130e4c1948820b3543846d89bb2dd5427b236d2a5d5a6cfa371ba086577f9c0e62 WHIRLPOOL eca8104dbaad1d9682425dd142cbebf3a62a730a1e3d99317f1bd082fb5c0c7fbd0522b3b14f75349618897173fcba79eb82d53718ec8e156bda56f78d1531dd
-DIST gcc-4.6.3-patches-1.3.tar.bz2 83071 SHA256 0acc8494932259dbadc118587626bb2505fc565e1a862bb792116e08961c141a SHA512 8b0a82b6f84d77064adb0f2905b266dada801e929decf6efb0b12dc153958c2c78d092437386576d023896ef44dd66b3259e23a4ade2f80e5972fcd3fc893c50 WHIRLPOOL a79dcf59032b8210a678b4383af02c188612573acb671b90cf411dc7a7e47bb0c8f7876bd2ee24c6b6272a71343e99bafd9f1685edc54f5ed384d27d3758e8e1
-DIST gcc-4.6.3-piepatches-v0.5.2.tar.bz2 15002 SHA256 6606d47a8bbaa9cba0dd3b022cbf6ed14325b8560dd17f7601dbaa4697df3691 SHA512 21ec5bcd43ec0075f8885ef6f567fd9ffd0a64f4c4f9340262900b91a8f22f73a22cd320d6c5a9211083a0a4d21f61ff42e4d9368b5768b395d6ec1b17fc47eb WHIRLPOOL f38666e7c47d9e10b96a22b85c90659800ecfa86d7cf9d5ff69385dc5584fc6ea4b90265ec62d8066adab63a647c1a4bd0f0d1cc69057fcc08c4aa6856cd5766
-DIST gcc-4.6.3-uclibc-patches-1.0.tar.bz2 3023 SHA256 4219a3582c5f98bf8437bfc3feb8c264f8aabd8078caaddef46dd38be33f089f SHA512 e0763dc7f3f94cb9ba6e34233d1a2fa6913918a5100dd029ae76b3b086529b8fafae3086dc22f3294f7d378e5548294264cb2faa80866e8a1ecc666bf60fe010 WHIRLPOOL 1744810d5928b1869929ebd608e1d817e4bcb4f666647bc873e9bdb41c65833a40745e58de5ef4beb98ef4ac539c8560733100a3bbee280c76525ee518ae88c8
-DIST gcc-4.6.3.tar.bz2 71999439 SHA256 e8f5853d4eec2f5ebaf8a72ae4d53c436aacf98153b2499f8635b48c4718a093 SHA512 efedecc1a6d1c36eb91cbecfae9a4414d01051e99965de8a284d1164df3cad13fa99a6dd5a4ceaa03ef63a66884eaf729b49d602ac82088f788bab045ce1eb26 WHIRLPOOL a50059cc5ec5bcf7c7d7108e38087c2168ff0c6817d06b709be901a87007f84cd231ebae0752cdc94fa99c93ecd30ba810d3213aba9f3639292b1e831818ec0c
-DIST gcc-4.6.4-patches-1.0.tar.bz2 18687 SHA256 f751e2e701c48bc30d3047b87b5d08fb15095de3bb5b83c9662c08f5e5449a92 SHA512 8dd580faa9bcffcdeb1843a8d3d3bd8db492891d855c17bba3cc019673d814a5d24a927055694307be6438cb2c041bc799646a483c019f3840e4e1ca33b7ccb5 WHIRLPOOL 695fd821f347062bed01305fa1aca8c0cf4085391ad63f31df4afa3f4eaeb57eba7cebae02caac788dc9b290a57d675e66667ee3e15522d7d2909cbcbf1e6982
-DIST gcc-4.6.4-piepatches-v0.5.2.tar.bz2 14888 SHA256 a6a853197fb0de66c07e6183e686dbdb1f4b55108efd4c8363662cb2b971f43c SHA512 2fd1993b0dc7fc2096e17198f70ff6328ac4d3b7c0db597e3bc119df10eb0b9744f8e6cc659ae1ddd8afdb14f94cb85fdd12033a5d76026c7f84aca44ce9c9b8 WHIRLPOOL 61babd71167114a3f8579e8fb4bba5ed0c217cff4f3760b89de8a67d69c05de43b49bd9f567e6417b69874a878ecdc0e98d807a0e25a9dc80ef5c67594e15a0d
-DIST gcc-4.6.4-uclibc-patches-1.0.tar.bz2 3010 SHA256 946334cc62c0afa2f50a435dffbed12fd32c170f0850bbdce47df188a1eb8918 SHA512 fd289089a30c768b0ec4e3459cf494bc5e9d4ecf87056dc183277c712f7d69ac4cf900950270d8eacfe686b4aa906e1ece87cae52f2cb00642e96c0b95dcf133 WHIRLPOOL 2ce7f308a21fb5072d08a640390eb3f453ad8d811df897b0f9d3e917eef4680fce6cce231159ffe96e371f3c299264eaa51cd110124a3a126f04fb6d8531639e
-DIST gcc-4.6.4.tar.bz2 72006076 SHA256 35af16afa0b67af9b8eb15cafb76d2bc5f568540552522f5dc2c88dd45d977e8 SHA512 b5a5395782e0b9e61cda052f6e00c8575d1aa0b7e8db9e34c06e4e45f12ff37b436018536b7fa69a04a4235b5b368895652e3ed8fab2fe11763f9782ed9161dc WHIRLPOOL ab1b035f43aec669640b36037e65ae0edceb3b13b1ce4f7900aeff5ee06686dc2d66c3dd81156f53c4e9a9a806e4becd4462f72a6c4ad7e646b632c10c23356c
-DIST gcc-4.7.3-patches-1.0.tar.bz2 39969 SHA256 c9a5d7c6da7d056f7fca15b33eb7f399bb7ed5a2d0a892b97e0c7609146a2a24 SHA512 d5c3151eca135bb08511955d81c7727adbf8fc33043b64a4431b0fe95d2cac1bf3c5410fa9616373d6b3d932604195ff29f6321e61a3de69a7704f1d1cb1759f WHIRLPOOL 315578ef5a7226ed66c4831b25c79647120453dc169dc8ecd291e099500ae52284ffa451164522d6d55d11c440a7aa353a283c07e28c103c522df0c2e2f43fff
-DIST gcc-4.7.3-patches-1.4.tar.bz2 43148 SHA256 bfafbd4c1cdd589858c18072f8e06c537370169cce1788aba869f35096174e57 SHA512 6dfc5b405e2eca70642f42974d7d3183ff8f0eed3e9f29fbf197e8959bc1795a1ba54df99e4f73df1017332f46bdf3d1c10d4b0f89fea71d604dd5ebda488c22 WHIRLPOOL 2fbd05323dd803a1b2b7c09a3b44cc8f23d4662f61a89b9365a5d505b4a605ac168fc940bae5992e2ad6b821f93d0f6651092d3301b15fdfd14ccf608fa241e6
-DIST gcc-4.7.3-piepatches-v0.5.5.tar.bz2 15378 SHA256 b6f6b6709e7b13f6c05090f3bf68f3a64db19d52593a870cc7717c5c128b05a2 SHA512 d0189d2e4049d471dedaddcba319fe2c2b29855f7b33e84b26051504ead2936c852ef7870a1d19d755bb343c9b121b0ce5295665ab4ff1e448436bd448c08e1f WHIRLPOOL ccceedb41d48da69f5a423b6b73436c9fbb7b1e382456abfcef954f25666e1b7caf926bc5eb977e934502359a356d623c439d80825e87d9fe46b5ae78a74bde3
-DIST gcc-4.7.3-uclibc-patches-1.0.tar.bz2 3013 SHA256 731c518f31db8debd08bea92db8e3bf1e9962552909407452dc2ac3c491cf11c SHA512 6119159300e76be87732f2a44b1a9388228235d7832370dbae531c2c96694ea42ed4c75acf7abca98ec0035fbc50a8bf84225574505358c2739e64b0f3fd6a95 WHIRLPOOL 4a874a5684937907720aa5a4a1dbc237aa7d985292befd1c591cf0789c71e0da22ced5b7f7e049731bc2d6496e959cbe3c9010047ceb1b05675e61865004c71a
-DIST gcc-4.7.3.tar.bz2 82904224 SHA256 2f7c37eb4fc14422ff2358a9ef59c974a75ab41204ef0e49fc34ab1d8981a9c3 SHA512 5671a2dd3b6ac0d23f305cb11a796aebd823c1462b873136b412e660966143f4e07439bd8926c1443b78442beb6ae370ef91d819ec615920294875b722b7b0bd WHIRLPOOL cb3408e3e251833f38ae7cf2388a1ddce864614fe1c68de9729a1a9a1f8f028ab92c0f2b863e7fa3ac16dbf443306ac864e74c9cce90690230c081ee2ac309d3
-DIST gcc-4.7.4-patches-1.2.tar.bz2 41732 SHA256 6885f63b7cd37a0f4fb9584a15e3144c5a08abd2b1fdcc485f43daba576f162c SHA512 ee42ca54ee8a3b03c20870493ac91ceb224c74c8f6c92e9bec43a2e4c46a0179a349faa14e3d6583367dec6e001cb2071a31d2eeadb4902ea97a7cf9a3958b6b WHIRLPOOL 04672dd9f9e481e591d0cb4a7bd2f65d7e78c3a44b91d982db3e78d1c9a3b29a544726a89d34ea4f4c9791595f21da2ad97ec87c719e5334b6eb7100df6e28b3
-DIST gcc-4.7.4-piepatches-v0.5.5.tar.bz2 15358 SHA256 6b568bd204e3ffb177df1830e5a888be3987491b4183bdb6ad75ad83c642a348 SHA512 f5e078bf4c17f7b5be102f1e3358d91c72e80363b5e055a92461f78399a1bf27bf6cb690d41900719bb260b6529f5d1aac999e613fda6ac5e4efa27f622510e6 WHIRLPOOL 42e348d5925cf4d43697a6dc06c911cc617f89037949ce1d8f7aa0fa93405f460e7416d6cd00e8fb2aac54c6f26fcae00691917f1517fcfb6891925efa3d3400
-DIST gcc-4.7.4-uclibc-patches-1.0.tar.bz2 3019 SHA256 cbdfe2947f653e11ac391dded461416e5cef1ff8900cf8fe92672de797b4018b SHA512 c2e6c96b74365f8233f6106fa03d94075b60f6f77c683aa2e27aceb007da723243f8e3ddea8b178e6a0f7939b8e35615165534dc74e5050f87680ab261a31c52 WHIRLPOOL 53c8bd64336eb55d8e3d62a33267d3d99c0239d5c818985a9830fd776d766aabf4b0bce630949c5b522580566e2eeba1b59bfc1b8388dee7ec6c990512d2c499
-DIST gcc-4.7.4.tar.bz2 82935453 SHA256 92e61c6dc3a0a449e62d72a38185fda550168a86702dea07125ebd3ec3996282 SHA512 dfcb737073191e628231031a3571ec77ee760a59377630f4a6e4fdfa66f9ddad39fde47e3f0f227eb43cdf90e0d34cde5abdc9ac892c1e111a911062a66c9189 WHIRLPOOL df8408e80634ce28f105f9abcdcf38fba5c130795cbe48428527a68819abebc3bc7152bb6ad714e40c71450a08986b48ddd630c887e1b2faf07c3babfe720969
-DIST gcc-4.8.3-patches-1.1.tar.bz2 19882 SHA256 019cbe76f20f4e294b900ccb99a6b52553ed04fa0d2993798b3a07b0e4a8f90a SHA512 8512ec54fb2d482e08ca54042e11c6334d653ec850cc7c920ed95654575222ac0303caa35cd46e80f1985d86cd229f35e26e0eaca1ae623fd8d336940148801c WHIRLPOOL d7b8d6278b6f79aa00fcd29ed6142cad3002def33edb0be44e638d50cb3b1fa8da72fa62a7276c81c94cd873c872dd0e7fd602022420d9601fde8f2b04872ece
-DIST gcc-4.8.3-piepatches-v0.5.9.tar.bz2 13310 SHA256 d08e3770453edb728216243ecaf639ff7bc8aa77560fffdd561b2a0859d0b869 SHA512 d9d7dc4b7d8f52cce48dff36ee32db5346baed50968a1cacafa9a426849c5df5387061b26c8a0d2363bf91e5f55cb459cb4a176c5652690f914916047c0437f8 WHIRLPOOL 1e5cb3556b695de7f42ab44636194e86128f80bdffbe049fc1d4ee17b772bc1ea2089b3fe88bec60c52aab4bf5301344be27fd11be3c6cc8ef798d6441285c8b
-DIST gcc-4.8.3-uclibc-patches-1.0.tar.bz2 3014 SHA256 75f089ed44e33be8923f82eaa1d231f71d2cded475fb10938eded386647c5e04 SHA512 7e74fefae6136d2e132ee37905adbdf7f528d31a7bb67ed97bc99b6208f177a6105ef0f0e0c77eb87368359f7da49de768ff98ec07a569e19bfdd00f67a445a8 WHIRLPOOL 6fd766ba280fc0b96f1823315b5098a36d361dc9c8d179b2e262d72156508b70c560ef5095f3556bb5c922e495cc7eefb4bd5d970b2e4dff9e9ce654703fddc5
-DIST gcc-4.8.3.tar.bz2 86126808 SHA256 6a8e4f11b185f4fe2ed9d7fc053e80f8c7e73f800c045f51f9d8bea33f080f1e SHA512 2b40d231e8445f9c1654137df509f09ce1187b475138ca7f648f710d922a1718f740b2d8a37c26e16b5e27900c60358be98229ae884a6f1f70e9df44ad24d02b WHIRLPOOL 6dd3bd4b51bb9b8c52fb743bba28cde8612ff7090b71e56bf02d3613b91cd4c3c4dd91dbcb672985f22400d776870ba55550e1fc44afae9737092ceca5f83ebd
-DIST gcc-4.8.4-patches-1.5.tar.bz2 25549 SHA256 b901062d54e2ec270664881e5142c827a5b31354c94e1d57b19897e0316dfda6 SHA512 6a3d8ea98026c07ecd20a604e6ff7461c6f652895f7c06a68e54926f4a52989624939d16abefc41de779ba189e3cc5f29d704696cd08e740eb9b220f4ff00187 WHIRLPOOL 304f927a08319004dddff8162646249c18cfb557d8f3e618bd36e3b055f31ead9ea6751ce00566be00871f3afbfc761c92ecf64ca0a6f682bffed17ad593a759
-DIST gcc-4.8.4-piepatches-v0.6.1.tar.bz2 14110 SHA256 558bd1babcd687979ef6269b8e4774a3a06b860bda44e0a8aafaaa55423574b4 SHA512 464c7c482a244f6e3d07beb0bbe6d007bb95502d76d08dbb9daca92bcdb4560571f85eb10a73f542a03d1c7ba90fd1e50cfb8220f933ef559ff6f7867bc8bbdc WHIRLPOOL cc3ab1819905a32dd5983d1fae5c6812343c1426ec3ef387c56eaf46c73c646e376ae6351a151bd5579393be5055a231cb94e29ab03051f729ad4c685e69b77f
-DIST gcc-4.8.4-uclibc-patches-1.0.tar.bz2 3004 SHA256 c7f9d3b7eba23a8042edad469a5e2a2a7ad613a7a6b6c658179409d7859edf41 SHA512 0e22e57731725f2d2a53c7137ee667a54ff92d30a7532660bc75220e2445452605e3e377b56b99bc3a62feb65d46b315f28aba3e075ffabd1e9d60e94e35b4af WHIRLPOOL 472cdbd2c7f77ce6505f6f5feb27d530edc5250d6e167ecd4a8ab1cd877abf4ae842f4785c55486bddb49e2e553c688c24a6d7e998cb211cde844b9867436c09
-DIST gcc-4.8.4.tar.bz2 86220648 SHA256 4a80aa23798b8e9b5793494b8c976b39b8d9aa2e53cd5ed5534aff662a7f8695 SHA512 b4c84ebd754c026029d706ef52c4242df4dcadc6a22cc5669b3aa37ac9dc25bc9cd9651fda83fb24dd5d17b1710e6865a35bb6c5cd9b95d0971717453935ae8e WHIRLPOOL b8b44413da420d083d0edcb846ad1b619971c399638e629089ca3bc8b6008a41bd38d688199f1451171d32443c37ab749f44a3763c5150f2147f729d4bd45a4b
diff --git a/sys-devel/base-gcc/base-gcc-4.5.3-r2.ebuild b/sys-devel/base-gcc/base-gcc-4.5.3-r2.ebuild
deleted file mode 100644
index 1b3ecc74..00000000
--- a/sys-devel/base-gcc/base-gcc-4.5.3-r2.ebuild
+++ /dev/null
@@ -1,176 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-PATCH_VER="1.1"
-UCLIBC_VER="1.0"
-
-# Hardened gcc 4 stuff
-PIE_VER="0.4.7"
-SPECS_VER="0.2.0"
-SPECS_GCC_VER="4.4.3"
-# arch/libc configurations known to be stable with {PIE,SSP}-by-default
-PIE_GLIBC_STABLE="x86 amd64 ppc ppc64 arm ia64"
-PIE_UCLIBC_STABLE="x86 arm amd64 ppc ppc64"
-SSP_STABLE="amd64 x86 ppc ppc64 arm"
-# uclibc need tls and nptl support for SSP support
-SSP_UCLIBC_STABLE=""
-#end Hardened stuff
-
-inherit toolchain
-
-DESCRIPTION="The GNU Compiler Collection"
-
-LICENSE="GPL-3 LGPL-3 || ( GPL-3 libgcc libstdc++ gcc-runtime-library-exception-3.1 ) FDL-1.2"
-KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
-
-RDEPEND=">=sys-libs/zlib-1.1.4
- >=sys-devel/gcc-config-1.4
- virtual/libiconv
- >=dev-libs/gmp-4.3.2
- >=dev-libs/mpfr-2.4.2
- >=dev-libs/mpc-0.8.1
- graphite? (
- >=dev-libs/ppl-0.10
- >=dev-libs/cloog-ppl-0.15.8
- )
- lto? ( || ( >=dev-libs/elfutils-0.143 dev-libs/libelf ) )
- !build? (
- >=sys-libs/ncurses-5.2-r2
- nls? ( sys-devel/gettext )
- )"
-
-DEPEND="${RDEPEND}
- test? ( >=dev-util/dejagnu-1.4.4 >=sys-devel/autogen-5.5.4 )
- >=sys-apps/texinfo-4.8
- >=sys-devel/bison-1.875
- elibc_glibc? ( >=sys-libs/glibc-2.8 )
- ppc? ( >=${CATEGORY}/binutils-2.17 )
- ppc64? ( >=${CATEGORY}/binutils-2.17 )
- >=${CATEGORY}/binutils-2.15.94"
-PDEPEND=">=sys-devel/gcc-config-1.4"
-
-## No changes
-src_unpack() {
- toolchain_src_unpack
-
- use vanilla && return 0
-
- sed -i 's/use_fixproto=yes/:/' gcc/config.gcc #PR33200
-
- [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch
-}
-
-## Remove lto conditional
-pkg_setup() {
- toolchain_pkg_setup
-}
-
-## Just install libgcc stuff
-src_install() {
- cd "${WORKDIR}/build"
- S="${WORKDIR}"/build \
- emake -j1 -C "${CTARGET}/libgcc" DESTDIR="${D}" install-shared || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libgcc" DESTDIR="${D}" \
- install-shared || die
- fi
-
- if use mudflap; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libmudflap" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libmudflap" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- fi
- fi
-
- if use openmp; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libgomp" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libgomp" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- fi
- fi
-
- S="${WORKDIR}"/build \
- emake -j1 -C "${CTARGET}/libstdc++-v3/src" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libstdc++-v3/src" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- fi
-
-
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libstdc++-v3/po" DESTDIR="${D}" install || die
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libgomp" DESTDIR="${D}" install-info || die
-
- # GCC 4.6 only
- #S="${WORKDIR}"/build emake -j1 DESTDIR="${D}" install-target-libquadmath || die
- if use fortran; then
- S="${WORKDIR}"/build emake -j1 DESTDIR="${D}" install-target-libgfortran || die
- fi
- # TODO: what to do with USE objc++ and objc-gc ?
- if use objc; then
- S="${WORKDIR}"/build emake -j1 DESTDIR="${D}" install-target-libobjc || die
- fi
-
- # from toolchain.eclass yay
- gcc_movelibs
-
- dodir /etc/env.d/gcc
- create_gcc_env_entry
-
- # Setup the gcc_env_entry for hardened gcc 4 with minispecs
- if want_minispecs ; then
- copy_minispecs_gcc_specs
- fi
-
- # drop any .la, .a
- find "${D}" -name *.a -delete
- find "${D}" -name *.la -delete
-
- # drop any include
- rm "${D}${LIBPATH}"/include -rf
-
- # drop specs as well, provided by sys-devel/gcc-${PV}:${SLOT}
- # unfortunately, the spec shit above does create the env.d/
- # file content...
- rm "${D}${LIBPATH}"/{32/,}*.spec{s,} -rf
- rm "${D}${LIBPATH}"/specs -rf
-
- # Now do the fun stripping stuff
- env RESTRICT="" CHOST=${CTARGET} prepstrip "${D}${LIBPATH}"
-
- cd "${S}"
- if ! is_crosscompile; then
- has noinfo ${FEATURES} \
- && rm -r "${D}/${DATAPATH}"/info \
- || prepinfo "${DATAPATH}"
- fi
-
- # use gid of 0 because some stupid ports don't have
- # the group 'root' set to gid 0
- chown -R root:0 "${D}"${LIBPATH}
-}
-
-## Do nothing!
-pkg_preinst() {
- :
-}
-
-## Do nothing!
-pkg_postinst() {
- :
-}
-
-## Do nothing!
-pkg_prerm() {
- :
-}
-
-## Do nothing!
-pkg_postrm() {
- :
-}
diff --git a/sys-devel/base-gcc/base-gcc-4.6.2.ebuild b/sys-devel/base-gcc/base-gcc-4.6.2.ebuild
deleted file mode 100644
index 4dade5d1..00000000
--- a/sys-devel/base-gcc/base-gcc-4.6.2.ebuild
+++ /dev/null
@@ -1,184 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-PATCH_VER="1.0"
-UCLIBC_VER="1.0"
-
-# Hardened gcc 4 stuff
-PIE_VER="0.4.5"
-SPECS_VER="0.2.0"
-SPECS_GCC_VER="4.4.3"
-# arch/libc configurations known to be stable with {PIE,SSP}-by-default
-PIE_GLIBC_STABLE="x86 amd64 ppc ppc64 arm ia64"
-PIE_UCLIBC_STABLE="x86 arm amd64 ppc ppc64"
-SSP_STABLE="amd64 x86 ppc ppc64 arm"
-# uclibc need tls and nptl support for SSP support
-SSP_UCLIBC_STABLE=""
-#end Hardened stuff
-
-inherit eutils toolchain
-
-# This is here to redeclare is_gcc() in toolchain.eclass
-# We don't even want to build gcj, which is a real hog
-# on memory constrained hardware. base-gcc doesn't actually
-# ship with it atm.
-is_gcj() {
- return 1
-}
-
-DESCRIPTION="The GNU Compiler Collection"
-
-LICENSE="GPL-3 LGPL-3 || ( GPL-3 libgcc libstdc++ gcc-runtime-library-exception-3.1 ) FDL-1.2"
-KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
-
-RDEPEND=">=sys-libs/zlib-1.1.4
- virtual/libiconv
- >=dev-libs/gmp-4.3.2
- >=dev-libs/mpfr-2.4.2
- >=dev-libs/mpc-0.8.1
- graphite? (
- >=dev-libs/cloog-ppl-0.15.10
- >=dev-libs/ppl-0.11
- )
- !build? (
- nls? ( sys-devel/gettext )
- )"
-
-DEPEND="${RDEPEND}
- test? (
- >=dev-util/dejagnu-1.4.4
- >=sys-devel/autogen-5.5.4
- )
- >=sys-apps/texinfo-4.8
- >=sys-devel/bison-1.875
- >=sys-devel/flex-2.5.4
- >=${CATEGORY}/binutils-2.18"
-PDEPEND=">=sys-devel/gcc-config-1.4
- go? ( >=sys-devel/gcc-config-1.5 )"
-
-## No changes
-src_unpack() {
- toolchain_src_unpack
-
- use vanilla && return 0
-
- [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch
-}
-
-## Remove lto conditional
-pkg_setup() {
- toolchain_pkg_setup
-
- ewarn
- ewarn "LTO support is still experimental and unstable."
- ewarn "Any bugs resulting from the use of LTO will not be fixed."
- ewarn
-}
-
-## Just install libgcc stuff
-src_install() {
- cd "${WORKDIR}/build"
- S="${WORKDIR}"/build \
- emake -j1 -C "${CTARGET}/libgcc" DESTDIR="${D}" install-shared || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libgcc" DESTDIR="${D}" \
- install-shared || die
- fi
-
- if use mudflap; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libmudflap" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libmudflap" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- fi
- fi
-
- if use openmp; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libgomp" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libgomp" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- fi
- fi
-
- S="${WORKDIR}"/build \
- emake -j1 -C "${CTARGET}/libstdc++-v3/src" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libstdc++-v3/src" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- fi
-
-
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libstdc++-v3/po" DESTDIR="${D}" install || die
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libgomp" DESTDIR="${D}" install-info || die
-
- S="${WORKDIR}"/build emake -j1 DESTDIR="${D}" install-target-libquadmath || die
- if use fortran; then
- S="${WORKDIR}"/build emake -j1 DESTDIR="${D}" install-target-libgfortran || die
- fi
- # TODO: what to do with USE objc++ and objc-gc ?
- if use objc; then
- S="${WORKDIR}"/build emake -j1 DESTDIR="${D}" install-target-libobjc || die
- fi
-
- # from toolchain.eclass yay
- gcc_movelibs
-
- dodir /etc/env.d/gcc
- create_gcc_env_entry
-
- # Setup the gcc_env_entry for hardened gcc 4 with minispecs
- if want_minispecs ; then
- copy_minispecs_gcc_specs
- fi
-
- # drop any .la, .a
- find "${D}" -name *.a -delete
- find "${D}" -name *.la -delete
-
- # drop any include
- rm "${D}${LIBPATH}"/include -rf
- # drop specs as well, provided by sys-devel/gcc-${PV}:${SLOT}
- # unfortunately, the spec shit above does create the env.d/
- # file content...
- rm "${D}${LIBPATH}"/{32/,}*.spec{s,} -rf
- rm "${D}${LIBPATH}"/specs -rf
-
- # Now do the fun stripping stuff
- env RESTRICT="" CHOST=${CTARGET} prepstrip "${D}${LIBPATH}"
-
- cd "${S}"
- if ! is_crosscompile; then
- has noinfo ${FEATURES} \
- && rm -r "${D}/${DATAPATH}"/info \
- || prepinfo "${DATAPATH}"
- fi
-
- # use gid of 0 because some stupid ports don't have
- # the group 'root' set to gid 0
- chown -R root:0 "${D}"${LIBPATH}
-}
-
-## Do nothing!
-pkg_preinst() {
- :
-}
-
-## Do nothing!
-pkg_postinst() {
- :
-}
-
-## Do nothing!
-pkg_prerm() {
- :
-}
-
-## Do nothing!
-pkg_postrm() {
- :
-}
diff --git a/sys-devel/base-gcc/base-gcc-4.6.3.ebuild b/sys-devel/base-gcc/base-gcc-4.6.3.ebuild
deleted file mode 100644
index 51b07d01..00000000
--- a/sys-devel/base-gcc/base-gcc-4.6.3.ebuild
+++ /dev/null
@@ -1,210 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-PATCH_VER="1.3"
-UCLIBC_VER="1.0"
-
-# Hardened gcc 4 stuff
-PIE_VER="0.5.2"
-SPECS_VER="0.2.0"
-SPECS_GCC_VER="4.4.3"
-# arch/libc configurations known to be stable with {PIE,SSP}-by-default
-PIE_GLIBC_STABLE="x86 amd64 mips ppc ppc64 arm ia64"
-PIE_UCLIBC_STABLE="x86 arm amd64 ppc ppc64"
-SSP_STABLE="amd64 x86 mips ppc ppc64 arm"
-# uclibc need tls and nptl support for SSP support
-# uclibc need to be >= 0.9.32
-SSP_UCLIBC_STABLE="x86 amd64 ppc ppc64 arm"
-#end Hardened stuff
-
-inherit eutils toolchain
-
-# This is here to redeclare is_gcc() in toolchain.eclass
-# We don't even want to build gcj, which is a real hog
-# on memory constrained hardware. base-gcc doesn't actually
-# ship with it atm.
-is_gcj() {
- return 1
-}
-
-DESCRIPTION="The GNU Compiler Collection"
-
-LICENSE="GPL-3 LGPL-3 || ( GPL-3 libgcc libstdc++ gcc-runtime-library-exception-3.1 ) FDL-1.2"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
-
-RDEPEND=">=sys-libs/zlib-1.1.4
- virtual/libiconv
- >=dev-libs/gmp-4.3.2
- >=dev-libs/mpfr-2.4.2
- >=dev-libs/mpc-0.8.1
- graphite? (
- >=dev-libs/cloog-ppl-0.15.10
- >=dev-libs/ppl-0.11
- )
- !build? (
- nls? ( sys-devel/gettext )
- )"
-
-DEPEND="${RDEPEND}
- test? (
- >=dev-util/dejagnu-1.4.4
- >=sys-devel/autogen-5.5.4
- )
- >=sys-apps/texinfo-4.8
- >=sys-devel/bison-1.875
- >=sys-devel/flex-2.5.4
- >=${CATEGORY}/binutils-2.18"
-PDEPEND=">=sys-devel/gcc-config-1.4
- go? ( >=sys-devel/gcc-config-1.5 )"
-
-## Check for valid gcc profile.
-src_unpack() {
- # Since Sabayon's gcc ebuild are split into two parts, we have to
- # build gcc with a different version of gcc, or terrible breakage
- # will occur after sys-devel/base-gcc is installed, but the
- # partner sys-devel/gcc still needs to be built.
-
- # While it is possible to rebuild Sabayon's split gcc from
- # the same version, we have to disallow this also since
- # we have no way of discerning if a configuration change
- # is significant enough to cause breakage.
-
- GCC_PROFILE_VER=$(cat ${ROOT}/etc/env.d/gcc/config-$CHOST | awk -F- '{ print $NF }')
- einfo "Checking for valid gcc profile to build ${P}"
-
- # Construct the Slot of the gcc version in the active profile.
- GCC_PROFILE_SLOT_MAJOR=$(echo ${GCC_PROFILE_VER} | awk -F. '{ print $1 }')
- GCC_PROFILE_SLOT_MINOR=$(echo ${GCC_PROFILE_VER} | awk -F. '{ print $2 }')
- GCC_PROFILE_SLOT="${GCC_PROFILE_SLOT_MAJOR}.${GCC_PROFILE_SLOT_MINOR}"
- einfo "Current gcc profile version Slot is: ${GCC_PROFILE_SLOT}"
- if [[ "${GCC_PROFILE_SLOT}" = "${SLOT}" ]] ; then
- eerror "Error!"
- eerror "The active gcc-profile is for sys-devel/gcc slot ${SLOT}."
- eerror "Sabayon's split sys-devel/gcc package MUST be built"
- eerror "with another slotted version of sys-devel/gcc active."
- die "Invalid gcc profile selected!"
- fi
-
- toolchain_src_unpack
-
- use vanilla && return 0
-
- [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch
-}
-
-## Remove lto conditional
-pkg_setup() {
- toolchain_pkg_setup
-
- ewarn
- ewarn "LTO support is still experimental and unstable."
- ewarn "Any bugs resulting from the use of LTO will not be fixed."
- ewarn
-}
-
-## Just install libgcc stuff
-src_install() {
- cd "${WORKDIR}/build"
- S="${WORKDIR}"/build \
- emake -j1 -C "${CTARGET}/libgcc" DESTDIR="${D}" install-shared || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libgcc" DESTDIR="${D}" \
- install-shared || die
- fi
-
- if use mudflap; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libmudflap" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libmudflap" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- fi
- fi
-
- if use openmp; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libgomp" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libgomp" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- fi
- fi
-
- S="${WORKDIR}"/build \
- emake -j1 -C "${CTARGET}/libstdc++-v3/src" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libstdc++-v3/src" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- fi
-
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libstdc++-v3/po" DESTDIR="${D}" install || die
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libgomp" DESTDIR="${D}" install-info || die
-
- S="${WORKDIR}"/build emake -j1 DESTDIR="${D}" install-target-libquadmath || die
- if use fortran; then
- S="${WORKDIR}"/build emake -j1 DESTDIR="${D}" install-target-libgfortran || die
- fi
- # TODO: what to do with USE objc++ and objc-gc ?
- if use objc; then
- S="${WORKDIR}"/build emake -j1 DESTDIR="${D}" install-target-libobjc || die
- fi
-
- # from toolchain.eclass yay
- gcc_movelibs
-
- dodir /etc/env.d/gcc
- create_gcc_env_entry
-
- # Setup the gcc_env_entry for hardened gcc 4 with minispecs
- if want_minispecs ; then
- copy_minispecs_gcc_specs
- fi
-
- # drop any .la, .a
- find "${D}" -name *.a -delete
- find "${D}" -name *.la -delete
-
- # drop any include
- rm "${D}${LIBPATH}"/include -rf
- # drop specs as well, provided by sys-devel/gcc-${PV}:${SLOT}
- # unfortunately, the spec shit above does create the env.d/
- # file content...
- rm "${D}${LIBPATH}"/{32/,}*.spec{s,} -rf
- rm "${D}${LIBPATH}"/specs -rf
-
- # Now do the fun stripping stuff
- env RESTRICT="" CHOST=${CTARGET} prepstrip "${D}${LIBPATH}"
-
- cd "${S}"
- if ! is_crosscompile; then
- has noinfo ${FEATURES} \
- && rm -r "${D}/${DATAPATH}"/info \
- || prepinfo "${DATAPATH}"
- fi
-
- # use gid of 0 because some stupid ports don't have
- # the group 'root' set to gid 0
- chown -R root:0 "${D}"${LIBPATH}
-}
-
-## Do nothing!
-pkg_preinst() {
- :
-}
-
-## Do nothing!
-pkg_postinst() {
- :
-}
-
-## Do nothing!
-pkg_prerm() {
- :
-}
-
-## Do nothing!
-pkg_postrm() {
- :
-}
diff --git a/sys-devel/base-gcc/base-gcc-4.6.4.ebuild b/sys-devel/base-gcc/base-gcc-4.6.4.ebuild
deleted file mode 100644
index b9cd301c..00000000
--- a/sys-devel/base-gcc/base-gcc-4.6.4.ebuild
+++ /dev/null
@@ -1,225 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-PATCH_VER="1.0"
-UCLIBC_VER="1.0"
-
-# Hardened gcc 4 stuff
-PIE_VER="0.5.2"
-SPECS_VER="0.2.0"
-SPECS_GCC_VER="4.4.3"
-# arch/libc configurations known to be stable with {PIE,SSP}-by-default
-PIE_GLIBC_STABLE="x86 amd64 mips ppc ppc64 arm ia64"
-PIE_UCLIBC_STABLE="x86 arm amd64 ppc ppc64"
-SSP_STABLE="amd64 x86 mips ppc ppc64 arm"
-# uclibc need tls and nptl support for SSP support
-# uclibc need to be >= 0.9.32
-SSP_UCLIBC_STABLE="x86 amd64 ppc ppc64 arm"
-#end Hardened stuff
-
-inherit eutils toolchain
-
-# This is here to redeclare is_gcc() in toolchain.eclass
-# We don't even want to build gcj, which is a real hog
-# on memory constrained hardware. base-gcc doesn't actually
-# ship with it atm.
-is_gcj() {
- return 1
-}
-
-DESCRIPTION="The GNU Compiler Collection"
-
-LICENSE="GPL-3 LGPL-3 || ( GPL-3 libgcc libstdc++ gcc-runtime-library-exception-3.1 ) FDL-1.2"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
-
-RDEPEND=">=sys-libs/zlib-1.1.4
- virtual/libiconv
- >=dev-libs/gmp-4.3.2
- >=dev-libs/mpfr-2.4.2
- >=dev-libs/mpc-0.8.1
- graphite? (
- >=dev-libs/cloog-ppl-0.15.10
- >=dev-libs/ppl-0.11
- )
- !build? (
- nls? ( sys-devel/gettext )
- )"
-
-DEPEND="${RDEPEND}
- test? (
- >=dev-util/dejagnu-1.4.4
- >=sys-devel/autogen-5.5.4
- )
- >=sys-apps/texinfo-4.8
- >=sys-devel/bison-1.875
- >=sys-devel/flex-2.5.4
- >=${CATEGORY}/binutils-2.18"
-
-## Check for valid gcc profile.
-src_unpack() {
- # Since Sabayon's gcc ebuild are split into two parts, we have to
- # build gcc with a different version of gcc, or terrible breakage
- # will occur after sys-devel/base-gcc is installed, but the
- # partner sys-devel/gcc still needs to be built.
-
- # While it is possible to rebuild Sabayon's split gcc from
- # the same version, we have to disallow this also since
- # we have no way of discerning if a configuration change
- # is significant enough to cause breakage.
-
- GCC_PROFILE_VER=$(cat ${ROOT}/etc/env.d/gcc/config-$CHOST | awk -F- '{ print $NF }')
- einfo "Checking for valid gcc profile to build ${P}"
-
- # Construct the Slot of the gcc version in the active profile.
- GCC_PROFILE_SLOT_MAJOR=$(echo ${GCC_PROFILE_VER} | awk -F. '{ print $1 }')
- GCC_PROFILE_SLOT_MINOR=$(echo ${GCC_PROFILE_VER} | awk -F. '{ print $2 }')
- GCC_PROFILE_SLOT="${GCC_PROFILE_SLOT_MAJOR}.${GCC_PROFILE_SLOT_MINOR}"
- einfo "Current gcc profile version Slot is: ${GCC_PROFILE_SLOT}"
- if [[ "${GCC_PROFILE_SLOT}" = "${SLOT}" ]] ; then
- eerror "Error!"
- eerror "The active gcc-profile is for sys-devel/gcc slot ${SLOT}."
- eerror "Sabayon's split sys-devel/gcc package MUST be built"
- eerror "with another slotted version of sys-devel/gcc active."
- ebeep 10
- fi
-
- toolchain_src_unpack
-
- use vanilla && return 0
-
- [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch
-}
-
-pkg_setup() {
- toolchain_pkg_setup
-
- ewarn
- ewarn "LTO support is still experimental and unstable."
- ewarn "Any bugs resulting from the use of LTO will not be fixed."
- ewarn
-}
-
-## Just install libgcc stuff
-src_install() {
- cd "${WORKDIR}/build"
- S="${WORKDIR}"/build \
- emake -j1 -C "${CTARGET}/libgcc" DESTDIR="${D}" install-shared || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libgcc" DESTDIR="${D}" \
- install-shared || die
- fi
-
- if use mudflap; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libmudflap" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libmudflap" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- fi
- fi
-
- if use openmp; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libgomp" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libgomp" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- fi
- fi
-
- S="${WORKDIR}"/build \
- emake -j1 -C "${CTARGET}/libstdc++-v3/src" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libstdc++-v3/src" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- fi
-
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libstdc++-v3/po" DESTDIR="${D}" install || die
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libgomp" DESTDIR="${D}" install-info || die
-
- S="${WORKDIR}"/build emake -j1 DESTDIR="${D}" install-target-libquadmath || die
- if use fortran; then
- S="${WORKDIR}"/build emake -j1 DESTDIR="${D}" install-target-libgfortran || die
- fi
- # TODO: what to do with USE objc++ and objc-gc ?
- if use objc; then
- S="${WORKDIR}"/build emake -j1 DESTDIR="${D}" install-target-libobjc || die
- fi
-
- # from toolchain.eclass yay
- gcc_movelibs
-
- dodir /etc/env.d/gcc
- create_gcc_env_entry
-
- # Setup the gcc_env_entry for hardened gcc 4 with minispecs
- if want_minispecs ; then
- copy_minispecs_gcc_specs
- fi
-
- # drop any .la, .a
- find "${D}" -name *.a -delete
- find "${D}" -name *.la -delete
-
- # drop any include
- rm "${D}${LIBPATH}"/include -rf
- # drop specs as well, provided by sys-devel/gcc-${PV}:${SLOT}
- # unfortunately, the spec shit above does create the env.d/
- # file content...
- rm "${D}${LIBPATH}"/{32/,}*.spec{s,} -rf
- rm "${D}${LIBPATH}"/specs -rf
-
- # Now do the fun stripping stuff
- env RESTRICT="" CHOST=${CTARGET} prepstrip "${D}${LIBPATH}"
-
- cd "${S}"
- if ! is_crosscompile; then
- has noinfo ${FEATURES} \
- && rm -r "${D}/${DATAPATH}"/info \
- || prepinfo "${DATAPATH}"
- fi
-
- # use gid of 0 because some stupid ports don't have
- # the group 'root' set to gid 0
- chown -R root:0 "${D}"${LIBPATH}
-}
-
-## Do nothing!
-pkg_preinst() {
- :
-}
-
-pkg_postinst() {
- # Sabayon specific bits to always force the latest gcc profile
- local gcc_atom=$(best_version sys-devel/base-gcc)
- local gcc_ver=
- if [ -n "${gcc_atom}" ]; then
- elog "Found latest base-gcc to be: ${gcc_atom}, forcing this profile"
- gcc_ver=$(portageq metadata "${ROOT}" installed "${gcc_atom}" PV)
- else
- eerror "No sys-devel/base-gcc installed"
- fi
-
- if [ -n "${gcc_ver}" ]; then
- local target="${CTARGET:${CHOST}}-${gcc_ver}"
- local env_target="${ROOT}/etc/env.d/gcc/${target}"
- [[ -e "${env_target}-vanilla" ]] && find_target="${target}-vanilla"
-
- elog "Setting: ${target} GCC profile"
- gcc-config "${target}"
- else
- eerror "No sys-devel/base-gcc version installed? Cannot set a proper GCC profile"
- fi
-}
-
-## Do nothing!
-pkg_prerm() {
- :
-}
-
-## Do nothing!
-pkg_postrm() {
- :
-}
diff --git a/sys-devel/base-gcc/base-gcc-4.7.3-r1.ebuild b/sys-devel/base-gcc/base-gcc-4.7.3-r1.ebuild
deleted file mode 100644
index 9f47e9d4..00000000
--- a/sys-devel/base-gcc/base-gcc-4.7.3-r1.ebuild
+++ /dev/null
@@ -1,209 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-PATCH_VER="1.4"
-UCLIBC_VER="1.0"
-
-# Hardened gcc 4 stuff
-PIE_VER="0.5.5"
-SPECS_VER="0.2.0"
-SPECS_GCC_VER="4.4.3"
-# arch/libc configurations known to be stable with {PIE,SSP}-by-default
-PIE_GLIBC_STABLE="x86 amd64 ppc ppc64 arm ia64"
-PIE_UCLIBC_STABLE="x86 arm amd64 ppc ppc64"
-SSP_STABLE="amd64 x86 ppc ppc64 arm"
-# uclibc need tls and nptl support for SSP support
-# uclibc need to be >= 0.9.33
-SSP_UCLIBC_STABLE="x86 amd64 ppc ppc64 arm"
-#end Hardened stuff
-
-inherit eutils toolchain
-
-# This is here to redeclare is_gcc() in toolchain.eclass
-# We don't even want to build gcj, which is a real hog
-# on memory constrained hardware. base-gcc doesn't actually
-# ship with it atm.
-is_gcj() {
- return 1
-}
-
-DESCRIPTION="The GNU Compiler Collection"
-
-LICENSE="GPL-3+ LGPL-3+ || ( GPL-3+ libgcc libstdc++ gcc-runtime-library-exception-3.1 ) FDL-1.3+"
-KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 -amd64-fbsd -x86-fbsd"
-
-RDEPEND=""
-DEPEND="${RDEPEND}
- elibc_glibc? ( >=sys-libs/glibc-2.8 )
- >=${CATEGORY}/binutils-2.18"
-
-src_unpack() {
- # Since Sabayon's gcc ebuild are split into two parts, we have to
- # build gcc with a different version of gcc, or terrible breakage
- # will occur after sys-devel/base-gcc is installed, but the
- # partner sys-devel/gcc still needs to be built.
-
- # While it is possible to rebuild Sabayon's split gcc from
- # the same version, we have to disallow this also since
- # we have no way of discerning if a configuration change
- # is significant enough to cause breakage.
-
- GCC_PROFILE_VER=$(cat ${ROOT}/etc/env.d/gcc/config-$CHOST | awk -F- '{ print $NF }')
- einfo "Checking for valid gcc profile to build ${P}"
-
- # Construct the Slot of the gcc version in the active profile.
- GCC_PROFILE_SLOT_MAJOR=$(echo ${GCC_PROFILE_VER} | awk -F. '{ print $1 }')
- GCC_PROFILE_SLOT_MINOR=$(echo ${GCC_PROFILE_VER} | awk -F. '{ print $2 }')
- GCC_PROFILE_SLOT="${GCC_PROFILE_SLOT_MAJOR}.${GCC_PROFILE_SLOT_MINOR}"
- einfo "Current gcc profile version Slot is: ${GCC_PROFILE_SLOT}"
- if [[ "${GCC_PROFILE_SLOT}" = "${SLOT}" ]] ; then
- eerror "Error!"
- eerror "The active gcc-profile is for sys-devel/gcc slot ${SLOT}."
- eerror "Sabayon's split sys-devel/gcc package MUST be built"
- eerror "with another slotted version of sys-devel/gcc active."
- ebeep 10
- fi
-
- if has_version '<sys-libs/glibc-2.12' ; then
- ewarn "Your host glibc is too old; disabling automatic fortify."
- ewarn "Please rebuild gcc after upgrading to >=glibc-2.12 #362315"
- EPATCH_EXCLUDE+=" 10_all_default-fortify-source.patch"
- fi
-
- # drop the x32 stuff once 4.7 goes stable
- if [[ ${CTARGET} != x86_64* ]] || ! has x32 $(get_all_abis TARGET) ; then
- EPATCH_EXCLUDE+=" 90_all_gcc-4.7-x32.patch"
- fi
-
- toolchain_src_unpack
-
- use vanilla && return 0
-
- [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch
-}
-
-## Just install libgcc stuff
-src_install() {
- cd "${WORKDIR}/build"
- S="${WORKDIR}"/build \
- emake -j1 -C "${CTARGET}/libgcc" DESTDIR="${D}" install-shared || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libgcc" DESTDIR="${D}" \
- install-shared || die
- fi
-
- if use mudflap; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libmudflap" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libmudflap" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- fi
- fi
-
- if use openmp; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libgomp" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libgomp" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- fi
- fi
-
- S="${WORKDIR}"/build \
- emake -j1 -C "${CTARGET}/libstdc++-v3/src" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libstdc++-v3/src" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- fi
-
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libstdc++-v3/po" DESTDIR="${D}" install || die
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libgomp" DESTDIR="${D}" install-info || die
-
- S="${WORKDIR}"/build emake -j1 DESTDIR="${D}" install-target-libquadmath || die
- if use fortran; then
- S="${WORKDIR}"/build emake -j1 DESTDIR="${D}" install-target-libgfortran || die
- fi
- # TODO: what to do with USE objc++ and objc-gc ?
- if use objc; then
- S="${WORKDIR}"/build emake -j1 DESTDIR="${D}" install-target-libobjc || die
- fi
-
- # from toolchain.eclass yay
- gcc_movelibs
-
- dodir /etc/env.d/gcc
- create_gcc_env_entry
-
- # Setup the gcc_env_entry for hardened gcc 4 with minispecs
- if want_minispecs ; then
- copy_minispecs_gcc_specs
- fi
-
- # drop any .la, .a
- find "${D}" -name *.a -delete
- find "${D}" -name *.la -delete
-
- # drop any include
- rm "${D}${LIBPATH}"/include -rf
- # drop specs as well, provided by sys-devel/gcc-${PV}:${SLOT}
- # unfortunately, the spec shit above does create the env.d/
- # file content...
- rm "${D}${LIBPATH}"/{32/,}*.spec{s,} -rf
- rm "${D}${LIBPATH}"/specs -rf
-
- # Now do the fun stripping stuff
- env RESTRICT="" CHOST=${CTARGET} prepstrip "${D}${LIBPATH}"
-
- cd "${S}"
- if ! is_crosscompile; then
- has noinfo ${FEATURES} \
- && rm -r "${D}/${DATAPATH}"/info \
- || prepinfo "${DATAPATH}"
- fi
-
- # use gid of 0 because some stupid ports don't have
- # the group 'root' set to gid 0
- chown -R root:0 "${D}"${LIBPATH}
-}
-
-## Do nothing!
-pkg_preinst() {
- :
-}
-
-## Do (almost) nothing!
-pkg_postinst() {
- # Sabayon specific bits to always force the latest gcc profile
- local gcc_atom=$(best_version sys-devel/base-gcc)
- local gcc_ver=
- if [ -n "${gcc_atom}" ]; then
- elog "Found latest base-gcc to be: ${gcc_atom}, forcing this profile"
- gcc_ver=$(portageq metadata "${ROOT}" installed "${gcc_atom}" PV)
- else
- eerror "No sys-devel/base-gcc installed"
- fi
-
- if [ -n "${gcc_ver}" ]; then
- local target="${CTARGET:${CHOST}}-${gcc_ver}"
- local env_target="${ROOT}/etc/env.d/gcc/${target}"
- [[ -e "${env_target}-vanilla" ]] && find_target="${target}-vanilla"
-
- elog "Setting: ${target} GCC profile"
- gcc-config "${target}"
- else
- eerror "No sys-devel/base-gcc version installed? Cannot set a proper GCC profile"
- fi
-}
-
-## Do nothing!
-pkg_prerm() {
- :
-}
-
-## Do nothing!
-pkg_postrm() {
- :
-}
diff --git a/sys-devel/base-gcc/base-gcc-4.7.3.ebuild b/sys-devel/base-gcc/base-gcc-4.7.3.ebuild
deleted file mode 100644
index 72aff96f..00000000
--- a/sys-devel/base-gcc/base-gcc-4.7.3.ebuild
+++ /dev/null
@@ -1,231 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-PATCH_VER="1.0"
-UCLIBC_VER="1.0"
-
-# Hardened gcc 4 stuff
-PIE_VER="0.5.5"
-SPECS_VER="0.2.0"
-SPECS_GCC_VER="4.4.3"
-# arch/libc configurations known to be stable with {PIE,SSP}-by-default
-PIE_GLIBC_STABLE="x86 amd64 ppc ppc64 arm ia64"
-PIE_UCLIBC_STABLE="x86 arm amd64 ppc ppc64"
-SSP_STABLE="amd64 x86 ppc ppc64 arm"
-# uclibc need tls and nptl support for SSP support
-# uclibc need to be >= 0.9.33
-SSP_UCLIBC_STABLE="x86 amd64 ppc ppc64 arm"
-#end Hardened stuff
-
-inherit eutils toolchain
-
-# This is here to redeclare is_gcc() in toolchain.eclass
-# We don't even want to build gcj, which is a real hog
-# on memory constrained hardware. base-gcc doesn't actually
-# ship with it atm.
-is_gcj() {
- return 1
-}
-
-DESCRIPTION="The GNU Compiler Collection"
-
-LICENSE="GPL-3 LGPL-3 || ( GPL-3 libgcc libstdc++ gcc-runtime-library-exception-3.1 ) FDL-1.2"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
-
-RDEPEND=">=sys-libs/zlib-1.1.4
- virtual/libiconv
- >=dev-libs/gmp-4.3.2
- >=dev-libs/mpfr-2.4.2
- >=dev-libs/mpc-0.8.1
- graphite? (
- >=dev-libs/cloog-ppl-0.15.10
- >=dev-libs/ppl-0.11
- )
- !build? (
- nls? ( sys-devel/gettext )
- )"
-
-DEPEND="${RDEPEND}
- test? (
- >=dev-util/dejagnu-1.4.4
- >=sys-devel/autogen-5.5.4
- )
- >=sys-apps/texinfo-4.8
- >=sys-devel/bison-1.875
- >=sys-devel/flex-2.5.4
- >=${CATEGORY}/binutils-2.18"
-
-## Check for valid gcc profile.
-src_unpack() {
- # Since Sabayon's gcc ebuild are split into two parts, we have to
- # build gcc with a different version of gcc, or terrible breakage
- # will occur after sys-devel/base-gcc is installed, but the
- # partner sys-devel/gcc still needs to be built.
-
- # While it is possible to rebuild Sabayon's split gcc from
- # the same version, we have to disallow this also since
- # we have no way of discerning if a configuration change
- # is significant enough to cause breakage.
-
- GCC_PROFILE_VER=$(cat ${ROOT}/etc/env.d/gcc/config-$CHOST | awk -F- '{ print $NF }')
- einfo "Checking for valid gcc profile to build ${P}"
-
- # Construct the Slot of the gcc version in the active profile.
- GCC_PROFILE_SLOT_MAJOR=$(echo ${GCC_PROFILE_VER} | awk -F. '{ print $1 }')
- GCC_PROFILE_SLOT_MINOR=$(echo ${GCC_PROFILE_VER} | awk -F. '{ print $2 }')
- GCC_PROFILE_SLOT="${GCC_PROFILE_SLOT_MAJOR}.${GCC_PROFILE_SLOT_MINOR}"
- einfo "Current gcc profile version Slot is: ${GCC_PROFILE_SLOT}"
- if [[ "${GCC_PROFILE_SLOT}" = "${SLOT}" ]] ; then
- eerror "Error!"
- eerror "The active gcc-profile is for sys-devel/gcc slot ${SLOT}."
- eerror "Sabayon's split sys-devel/gcc package MUST be built"
- eerror "with another slotted version of sys-devel/gcc active."
- ebeep 10
- fi
-
- # drop the x32 stuff once 4.7 goes stable
- if [[ ${CTARGET} != x86_64* ]] || ! has x32 $(get_all_abis TARGET) ; then
- EPATCH_EXCLUDE+=" 90_all_gcc-4.7-x32.patch"
- fi
-
- toolchain_src_unpack
-
- use vanilla && return 0
-
- [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch
-}
-
-pkg_setup() {
- toolchain_pkg_setup
-
- ewarn
- ewarn "LTO support is still experimental and unstable."
- ewarn "Any bugs resulting from the use of LTO will not be fixed."
- ewarn
-}
-
-## Just install libgcc stuff
-src_install() {
- cd "${WORKDIR}/build"
- S="${WORKDIR}"/build \
- emake -j1 -C "${CTARGET}/libgcc" DESTDIR="${D}" install-shared || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libgcc" DESTDIR="${D}" \
- install-shared || die
- fi
-
- if use mudflap; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libmudflap" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libmudflap" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- fi
- fi
-
- if use openmp; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libgomp" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libgomp" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- fi
- fi
-
- S="${WORKDIR}"/build \
- emake -j1 -C "${CTARGET}/libstdc++-v3/src" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libstdc++-v3/src" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- fi
-
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libstdc++-v3/po" DESTDIR="${D}" install || die
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libgomp" DESTDIR="${D}" install-info || die
-
- S="${WORKDIR}"/build emake -j1 DESTDIR="${D}" install-target-libquadmath || die
- if use fortran; then
- S="${WORKDIR}"/build emake -j1 DESTDIR="${D}" install-target-libgfortran || die
- fi
- # TODO: what to do with USE objc++ and objc-gc ?
- if use objc; then
- S="${WORKDIR}"/build emake -j1 DESTDIR="${D}" install-target-libobjc || die
- fi
-
- # from toolchain.eclass yay
- gcc_movelibs
-
- dodir /etc/env.d/gcc
- create_gcc_env_entry
-
- # Setup the gcc_env_entry for hardened gcc 4 with minispecs
- if want_minispecs ; then
- copy_minispecs_gcc_specs
- fi
-
- # drop any .la, .a
- find "${D}" -name *.a -delete
- find "${D}" -name *.la -delete
-
- # drop any include
- rm "${D}${LIBPATH}"/include -rf
- # drop specs as well, provided by sys-devel/gcc-${PV}:${SLOT}
- # unfortunately, the spec shit above does create the env.d/
- # file content...
- rm "${D}${LIBPATH}"/{32/,}*.spec{s,} -rf
- rm "${D}${LIBPATH}"/specs -rf
-
- # Now do the fun stripping stuff
- env RESTRICT="" CHOST=${CTARGET} prepstrip "${D}${LIBPATH}"
-
- cd "${S}"
- if ! is_crosscompile; then
- has noinfo ${FEATURES} \
- && rm -r "${D}/${DATAPATH}"/info \
- || prepinfo "${DATAPATH}"
- fi
-
- # use gid of 0 because some stupid ports don't have
- # the group 'root' set to gid 0
- chown -R root:0 "${D}"${LIBPATH}
-}
-
-## Do nothing!
-pkg_preinst() {
- :
-}
-
-## Do nothing!
-pkg_postinst() {
- # Sabayon specific bits to always force the latest gcc profile
- local gcc_atom=$(best_version sys-devel/base-gcc)
- local gcc_ver=
- if [ -n "${gcc_atom}" ]; then
- elog "Found latest base-gcc to be: ${gcc_atom}, forcing this profile"
- gcc_ver=$(portageq metadata "${ROOT}" installed "${gcc_atom}" PV)
- else
- eerror "No sys-devel/base-gcc installed"
- fi
-
- if [ -n "${gcc_ver}" ]; then
- local target="${CTARGET:${CHOST}}-${gcc_ver}"
- local env_target="${ROOT}/etc/env.d/gcc/${target}"
- [[ -e "${env_target}-vanilla" ]] && find_target="${target}-vanilla"
-
- elog "Setting: ${target} GCC profile"
- gcc-config "${target}"
- else
- eerror "No sys-devel/base-gcc version installed? Cannot set a proper GCC profile"
- fi
-}
-
-## Do nothing!
-pkg_prerm() {
- :
-}
-
-## Do nothing!
-pkg_postrm() {
- :
-}
diff --git a/sys-devel/base-gcc/base-gcc-4.7.4.ebuild b/sys-devel/base-gcc/base-gcc-4.7.4.ebuild
deleted file mode 100644
index cf2f3ead..00000000
--- a/sys-devel/base-gcc/base-gcc-4.7.4.ebuild
+++ /dev/null
@@ -1,211 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="4"
-
-PATCH_VER="1.2"
-UCLIBC_VER="1.0"
-
-# Hardened gcc 4 stuff
-PIE_VER="0.5.5"
-SPECS_VER="0.2.0"
-SPECS_GCC_VER="4.4.3"
-# arch/libc configurations known to be stable with {PIE,SSP}-by-default
-PIE_GLIBC_STABLE="x86 amd64 ppc ppc64 arm ia64"
-PIE_UCLIBC_STABLE="x86 arm amd64 ppc ppc64"
-SSP_STABLE="amd64 x86 ppc ppc64 arm"
-# uclibc need tls and nptl support for SSP support
-# uclibc need to be >= 0.9.33
-SSP_UCLIBC_STABLE="x86 amd64 ppc ppc64 arm"
-#end Hardened stuff
-
-inherit eutils toolchain
-
-# This is here to redeclare is_gcc() in toolchain.eclass
-# We don't even want to build gcj, which is a real hog
-# on memory constrained hardware. base-gcc doesn't actually
-# ship with it atm.
-is_gcj() {
- return 1
-}
-
-DESCRIPTION="The GNU Compiler Collection"
-
-LICENSE="GPL-3+ LGPL-3+ || ( GPL-3+ libgcc libstdc++ gcc-runtime-library-exception-3.1 ) FDL-1.3+"
-KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 -amd64-fbsd -x86-fbsd"
-
-RDEPEND=""
-DEPEND="${RDEPEND}
- elibc_glibc? ( >=sys-libs/glibc-2.8 )
- >=${CATEGORY}/binutils-2.18"
-
-src_prepare() {
- # Since Sabayon's gcc ebuild are split into two parts, we have to
- # build gcc with a different version of gcc, or terrible breakage
- # will occur after sys-devel/base-gcc is installed, but the
- # partner sys-devel/gcc still needs to be built.
-
- # While it is possible to rebuild Sabayon's split gcc from
- # the same version, we have to disallow this also since
- # we have no way of discerning if a configuration change
- # is significant enough to cause breakage.
-
- GCC_PROFILE_VER=$(cat ${ROOT}/etc/env.d/gcc/config-$CHOST | awk -F- '{ print $NF }')
- einfo "Checking for valid gcc profile to build ${P}"
-
- # Construct the Slot of the gcc version in the active profile.
- GCC_PROFILE_SLOT_MAJOR=$(echo ${GCC_PROFILE_VER} | awk -F. '{ print $1 }')
- GCC_PROFILE_SLOT_MINOR=$(echo ${GCC_PROFILE_VER} | awk -F. '{ print $2 }')
- GCC_PROFILE_SLOT="${GCC_PROFILE_SLOT_MAJOR}.${GCC_PROFILE_SLOT_MINOR}"
- einfo "Current gcc profile version Slot is: ${GCC_PROFILE_SLOT}"
- if [[ "${GCC_PROFILE_SLOT}" = "${SLOT}" ]] ; then
- eerror "Error!"
- eerror "The active gcc-profile is for sys-devel/gcc slot ${SLOT}."
- eerror "Sabayon's split sys-devel/gcc package MUST be built"
- eerror "with another slotted version of sys-devel/gcc active."
- ebeep 10
- fi
-
- if has_version '<sys-libs/glibc-2.12' ; then
- ewarn "Your host glibc is too old; disabling automatic fortify."
- ewarn "Please rebuild gcc after upgrading to >=glibc-2.12 #362315"
- EPATCH_EXCLUDE+=" 10_all_default-fortify-source.patch"
- fi
-
- # drop the x32 stuff once 4.7 goes stable
- if [[ ${CTARGET} != x86_64* ]] || ! has x32 $(get_all_abis TARGET) ; then
- EPATCH_EXCLUDE+=" 90_all_gcc-4.7-x32.patch"
- fi
-
- toolchain_src_prepare
-
- use vanilla && return 0
-
- [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch
-}
-
-## Just install libgcc stuff
-src_install() {
- cd "${WORKDIR}/build"
- S="${WORKDIR}"/build \
- emake -j1 -C "${CTARGET}/libgcc" DESTDIR="${D}" install-shared || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libgcc" DESTDIR="${D}" \
- install-shared || die
- fi
-
- if use mudflap; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libmudflap" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libmudflap" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- fi
- fi
-
- if use openmp; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libgomp" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libgomp" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- fi
- fi
-
- S="${WORKDIR}"/build \
- emake -j1 -C "${CTARGET}/libstdc++-v3/src" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libstdc++-v3/src" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- fi
-
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libstdc++-v3/po" DESTDIR="${D}" install || die
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libgomp" DESTDIR="${D}" install-info || die
-
- S="${WORKDIR}"/build emake -j1 DESTDIR="${D}" install-target-libquadmath || die
- if use fortran; then
- S="${WORKDIR}"/build emake -j1 DESTDIR="${D}" install-target-libgfortran || die
- fi
- # TODO: what to do with USE objc++ and objc-gc ?
- if use objc; then
- S="${WORKDIR}"/build emake -j1 DESTDIR="${D}" install-target-libobjc || die
- fi
-
- # from toolchain.eclass yay
- gcc_movelibs
-
- dodir /etc/env.d/gcc
- create_gcc_env_entry
-
- # Setup the gcc_env_entry for hardened gcc 4 with minispecs
- if want_minispecs ; then
- copy_minispecs_gcc_specs
- fi
-
- # drop any .la, .a
- find "${D}" -name *.a -delete
- find "${D}" -name *.la -delete
-
- # drop any include
- rm "${D}${LIBPATH}"/include -rf
- # drop specs as well, provided by sys-devel/gcc-${PV}:${SLOT}
- # unfortunately, the spec shit above does create the env.d/
- # file content...
- rm "${D}${LIBPATH}"/{32/,}*.spec{s,} -rf
- rm "${D}${LIBPATH}"/specs -rf
-
- # Now do the fun stripping stuff
- env RESTRICT="" CHOST=${CTARGET} prepstrip "${D}${LIBPATH}"
-
- cd "${S}"
- if ! is_crosscompile; then
- has noinfo ${FEATURES} \
- && rm -r "${D}/${DATAPATH}"/info \
- || prepinfo "${DATAPATH}"
- fi
-
- # use gid of 0 because some stupid ports don't have
- # the group 'root' set to gid 0
- chown -R root:0 "${D}"${LIBPATH}
-}
-
-## Do nothing!
-pkg_preinst() {
- :
-}
-
-## Do (almost) nothing!
-pkg_postinst() {
- # Sabayon specific bits to always force the latest gcc profile
- local gcc_atom=$(best_version sys-devel/base-gcc)
- local gcc_ver=
- if [ -n "${gcc_atom}" ]; then
- elog "Found latest base-gcc to be: ${gcc_atom}, forcing this profile"
- gcc_ver=$(portageq metadata "${ROOT}" installed "${gcc_atom}" PV)
- else
- eerror "No sys-devel/base-gcc installed"
- fi
-
- if [ -n "${gcc_ver}" ]; then
- local target="${CTARGET:${CHOST}}-${gcc_ver}"
- local env_target="${ROOT}/etc/env.d/gcc/${target}"
- [[ -e "${env_target}-vanilla" ]] && find_target="${target}-vanilla"
-
- elog "Setting: ${target} GCC profile"
- gcc-config "${target}"
- else
- eerror "No sys-devel/base-gcc version installed? Cannot set a proper GCC profile"
- fi
-}
-
-## Do nothing!
-pkg_prerm() {
- :
-}
-
-## Do nothing!
-pkg_postrm() {
- :
-}
diff --git a/sys-devel/base-gcc/base-gcc-4.8.3.ebuild b/sys-devel/base-gcc/base-gcc-4.8.3.ebuild
deleted file mode 100644
index 2a4b1f80..00000000
--- a/sys-devel/base-gcc/base-gcc-4.8.3.ebuild
+++ /dev/null
@@ -1,211 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="4"
-
-PATCH_VER="1.1"
-UCLIBC_VER="1.0"
-
-# Hardened gcc 4 stuff
-PIE_VER="0.5.9"
-SPECS_VER="0.2.0"
-SPECS_GCC_VER="4.4.3"
-# arch/libc configurations known to be stable with {PIE,SSP}-by-default
-PIE_GLIBC_STABLE="x86 amd64 ppc ppc64 arm ia64"
-PIE_UCLIBC_STABLE="x86 arm amd64 ppc ppc64"
-SSP_STABLE="amd64 x86 ppc ppc64 arm"
-# uclibc need tls and nptl support for SSP support
-# uclibc need to be >= 0.9.33
-SSP_UCLIBC_STABLE="x86 amd64 ppc ppc64 arm"
-#end Hardened stuff
-
-inherit eutils toolchain
-
-# This is here to redeclare is_gcc() in toolchain.eclass
-# We don't even want to build gcj, which is a real hog
-# on memory constrained hardware. base-gcc doesn't actually
-# ship with it atm.
-is_gcj() {
- return 1
-}
-
-DESCRIPTION="The GNU Compiler Collection"
-
-KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
-
-RDEPEND=""
-DEPEND="${RDEPEND}
- elibc_glibc? ( >=sys-libs/glibc-2.8 )
- >=${CATEGORY}/binutils-2.20"
-
-src_prepare() {
- # Since Sabayon's gcc ebuild are split into two parts, we have to
- # build gcc with a different version of gcc, or terrible breakage
- # will occur after sys-devel/base-gcc is installed, but the
- # partner sys-devel/gcc still needs to be built.
-
- # While it is possible to rebuild Sabayon's split gcc from
- # the same version, we have to disallow this also since
- # we have no way of discerning if a configuration change
- # is significant enough to cause breakage.
-
- GCC_PROFILE_VER=$(cat ${ROOT}/etc/env.d/gcc/config-$CHOST | awk -F- '{ print $NF }')
- einfo "Checking for valid gcc profile to build ${P}"
-
- # Construct the Slot of the gcc version in the active profile.
- GCC_PROFILE_SLOT_MAJOR=$(echo ${GCC_PROFILE_VER} | awk -F. '{ print $1 }')
- GCC_PROFILE_SLOT_MINOR=$(echo ${GCC_PROFILE_VER} | awk -F. '{ print $2 }')
- GCC_PROFILE_SLOT="${GCC_PROFILE_SLOT_MAJOR}.${GCC_PROFILE_SLOT_MINOR}"
- einfo "Current gcc profile version Slot is: ${GCC_PROFILE_SLOT}"
- if [[ "${GCC_PROFILE_SLOT}" = "${SLOT}" ]] ; then
- eerror "Error!"
- eerror "The active gcc-profile is for sys-devel/gcc slot ${SLOT}."
- eerror "Sabayon's split sys-devel/gcc package MUST be built"
- eerror "with another slotted version of sys-devel/gcc active."
- ebeep 10
- fi
-
- if has_version '<sys-libs/glibc-2.12' ; then
- ewarn "Your host glibc is too old; disabling automatic fortify."
- ewarn "Please rebuild gcc after upgrading to >=glibc-2.12 #362315"
- EPATCH_EXCLUDE+=" 10_all_default-fortify-source.patch"
- fi
-
- # drop the x32 stuff once 4.7 goes stable
- if [[ ${CTARGET} != x86_64* ]] || ! has x32 $(get_all_abis TARGET) ; then
- EPATCH_EXCLUDE+=" 90_all_gcc-4.7-x32.patch"
- fi
-
- toolchain_src_prepare
-
- use vanilla && return 0
-
- #Use -r1 for newer piepatchet that use DRIVER_SELF_SPECS for the hardened specs.
- [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env-r1.patch
-}
-
-## Just install libgcc stuff
-src_install() {
- cd "${WORKDIR}/build"
- S="${WORKDIR}"/build \
- emake -j1 -C "${CTARGET}/libgcc" DESTDIR="${D}" install-shared || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libgcc" DESTDIR="${D}" \
- install-shared || die
- fi
-
- if use mudflap; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libmudflap" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libmudflap" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- fi
- fi
-
- if use openmp; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libgomp" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libgomp" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- fi
- fi
-
- S="${WORKDIR}"/build \
- emake -j1 -C "${CTARGET}/libstdc++-v3/src" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libstdc++-v3/src" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- fi
-
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libstdc++-v3/po" DESTDIR="${D}" install || die
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libgomp" DESTDIR="${D}" install-info || die
-
- S="${WORKDIR}"/build emake -j1 DESTDIR="${D}" install-target-libquadmath || die
- if use fortran; then
- S="${WORKDIR}"/build emake -j1 DESTDIR="${D}" install-target-libgfortran || die
- fi
- # TODO: what to do with USE objc++ and objc-gc ?
- if use objc; then
- S="${WORKDIR}"/build emake -j1 DESTDIR="${D}" install-target-libobjc || die
- fi
-
- # from toolchain.eclass yay
- gcc_movelibs
-
- dodir /etc/env.d/gcc
- create_gcc_env_entry
-
- # Setup the gcc_env_entry for hardened gcc 4 with minispecs
- if want_minispecs ; then
- copy_minispecs_gcc_specs
- fi
-
- # drop any .la, .a
- find "${D}" -name *.a -delete
- find "${D}" -name *.la -delete
-
- # drop any include
- rm "${D}${LIBPATH}"/include -rf
- # drop specs as well, provided by sys-devel/gcc-${PV}:${SLOT}
- # unfortunately, the spec shit above does create the env.d/
- # file content...
- rm "${D}${LIBPATH}"/{32/,}*.spec{s,} -rf
- rm "${D}${LIBPATH}"/specs -rf
-
- # Now do the fun stripping stuff
- env RESTRICT="" CHOST=${CTARGET} prepstrip "${D}${LIBPATH}"
-
- cd "${S}"
- if ! is_crosscompile; then
- has noinfo ${FEATURES} \
- && rm -r "${D}/${DATAPATH}"/info \
- || prepinfo "${DATAPATH}"
- fi
-
- # use gid of 0 because some stupid ports don't have
- # the group 'root' set to gid 0
- chown -R root:0 "${D}"${LIBPATH}
-}
-
-## Do nothing!
-pkg_preinst() {
- :
-}
-
-## Do (almost) nothing!
-pkg_postinst() {
- # Sabayon specific bits to always force the latest gcc profile
- local gcc_atom=$(best_version sys-devel/base-gcc)
- local gcc_ver=
- if [ -n "${gcc_atom}" ]; then
- elog "Found latest base-gcc to be: ${gcc_atom}, forcing this profile"
- gcc_ver=$(portageq metadata "${ROOT}" installed "${gcc_atom}" PV)
- else
- eerror "No sys-devel/base-gcc installed"
- fi
-
- if [ -n "${gcc_ver}" ]; then
- local target="${CTARGET:${CHOST}}-${gcc_ver}"
- local env_target="${ROOT}/etc/env.d/gcc/${target}"
- [[ -e "${env_target}-vanilla" ]] && find_target="${target}-vanilla"
-
- elog "Setting: ${target} GCC profile"
- gcc-config "${target}"
- else
- eerror "No sys-devel/base-gcc version installed? Cannot set a proper GCC profile"
- fi
-}
-
-## Do nothing!
-pkg_prerm() {
- :
-}
-
-## Do nothing!
-pkg_postrm() {
- :
-}
diff --git a/sys-devel/base-gcc/base-gcc-4.8.4.ebuild b/sys-devel/base-gcc/base-gcc-4.8.4.ebuild
deleted file mode 100644
index 171d4a7e..00000000
--- a/sys-devel/base-gcc/base-gcc-4.8.4.ebuild
+++ /dev/null
@@ -1,214 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="4"
-
-PATCH_VER="1.5"
-UCLIBC_VER="1.0"
-
-# Hardened gcc 4 stuff
-PIE_VER="0.6.1"
-SPECS_VER="0.2.0"
-SPECS_GCC_VER="4.4.3"
-# arch/libc configurations known to be stable with {PIE,SSP}-by-default
-PIE_GLIBC_STABLE="x86 amd64 ppc ppc64 arm ia64"
-PIE_UCLIBC_STABLE="x86 arm amd64 ppc ppc64"
-SSP_STABLE="amd64 x86 ppc ppc64 arm"
-# uclibc need tls and nptl support for SSP support
-# uclibc need to be >= 0.9.33
-SSP_UCLIBC_STABLE="x86 amd64 ppc ppc64 arm"
-#end Hardened stuff
-
-inherit eutils toolchain
-
-# This is here to redeclare is_gcc() in toolchain.eclass
-# We don't even want to build gcj, which is a real hog
-# on memory constrained hardware. base-gcc doesn't actually
-# ship with it atm.
-is_gcj() {
- return 1
-}
-
-DESCRIPTION="The GNU Compiler Collection"
-
-KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
-
-RDEPEND=""
-DEPEND="${RDEPEND}
- elibc_glibc? ( >=sys-libs/glibc-2.8 )
- >=${CATEGORY}/binutils-2.20"
-
-src_prepare() {
- # Since Sabayon's gcc ebuild are split into two parts, we have to
- # build gcc with a different version of gcc, or terrible breakage
- # will occur after sys-devel/base-gcc is installed, but the
- # partner sys-devel/gcc still needs to be built.
-
- # While it is possible to rebuild Sabayon's split gcc from
- # the same version, we have to disallow this also since
- # we have no way of discerning if a configuration change
- # is significant enough to cause breakage.
-
- GCC_PROFILE_VER=$(cat ${ROOT}/etc/env.d/gcc/config-$CHOST | awk -F- '{ print $NF }')
- einfo "Checking for valid gcc profile to build ${P}"
-
- # Construct the Slot of the gcc version in the active profile.
- GCC_PROFILE_SLOT_MAJOR=$(echo ${GCC_PROFILE_VER} | awk -F. '{ print $1 }')
- GCC_PROFILE_SLOT_MINOR=$(echo ${GCC_PROFILE_VER} | awk -F. '{ print $2 }')
- GCC_PROFILE_SLOT="${GCC_PROFILE_SLOT_MAJOR}.${GCC_PROFILE_SLOT_MINOR}"
- einfo "Current gcc profile version Slot is: ${GCC_PROFILE_SLOT}"
- if [[ "${GCC_PROFILE_SLOT}" = "${SLOT}" ]] ; then
- eerror "Error!"
- eerror "The active gcc-profile is for sys-devel/gcc slot ${SLOT}."
- eerror "Sabayon's split sys-devel/gcc package MUST be built"
- eerror "with another slotted version of sys-devel/gcc active."
- ebeep 10
- fi
-
- if has_version '<sys-libs/glibc-2.12' ; then
- ewarn "Your host glibc is too old; disabling automatic fortify."
- ewarn "Please rebuild gcc after upgrading to >=glibc-2.12 #362315"
- EPATCH_EXCLUDE+=" 10_all_default-fortify-source.patch"
- fi
-
- # drop the x32 stuff once 4.7 goes stable
- if [[ ${CTARGET} != x86_64* ]] || ! has x32 $(get_all_abis TARGET) ; then
- EPATCH_EXCLUDE+=" 90_all_gcc-4.7-x32.patch"
- fi
-
- toolchain_src_prepare
-
- use vanilla && return 0
-
- #Use -r1 for newer piepatchet that use DRIVER_SELF_SPECS for the hardened specs.
- [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env-r1.patch
-
- #virtualbox-guest-additions fix patch
- epatch "${FILESDIR}/${P}-no_instrument_function.patch"
-}
-
-## Just install libgcc stuff
-src_install() {
- cd "${WORKDIR}/build"
- S="${WORKDIR}"/build \
- emake -j1 -C "${CTARGET}/libgcc" DESTDIR="${D}" install-shared || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libgcc" DESTDIR="${D}" \
- install-shared || die
- fi
-
- if use mudflap; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libmudflap" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libmudflap" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- fi
- fi
-
- if use openmp; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libgomp" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libgomp" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- fi
- fi
-
- S="${WORKDIR}"/build \
- emake -j1 -C "${CTARGET}/libstdc++-v3/src" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- if use multilib; then
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/32/libstdc++-v3/src" DESTDIR="${D}" \
- install-toolexeclibLTLIBRARIES || die
- fi
-
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libstdc++-v3/po" DESTDIR="${D}" install || die
- S="${WORKDIR}"/build emake -j1 -C "${CTARGET}/libgomp" DESTDIR="${D}" install-info || die
-
- S="${WORKDIR}"/build emake -j1 DESTDIR="${D}" install-target-libquadmath || die
- if use fortran; then
- S="${WORKDIR}"/build emake -j1 DESTDIR="${D}" install-target-libgfortran || die
- fi
- # TODO: what to do with USE objc++ and objc-gc ?
- if use objc; then
- S="${WORKDIR}"/build emake -j1 DESTDIR="${D}" install-target-libobjc || die
- fi
-
- # from toolchain.eclass yay
- gcc_movelibs
-
- dodir /etc/env.d/gcc
- create_gcc_env_entry
-
- # Setup the gcc_env_entry for hardened gcc 4 with minispecs
- if want_minispecs ; then
- copy_minispecs_gcc_specs
- fi
-
- # drop any .la, .a
- find "${D}" -name *.a -delete
- find "${D}" -name *.la -delete
-
- # drop any include
- rm "${D}${LIBPATH}"/include -rf
- # drop specs as well, provided by sys-devel/gcc-${PV}:${SLOT}
- # unfortunately, the spec shit above does create the env.d/
- # file content...
- rm "${D}${LIBPATH}"/{32/,}*.spec{s,} -rf
- rm "${D}${LIBPATH}"/specs -rf
-
- # Now do the fun stripping stuff
- env RESTRICT="" CHOST=${CTARGET} prepstrip "${D}${LIBPATH}"
-
- cd "${S}"
- if ! is_crosscompile; then
- has noinfo ${FEATURES} \
- && rm -r "${D}/${DATAPATH}"/info \
- || prepinfo "${DATAPATH}"
- fi
-
- # use gid of 0 because some stupid ports don't have
- # the group 'root' set to gid 0
- chown -R root:0 "${D}"${LIBPATH}
-}
-
-## Do nothing!
-pkg_preinst() {
- :
-}
-
-## Do (almost) nothing!
-pkg_postinst() {
- # Sabayon specific bits to always force the latest gcc profile
- local gcc_atom=$(best_version sys-devel/base-gcc)
- local gcc_ver=
- if [ -n "${gcc_atom}" ]; then
- elog "Found latest base-gcc to be: ${gcc_atom}, forcing this profile"
- gcc_ver=$(portageq metadata "${ROOT}" installed "${gcc_atom}" PV)
- else
- eerror "No sys-devel/base-gcc installed"
- fi
-
- if [ -n "${gcc_ver}" ]; then
- local target="${CTARGET:${CHOST}}-${gcc_ver}"
- local env_target="${ROOT}/etc/env.d/gcc/${target}"
- [[ -e "${env_target}-vanilla" ]] && find_target="${target}-vanilla"
-
- elog "Setting: ${target} GCC profile"
- gcc-config "${target}"
- else
- eerror "No sys-devel/base-gcc version installed? Cannot set a proper GCC profile"
- fi
-}
-
-## Do nothing!
-pkg_prerm() {
- :
-}
-
-## Do nothing!
-pkg_postrm() {
- :
-}
diff --git a/sys-devel/base-gcc/files/awk/fixlafiles.awk b/sys-devel/base-gcc/files/awk/fixlafiles.awk
deleted file mode 100644
index ffade966..00000000
--- a/sys-devel/base-gcc/files/awk/fixlafiles.awk
+++ /dev/null
@@ -1,314 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/files/awk/fixlafiles.awk,v 1.15 2008/02/19 05:47:29 vapier Exp $
-
-#
-# Helper functions
-#
-function printn(string) {
- printf("%s", string)
-}
-function einfo(string) {
- printf(" \033[32;01m*\033[0m %s\n", string)
-}
-function einfon(string) {
- printf(" \033[32;01m*\033[0m %s", string)
-}
-function ewarn(string) {
- printf(" \033[33;01m*\033[0m %s\n", string)
-}
-function ewarnn(string) {
- printf(" \033[33;01m*\033[0m %s", string)
-}
-function eerror(string) {
- printf(" \033[31;01m*\033[0m %s\n", string)
-}
-
-#
-# assert(condition, errmsg)
-# assert that a condition is true. Otherwise exit.
-#
-function assert(condition, string) {
- if (! condition) {
- printf("%s:%d: assertion failed: %s\n",
- FILENAME, FNR, string) > "/dev/stderr"
- _assert_exit = 1
- exit 1
- }
-}
-
-#
-# system(command, return)
-# wrapper that normalizes return codes ...
-#
-function dosystem(command, ret) {
- ret = 0
- ret = system(command)
- if (ret == 0)
- return 1
- else
- return 0
-}
-
-BEGIN {
- #
- # Get our variables from environment
- #
- OLDVER = ENVIRON["OLDVER"]
- OLDCHOST = ENVIRON["OLDCHOST"]
-
- if (OLDVER == "") {
- eerror("Could not get OLDVER!");
- exit 1
- }
-
- # Setup some sane defaults
- LIBCOUNT = 2
- HAVE_GCC34 = 0
- DIRLIST[1] = "/lib"
- DIRLIST[2] = "/usr/lib"
-
- #
- # Walk /etc/ld.so.conf to discover all our library paths
- #
- pipe = "cat /etc/ld.so.conf | sort 2>/dev/null"
- while(((pipe) | getline ldsoconf_data) > 0) {
- if (ldsoconf_data !~ /^[[:space:]]*#/) {
- if (ldsoconf_data == "") continue
-
- # Remove any trailing comments
- sub(/#.*$/, "", ldsoconf_data)
- # Remove any trailing spaces
- sub(/[[:space:]]+$/, "", ldsoconf_data)
-
- # If there's more than one path per line, split
- # it up as if they were sep lines
- split(ldsoconf_data, nodes, /[:,[:space:]]/)
-
- # Now add the rest from ld.so.conf
- for (x in nodes) {
- # wtf does this line do ?
- sub(/=.*/, "", nodes[x])
- # Prune trailing /
- sub(/\/$/, "", nodes[x])
-
- if (nodes[x] == "") continue
-
- #
- # Drop the directory if its a child directory of
- # one that was already added ...
- # For example, if we have:
- # /usr/lib /usr/libexec /usr/lib/mozilla /usr/lib/nss
- # We really just want to save /usr/lib /usr/libexec
- #
- CHILD = 0
- for (y in DIRLIST) {
- if (nodes[x] ~ "^" DIRLIST[y] "(/|$)") {
- CHILD = 1
- break
- }
- }
- if (CHILD) continue
-
- DIRLIST[++LIBCOUNT] = nodes[x]
- }
- }
- }
- close(pipe)
-
- #
- # Get line from gcc's output containing CHOST
- #
- pipe = "gcc -print-file-name=libgcc.a 2>/dev/null"
- if ((!((pipe) | getline TMP_CHOST)) || (TMP_CHOST == "")) {
- close(pipe)
-
- # If we fail to get the CHOST, see if we can get the CHOST
- # portage thinks we are using ...
- pipe = "/usr/bin/portageq envvar 'CHOST'"
- assert(((pipe) | getline CHOST), "(" pipe ") | getline CHOST")
- } else {
- # Check pre gcc-3.4.x versions
- CHOST = gensub("^.+lib/gcc-lib/([^/]+)/[0-9]+.+$", "\\1", 1, TMP_CHOST)
-
- if (CHOST == TMP_CHOST || CHOST == "") {
- # Check gcc-3.4.x or later
- CHOST = gensub("^.+lib/gcc/([^/]+)/[0-9]+.+$", "\\1", 1, TMP_CHOST);
-
- if (CHOST == TMP_CHOST || CHOST == "")
- CHOST = ""
- else
- HAVE_GCC34 = 1
- }
- }
- close(pipe)
-
- if (CHOST == "") {
- eerror("Could not get gcc's CHOST!")
- exit 1
- }
-
- if (OLDCHOST != "")
- if (OLDCHOST == CHOST)
- OLDCHOST = ""
-
- GCCLIBPREFIX_OLD = "/usr/lib/gcc-lib/"
- GCCLIBPREFIX_NEW = "/usr/lib/gcc/"
-
- if (HAVE_GCC34)
- GCCLIBPREFIX = GCCLIBPREFIX_NEW
- else
- GCCLIBPREFIX = GCCLIBPREFIX_OLD
-
- GCCLIB = GCCLIBPREFIX CHOST
-
- if (OLDCHOST != "") {
- OLDGCCLIB1 = GCCLIBPREFIX_OLD OLDCHOST
- OLDGCCLIB2 = GCCLIBPREFIX_NEW OLDCHOST
- }
-
- # Get current gcc's version
- pipe = "gcc -dumpversion"
- assert(((pipe) | getline NEWVER), "(" pipe ") | getline NEWVER)")
- close(pipe)
-
- if (NEWVER == "") {
- eerror("Could not get gcc's version!")
- exit 1
- }
-
- # Nothing to do ?
- if ((OLDVER == NEWVER) && (OLDCHOST == ""))
- exit 0
-
- #
- # Ok, now let's scan for the .la files and actually fix them up
- #
- for (x = 1; x <= LIBCOUNT; x++) {
- # Do nothing if the target dir is gcc's internal library path
- if (DIRLIST[x] ~ GCCLIBPREFIX_OLD ||
- DIRLIST[x] ~ GCCLIBPREFIX_NEW)
- continue
-
- einfo(" [" x "/" LIBCOUNT "] Scanning " DIRLIST[x] " ...")
-
- pipe = "find " DIRLIST[x] "/ -name '*.la' 2>/dev/null"
- while (((pipe) | getline la_files) > 0) {
-
- # Do nothing if the .la file is located in gcc's internal lib path
- if (la_files ~ GCCLIBPREFIX_OLD ||
- la_files ~ GCCLIBPREFIX_NEW)
- continue
-
- CHANGED = 0
- CHOST_CHANGED = 0
-
- # See if we need to fix the .la file
- while ((getline la_data < (la_files)) > 0) {
- if (OLDCHOST != "") {
- if ((gsub(OLDGCCLIB1 "[/[:space:]]+",
- GCCLIB, la_data) > 0) ||
- (gsub(OLDGCCLIB2 "[/[:space:]]+",
- GCCLIB, la_data) > 0)) {
- CHANGED = 1
- CHOST_CHANGED = 1
- }
- }
- if (OLDVER != NEWVER) {
- if ((gsub(GCCLIBPREFIX_OLD CHOST "/" OLDVER "[/[:space:]]*",
- GCCLIB "/" NEWVER, la_data) > 0) ||
- (gsub(GCCLIBPREFIX_NEW CHOST "/" OLDVER "[/[:space:]]*",
- GCCLIB "/" NEWVER, la_data) > 0))
- CHANGED = 1
- }
- }
- close(la_files)
-
- # Do the actual changes in a second loop, as we can then
- # verify that CHOST_CHANGED among things is correct ...
- if (CHANGED) {
- ewarnn(" FIXING: " la_files " ...")
-
- if (CHANGED)
- printn("[")
-
- # Clear the temp file (removing rather than '>foo' is better
- # out of a security point of view?)
- dosystem("rm -f " la_files ".new")
-
- while ((getline la_data < (la_files)) > 0) {
- if (OLDCHOST != "") {
- tmpstr = gensub(OLDGCCLIB1 "([/[:space:]]+)",
- GCCLIB "\\1", "g", la_data)
- tmpstr = gensub(OLDGCCLIB2 "([/[:space:]]+)",
- GCCLIB "\\1", "g", tmpstr)
-
- if (la_data != tmpstr) {
- printn("c")
- la_data = tmpstr
- }
-
- if (CHOST_CHANGED > 0) {
- # We try to be careful about CHOST changes outside
- # the gcc library path (meaning we cannot match it
- # via /GCCLIBPREFIX CHOST/) ...
-
- # Catch:
- #
- # dependency_libs=' -L/usr/CHOST/{bin,lib}'
- #
- gsub("-L/usr/" OLDCHOST "/",
- "-L/usr/" CHOST "/", la_data)
- # Catch:
- #
- # dependency_libs=' -L/usr/lib/gcc-lib/CHOST/VER/../../../../CHOST/lib'
- #
- la_data = gensub("(" GCCLIB "/[^[:space:]]+)/" OLDCHOST "/",
- "\\1/" CHOST "/", "g", la_data)
- }
- }
-
- if (OLDVER != NEWVER) {
- # Catch:
- #
- # dependency_libs=' -L/usr/lib/gcc/CHOST/VER'
- #
- tmpstr = gensub(GCCLIBPREFIX_OLD CHOST "/" OLDVER "([/[:space:]]+)",
- GCCLIB "/" NEWVER "\\1", "g", la_data)
- tmpstr = gensub(GCCLIBPREFIX_NEW CHOST "/" OLDVER "([/[:space:]]+)",
- GCCLIB "/" NEWVER "\\1", "g", tmpstr)
-
- if (la_data != tmpstr) {
- # Catch:
- #
- # dependency_libs=' -L/usr/lib/gcc-lib/../../CHOST/lib'
- #
- # in cases where we have gcc34
- tmpstr = gensub(GCCLIBPREFIX_OLD "(../../" CHOST "/lib)",
- GCCLIBPREFIX "\\1", "g", tmpstr)
- tmpstr = gensub(GCCLIBPREFIX_NEW "(../../" CHOST "/lib)",
- GCCLIBPREFIX "\\1", "g", tmpstr)
- printn("v")
- la_data = tmpstr
- }
- }
-
- print la_data >> (la_files ".new")
- }
-
- if (CHANGED)
- print "]"
-
- close(la_files)
- close(la_files ".new")
-
- assert(dosystem("mv -f " la_files ".new " la_files),
- "dosystem(\"mv -f " la_files ".new " la_files "\")")
- }
- }
-
- close(pipe)
- }
-}
-
-# vim:ts=4
diff --git a/sys-devel/base-gcc/files/awk/fixlafiles.awk-no_gcc_la b/sys-devel/base-gcc/files/awk/fixlafiles.awk-no_gcc_la
deleted file mode 100644
index 346bd16f..00000000
--- a/sys-devel/base-gcc/files/awk/fixlafiles.awk-no_gcc_la
+++ /dev/null
@@ -1,335 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $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 $
-
-#
-# Helper functions
-#
-function printn(string) {
- printf("%s", string)
-}
-function einfo(string) {
- printf(" \033[32;01m*\033[0m %s\n", string)
-}
-function einfon(string) {
- printf(" \033[32;01m*\033[0m %s", string)
-}
-function ewarn(string) {
- printf(" \033[33;01m*\033[0m %s\n", string)
-}
-function ewarnn(string) {
- printf(" \033[33;01m*\033[0m %s", string)
-}
-function eerror(string) {
- printf(" \033[31;01m*\033[0m %s\n", string)
-}
-
-#
-# assert(condition, errmsg)
-# assert that a condition is true. Otherwise exit.
-#
-function assert(condition, string) {
- if (! condition) {
- printf("%s:%d: assertion failed: %s\n",
- FILENAME, FNR, string) > "/dev/stderr"
- _assert_exit = 1
- exit 1
- }
-}
-
-#
-# system(command, return)
-# wrapper that normalizes return codes ...
-#
-function dosystem(command, ret) {
- ret = 0
- ret = system(command)
- if (ret == 0)
- return 1
- else
- return 0
-}
-
-#
-# parse_ld_conf(config_file)
-#
-function parse_ld_conf(conf, pipe, ldsoconf_data, CHILD, y) {
- pipe = "cd /etc; cat " conf " | sort 2>/dev/null"
- while(((pipe) | getline ldsoconf_data) > 0) {
- if (ldsoconf_data ~ /^[[:space:]]*#/)
- continue
- if (ldsoconf_data == "")
- continue
-
- # Handle the "include" keyword
- if (ldsoconf_data ~ /^include /) {
- sub(/^include /, "", ldsoconf_data)
- parse_ld_conf(ldsoconf_data)
- continue
- }
-
- # Remove any trailing comments
- sub(/#.*$/, "", ldsoconf_data)
- # Remove any trailing spaces
- sub(/[[:space:]]+$/, "", ldsoconf_data)
- # Eat duplicate slashes
- sub(/\/\//, "/", ldsoconf_data)
- # Prune trailing /
- sub(/\/$/, "", ldsoconf_data)
-
- #
- # Drop the directory if its a child directory of
- # one that was already added ...
- # For example, if we have:
- # /usr/lib /usr/libexec /usr/lib/mozilla /usr/lib/nss
- # We really just want to save /usr/lib /usr/libexec
- #
- CHILD = 0
- for (y in DIRLIST) {
- if (ldsoconf_data ~ "^" DIRLIST[y] "(/|$)") {
- CHILD = 1
- break
- }
- }
- if (CHILD) continue
-
- DIRLIST[++LIBCOUNT] = ldsoconf_data
- }
- close(pipe)
-}
-
-BEGIN {
- #
- # Get our variables from environment
- #
- OLDVER = ENVIRON["OLDVER"]
- OLDCHOST = ENVIRON["OLDCHOST"]
-
- if (OLDVER == "") {
- eerror("Could not get OLDVER!");
- exit 1
- }
-
- # Setup some sane defaults
- LIBCOUNT = 2
- HAVE_GCC34 = 0
- DIRLIST[1] = "/lib"
- DIRLIST[2] = "/usr/lib"
-
- #
- # Walk /etc/ld.so.conf to discover all our library paths
- #
- parse_ld_conf("/etc/ld.so.conf")
-
- #
- # Get line from gcc's output containing CHOST
- #
- pipe = "gcc -print-file-name=libgcc.a 2>/dev/null"
- if ((!((pipe) | getline TMP_CHOST)) || (TMP_CHOST == "")) {
- close(pipe)
-
- # If we fail to get the CHOST, see if we can get the CHOST
- # portage thinks we are using ...
- pipe = "/usr/bin/portageq envvar 'CHOST'"
- assert(((pipe) | getline CHOST), "(" pipe ") | getline CHOST")
- } else {
- # Check pre gcc-3.4.x versions
- CHOST = gensub("^.+lib/gcc-lib/([^/]+)/[0-9]+.+$", "\\1", 1, TMP_CHOST)
-
- if (CHOST == TMP_CHOST || CHOST == "") {
- # Check gcc-3.4.x or later
- CHOST = gensub("^.+lib/gcc/([^/]+)/[0-9]+.+$", "\\1", 1, TMP_CHOST);
-
- if (CHOST == TMP_CHOST || CHOST == "")
- CHOST = ""
- else
- HAVE_GCC34 = 1
- }
- }
- close(pipe)
-
- if (CHOST == "") {
- eerror("Could not get gcc's CHOST!")
- exit 1
- }
-
- if (OLDCHOST != "")
- if (OLDCHOST == CHOST)
- OLDCHOST = ""
-
- GCCLIBPREFIX_OLD = "/usr/lib/gcc-lib/"
- GCCLIBPREFIX_NEW = "/usr/lib/gcc/"
-
- if (HAVE_GCC34)
- GCCLIBPREFIX = GCCLIBPREFIX_NEW
- else
- GCCLIBPREFIX = GCCLIBPREFIX_OLD
-
- GCCLIB = GCCLIBPREFIX CHOST
-
- if (OLDCHOST != "") {
- OLDGCCLIB1 = GCCLIBPREFIX_OLD OLDCHOST
- OLDGCCLIB2 = GCCLIBPREFIX_NEW OLDCHOST
- }
-
- # Get current gcc's version
- pipe = "gcc -dumpversion"
- assert(((pipe) | getline NEWVER), "(" pipe ") | getline NEWVER)")
- close(pipe)
-
- if (NEWVER == "") {
- eerror("Could not get gcc's version!")
- exit 1
- }
-
- # Nothing to do ?
- # NB: Do not check for (OLDVER == NEWVER) anymore, as we might need to
- # replace libstdc++.la ....
- if ((OLDVER == "") && (OLDCHOST == ""))
- exit 0
-
- #
- # Ok, now let's scan for the .la files and actually fix them up
- #
- for (x = 1; x <= LIBCOUNT; x++) {
- # Do nothing if the target dir is gcc's internal library path
- if (DIRLIST[x] ~ GCCLIBPREFIX_OLD ||
- DIRLIST[x] ~ GCCLIBPREFIX_NEW)
- continue
-
- einfo(" [" x "/" LIBCOUNT "] Scanning " DIRLIST[x] " ...")
-
- pipe = "find " DIRLIST[x] "/ -name '*.la' 2>/dev/null"
- while (((pipe) | getline la_files) > 0) {
-
- # Do nothing if the .la file is located in gcc's internal lib path
- if (la_files ~ GCCLIBPREFIX_OLD ||
- la_files ~ GCCLIBPREFIX_NEW)
- continue
-
- CHANGED = 0
- CHOST_CHANGED = 0
-
- # See if we need to fix the .la file
- while ((getline la_data < (la_files)) > 0) {
- if (OLDCHOST != "") {
- if ((gsub(OLDGCCLIB1 "[/[:space:]]+",
- GCCLIB, la_data) > 0) ||
- (gsub(OLDGCCLIB2 "[/[:space:]]+",
- GCCLIB, la_data) > 0)) {
- CHANGED = 1
- CHOST_CHANGED = 1
- }
- }
- if (OLDVER != NEWVER) {
- if ((gsub(GCCLIBPREFIX_OLD CHOST "/" OLDVER "[/[:space:]]*",
- GCCLIB "/" NEWVER, la_data) > 0) ||
- (gsub(GCCLIBPREFIX_NEW CHOST "/" OLDVER "[/[:space:]]*",
- GCCLIB "/" NEWVER, la_data) > 0))
- CHANGED = 1
- }
- # We now check if we have libstdc++.la, as we remove the
- # libtool linker scripts for gcc ...
- # We do this last, as we only match the new paths
- if (gsub(GCCLIB "/" NEWVER "/libstdc\\+\\+\\.la",
- "-lstdc++", la_data) > 0)
- CHANGED = 1
- }
- close(la_files)
-
- # Do the actual changes in a second loop, as we can then
- # verify that CHOST_CHANGED among things is correct ...
- if (CHANGED) {
- ewarnn(" FIXING: " la_files " ...[")
-
- # Clear the temp file (removing rather than '>foo' is better
- # out of a security point of view?)
- dosystem("rm -f " la_files ".new")
-
- while ((getline la_data < (la_files)) > 0) {
- if (OLDCHOST != "") {
- tmpstr = gensub(OLDGCCLIB1 "([/[:space:]]+)",
- GCCLIB "\\1", "g", la_data)
- tmpstr = gensub(OLDGCCLIB2 "([/[:space:]]+)",
- GCCLIB "\\1", "g", tmpstr)
-
- if (la_data != tmpstr) {
- printn("c")
- la_data = tmpstr
- }
-
- if (CHOST_CHANGED > 0) {
- # We try to be careful about CHOST changes outside
- # the gcc library path (meaning we cannot match it
- # via /GCCLIBPREFIX CHOST/) ...
-
- # Catch:
- #
- # dependency_libs=' -L/usr/CHOST/{bin,lib}'
- #
- gsub("-L/usr/" OLDCHOST "/",
- "-L/usr/" CHOST "/", la_data)
- # Catch:
- #
- # dependency_libs=' -L/usr/lib/gcc-lib/CHOST/VER/../../../../CHOST/lib'
- #
- la_data = gensub("(" GCCLIB "/[^[:space:]]+)/" OLDCHOST "/",
- "\\1/" CHOST "/", "g", la_data)
- }
- }
-
- if (OLDVER != NEWVER) {
- # Catch:
- #
- # dependency_libs=' -L/usr/lib/gcc/CHOST/VER'
- #
- tmpstr = gensub(GCCLIBPREFIX_OLD CHOST "/" OLDVER "([/[:space:]]+)",
- GCCLIB "/" NEWVER "\\1", "g", la_data)
- tmpstr = gensub(GCCLIBPREFIX_NEW CHOST "/" OLDVER "([/[:space:]]+)",
- GCCLIB "/" NEWVER "\\1", "g", tmpstr)
-
- if (la_data != tmpstr) {
- # Catch:
- #
- # dependency_libs=' -L/usr/lib/gcc-lib/../../CHOST/lib'
- #
- # in cases where we have gcc34
- tmpstr = gensub(GCCLIBPREFIX_OLD "(../../" CHOST "/lib)",
- GCCLIBPREFIX "\\1", "g", tmpstr)
- tmpstr = gensub(GCCLIBPREFIX_NEW "(../../" CHOST "/lib)",
- GCCLIBPREFIX "\\1", "g", tmpstr)
- printn("v")
- la_data = tmpstr
- }
- }
-
- # We now check if we have libstdc++.la, as we remove the
- # libtool linker scripts for gcc and any referencese in any
- # libtool linker scripts.
- # We do this last, as we only match the new paths
- tmpstr = gensub(GCCLIB "/" NEWVER "/libstdc\\+\\+\\.la",
- "-lstdc++", "g", la_data);
- if (la_data != tmpstr) {
- printn("l")
- la_data = tmpstr
- }
-
- print la_data >> (la_files ".new")
- }
-
- if (CHANGED)
- print "]"
-
- close(la_files)
- close(la_files ".new")
-
- assert(dosystem("mv -f " la_files ".new " la_files),
- "dosystem(\"mv -f " la_files ".new " la_files "\")")
- }
- }
-
- close(pipe)
- }
-}
-
-# vim:ts=4
diff --git a/sys-devel/base-gcc/files/base-gcc-4.8.4-no_instrument_function.patch b/sys-devel/base-gcc/files/base-gcc-4.8.4-no_instrument_function.patch
deleted file mode 100644
index c363b961..00000000
--- a/sys-devel/base-gcc/files/base-gcc-4.8.4-no_instrument_function.patch
+++ /dev/null
@@ -1,15 +0,0 @@
---- trunk/gcc/c-family/c-common.c 2014/01/02 22:23:26 206289
-+++ trunk/gcc/c-family/c-common.c 2014/01/15 19:37:35 206643
-@@ -7985,12 +7985,6 @@
- "%qE attribute applies only to functions", name);
- *no_add_attrs = true;
- }
-- else if (DECL_INITIAL (decl))
-- {
-- error_at (DECL_SOURCE_LOCATION (decl),
-- "can%'t set %qE attribute after definition", name);
-- *no_add_attrs = true;
-- }
- else
- DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT (decl) = 1;
-
diff --git a/sys-devel/base-gcc/files/fix_libtool_files.sh b/sys-devel/base-gcc/files/fix_libtool_files.sh
deleted file mode 100644
index c3a3c61f..00000000
--- a/sys-devel/base-gcc/files/fix_libtool_files.sh
+++ /dev/null
@@ -1,72 +0,0 @@
-#!/bin/bash
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/files/fix_libtool_files.sh,v 1.14 2007/09/06 11:00:44 uberlord Exp $
-
-usage() {
-cat << "USAGE_END"
-Usage: fix_libtool_files.sh <old-gcc-version> [--oldarch <old-CHOST>]
-
- Where <old-gcc-version> is the version number of the
- previous gcc version. For example, if you updated to
- gcc-3.2.1, and you had gcc-3.2 installed, run:
-
- # fix_libtool_files.sh 3.2
-
- If you updated to gcc-3.2.3, and the old CHOST was i586-pc-linux-gnu
- but you now have CHOST as i686-pc-linux-gnu, run:
-
- # fix_libtool_files.sh 3.2 --oldarch i586-pc-linux-gnu
-
- Note that if only the CHOST and not the version changed, you can run
- it with the current version and the '--oldarch <old-CHOST>' arguments,
- and it will do the expected:
-
- # fix_libtool_files.sh `gcc -dumpversion` --oldarch i586-pc-linux-gnu
-
-USAGE_END
- exit 1
-}
-
-if [[ $2 != "--oldarch" && $# -ne 1 ]] || \
- [[ $2 == "--oldarch" && $# -ne 3 ]]
-then
- usage
-fi
-
-ARGV1=$1
-ARGV2=$2
-ARGV3=$3
-
-source /etc/profile || exit 1
-source /etc/init.d/functions.sh || exit 1
-
-if [[ ${EUID} -ne 0 ]] ; then
- eerror "${0##*/}: Must be root."
- exit 1
-fi
-
-# make sure the files come out sane
-umask 0022
-
-if [[ ${ARGV2} == "--oldarch" ]] && [[ -n ${ARGV3} ]] ; then
- OLDCHOST=${ARGV3}
-else
- OLDCHOST=
-fi
-
-AWKDIR="/lib/rcscripts/awk"
-
-if [[ ! -r ${AWKDIR}/fixlafiles.awk ]] ; then
- eerror "${0##*/}: ${AWKDIR}/fixlafiles.awk does not exist!"
- exit 1
-fi
-
-OLDVER=${ARGV1}
-
-export OLDVER OLDCHOST
-
-einfo "Scanning libtool files for hardcoded gcc library paths..."
-gawk -f "${AWKDIR}/fixlafiles.awk"
-
-# vim:ts=4
diff --git a/sys-devel/base-gcc/files/gcc-configure-LANG.patch b/sys-devel/base-gcc/files/gcc-configure-LANG.patch
deleted file mode 100644
index d1b1b035..00000000
--- a/sys-devel/base-gcc/files/gcc-configure-LANG.patch
+++ /dev/null
@@ -1,64 +0,0 @@
-The LANG vars aren't reset early enough so when sed tries to use [a-zA-Z] in
-option parsing, it may break.
-
-http://bugs.gentoo.org/103483
-
---- configure
-+++ configure
-@@ -54,6 +54,19 @@
- infodir='${prefix}/info'
- mandir='${prefix}/man'
-
-+# NLS nuisances.
-+for as_var in \
-+ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
-+ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
-+ LC_TELEPHONE LC_TIME
-+do
-+ if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
-+ eval $as_var=C; export $as_var
-+ else
-+ unset $as_var
-+ fi
-+done
-+
- # Initialize some other variables.
- subdirs=
- MFLAGS= MAKEFLAGS=
-@@ -452,16 +463,6 @@
- esac
- done
-
--# NLS nuisances.
--# Only set these to C if already set. These must not be set unconditionally
--# because not all systems understand e.g. LANG=C (notably SCO).
--# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
--# Non-C LC_CTYPE values break the ctype check.
--if test "${LANG+set}" = set; then LANG=C; export LANG; fi
--if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
--if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
--if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
--
- # confdefs.h avoids OS command line length limits that DEFS can exceed.
- rm -rf conftest* confdefs.h
- # AIX cpp loses on an empty file, so make sure it contains at least a newline.
-@@ -1850,6 +1850,19 @@
- # Compiler output produced by configure, useful for debugging
- # configure, is in ./config.log if it exists.
-
-+# NLS nuisances.
-+for as_var in \
-+ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
-+ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
-+ LC_TELEPHONE LC_TIME
-+do
-+ if (set +x; test -z "`(eval \$as_var=C; export \$as_var) 2>&1`"); then
-+ eval \$as_var=C; export \$as_var
-+ else
-+ unset \$as_var
-+ fi
-+done
-+
- ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
- for ac_option
- do
diff --git a/sys-devel/base-gcc/files/gcc-configure-texinfo.patch b/sys-devel/base-gcc/files/gcc-configure-texinfo.patch
deleted file mode 100644
index ddc098dd..00000000
--- a/sys-devel/base-gcc/files/gcc-configure-texinfo.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-Chances are quite good that the installed makeinfo is sufficient.
-So ignore false positives where the makeinfo installed is so new
-that it violates the cheesy version grep.
-
-http://bugs.gentoo.org/198182
-
---- configure
-+++ configure
-@@ -3573,6 +3573,6 @@
- :
- else
-- MAKEINFO="$MISSING makeinfo"
-+ :
- fi
- ;;
-
diff --git a/sys-devel/base-gcc/files/gcc-spec-env-r1.patch b/sys-devel/base-gcc/files/gcc-spec-env-r1.patch
deleted file mode 100644
index a5892683..00000000
--- a/sys-devel/base-gcc/files/gcc-spec-env-r1.patch
+++ /dev/null
@@ -1,87 +0,0 @@
-2013-08-22 Magnus Granberg <zorry@gentoo.org>
-
- * gcc/gcc.c (main): Add support for external spec file via the GCC_SPECS env var
- and move the process of the user specifed specs.
-
- This allows us to easily control pie/ssp defaults with gcc-config profiles.
- Original patch by Rob Holland
- Extended to support multiple entries separated by ':' by Kevin F. Quinn
- Modified to use getenv instead of poisoned GET_ENVIRONMENT by Ryan Hill
- Modified to process the GCC_SPECS env var befor DRIVER_SELF_SPECS by Magnus Granberg
-
---- gcc-4.8-20130210/gcc/gcc.c 2013-02-05 16:55:31.000000000 +0100
-+++ gcc-4.8-20130210-work/gcc/gcc.c 2013-07-26 02:32:14.625089864 +0200
-@@ -6427,6 +6428,48 @@ main (int argc, char **argv)
- do_option_spec (option_default_specs[i].name,
- option_default_specs[i].spec);
-
-+#if !(defined (__MSDOS__) || defined (OS2) || defined (VMS) || defined (WIN32))
-+ /* Add specs listed in GCC_SPECS. Note; in the process of separating
-+ * each spec listed, the string is overwritten at token boundaries
-+ * (':') with '\0', an effect of strtok_r().
-+ */
-+ specs_file = getenv ("GCC_SPECS");
-+ if (specs_file && (strlen(specs_file) > 0))
-+ {
-+ char *spec, *saveptr;
-+ for (spec=strtok_r(specs_file,":",&saveptr);
-+ spec!=NULL;
-+ spec=strtok_r(NULL,":",&saveptr))
-+ {
-+ struct user_specs *user = (struct user_specs *)
-+ xmalloc (sizeof (struct user_specs));
-+ user->next = (struct user_specs *) 0;
-+ user->filename = spec;
-+ if (user_specs_tail)
-+ user_specs_tail->next = user;
-+ else
-+ user_specs_head = user;
-+ user_specs_tail = user;
-+ }
-+ }
-+#endif
-+ /* Process any user specified specs in the order given on the command
-+ * line. */
-+ for (uptr = user_specs_head; uptr; uptr = uptr->next)
-+ {
-+ char *filename = find_a_file (&startfile_prefixes, uptr->filename,
-+ R_OK, true);
-+ read_specs (filename ? filename : uptr->filename, false, true);
-+ }
-+ /* Process any user self specs. */
-+ {
-+ struct spec_list *sl;
-+ for (sl = specs; sl; sl = sl->next)
-+ if (sl->name_len == sizeof "self_spec" - 1
-+ && !strcmp (sl->name, "self_spec"))
-+ do_self_spec (*sl->ptr_spec);
-+ }
-+
- /* Process DRIVER_SELF_SPECS, adding any new options to the end
- of the command line. */
-
-@@ -6535,24 +6578,6 @@ main (int argc, char **argv)
- PREFIX_PRIORITY_LAST, 0, 1);
- }
-
-- /* Process any user specified specs in the order given on the command
-- line. */
-- for (uptr = user_specs_head; uptr; uptr = uptr->next)
-- {
-- char *filename = find_a_file (&startfile_prefixes, uptr->filename,
-- R_OK, true);
-- read_specs (filename ? filename : uptr->filename, false, true);
-- }
--
-- /* Process any user self specs. */
-- {
-- struct spec_list *sl;
-- for (sl = specs; sl; sl = sl->next)
-- if (sl->name_len == sizeof "self_spec" - 1
-- && !strcmp (sl->name, "self_spec"))
-- do_self_spec (*sl->ptr_spec);
-- }
--
- if (compare_debug)
- {
- enum save_temps save;
diff --git a/sys-devel/base-gcc/files/gcc-spec-env.patch b/sys-devel/base-gcc/files/gcc-spec-env.patch
deleted file mode 100644
index 57e7567e..00000000
--- a/sys-devel/base-gcc/files/gcc-spec-env.patch
+++ /dev/null
@@ -1,42 +0,0 @@
- Add support for external spec file via the GCC_SPECS env var. This
- allows us to easily control pie/ssp defaults with gcc-config profiles.
-
- Original patch by Rob Holland
- Extended to support multiple entries separated by ':' by Kevin F. Quinn
- Modified to use getenv instead of poisoned GET_ENVIRONMENT by Ryan Hill
-
---- gcc-4/gcc/gcc.c
-+++ gcc-4/gcc/gcc.c
-@@ -6482,6 +6482,32 @@
-
- /* Process any user specified specs in the order given on the command
- line. */
-+#if !(defined (__MSDOS__) || defined (OS2) || defined (VMS) || defined (WIN32))
-+ /* Add specs listed in GCC_SPECS. Note; in the process of separating
-+ * each spec listed, the string is overwritten at token boundaries
-+ * (':') with '\0', an effect of strtok_r().
-+ */
-+ specs_file = getenv ("GCC_SPECS");
-+ if (specs_file && (strlen(specs_file) > 0))
-+ {
-+ char *spec, *saveptr;
-+ for (spec=strtok_r(specs_file,":",&saveptr);
-+ spec!=NULL;
-+ spec=strtok_r(NULL,":",&saveptr))
-+ {
-+ struct user_specs *user = (struct user_specs *)
-+ xmalloc (sizeof (struct user_specs));
-+
-+ user->next = (struct user_specs *) 0;
-+ user->filename = spec;
-+ if (user_specs_tail)
-+ user_specs_tail->next = user;
-+ else
-+ user_specs_head = user;
-+ user_specs_tail = user;
-+ }
-+ }
-+#endif
- for (uptr = user_specs_head; uptr; uptr = uptr->next)
- {
- char *filename = find_a_file (&startfile_prefixes, uptr->filename,
diff --git a/sys-devel/base-gcc/files/mkinfodir b/sys-devel/base-gcc/files/mkinfodir
deleted file mode 100644
index a62840ee..00000000
--- a/sys-devel/base-gcc/files/mkinfodir
+++ /dev/null
@@ -1,233 +0,0 @@
-#!/bin/bash
-# $Id: mkinfodir,v 1.1 2001/09/01 07:56:19 drobbins Exp $
-# Generate the top-level Info node, given a directory of Info files
-# and (optionally) a skeleton file. The output will be suitable for a
-# top-level dir file. The skeleton file contains info topic names in the
-# order they should appear in the output. There are three special
-# lines that alter the behavior: a line consisting of just "--" causes
-# the next line to be echoed verbatim to the output. A line
-# containing just "%%" causes all the remaining filenames (wildcards
-# allowed) in the rest of the file to be ignored. A line containing
-# just "!!" exits the script when reached (unless preceded by a line
-# containing just "--"). Once the script reaches the end of the
-# skeleton file, it goes through the remaining files in the directory
-# in order, putting their entries at the end. The script will use the
-# ENTRY information in each info file if it exists. Otherwise it will
-# make a minimal entry.
-
-# sent by Jeffrey Osier <jeffrey@cygnus.com>, who thinks it came from
-# zoo@winternet.com (david d `zoo' zuhn)
-
-# modified 7 April 1995 by Joe Harrington <jh@tecate.gsfc.nasa.gov> to
-# take special flags
-
-INFODIR=$1
-if [ $# = 2 ] ; then
- SKELETON=$2
-else
- SKELETON=/dev/null
-fi
-
-skip=
-
-if [ $# -gt 2 ] ; then
- echo usage: $0 info-directory [ skeleton-file ] 1>&2
- exit 1
-elif [ -z "${INFODIR}" ] ; then
- INFODIR="%%DEFAULT_INFO_DIR%%"
-else
- true
-fi
-
-if [ ! -d ${INFODIR} ] ; then
- echo "$0: first argument must specify a directory"
- exit 1
-fi
-
-### output the dir header
-echo "-*- Text -*-"
-echo "This file was generated automatically by $0."
-echo "This version was generated on `date`"
-echo "by `whoami`@`hostname` for `(cd ${INFODIR}; pwd)`"
-
-cat << moobler
-\$Id: mkinfodir,v 1.1 2001/09/01 07:56:19 drobbins Exp $
-This is the file .../info/dir, which contains the topmost node of the
-Info hierarchy. The first time you invoke Info you start off
-looking at that node, which is (dir)Top.
-
-File: dir Node: Top This is the top of the INFO tree
-
- This (the Directory node) gives a menu of major topics.
- Typing "q" exits, "?" lists all Info commands, "d" returns here,
- "h" gives a primer for first-timers,
- "mEmacs<Return>" visits the Emacs topic, etc.
-
- In Emacs, you can click mouse button 2 on a menu item or cross reference
- to select it.
-
-* Menu: The list of major topics begins on the next line.
-
-moobler
-
-### go through the list of files in the skeleton. If an info file
-### exists, grab the ENTRY information from it. If an entry exists
-### use it, otherwise create a minimal dir entry.
-###
-### Then remove that file from the list of existing files. If any
-### additional files remain (ones that don't have a skeleton entry),
-### then generate entries for those in the same way, putting the info for
-### those at the end....
-
-infofiles=`(cd ${INFODIR}; /bin/ls | grep -v '\-[0-9]*\.gz$' | grep -v '\-[0-9]*$' | egrep -v '^dir$|^dir\.info$|^dir\.orig$')`
-
-# echoing gets clobbered by backquotes; we do it the hard way...
-lines=`wc $SKELETON | awk '{print $1}'`
-line=1
-while [ $lines -ge $line ] ; do
- # Read one line from the file. This is so that we can echo lines with
- # whitespace and quoted characters in them.
- fileline=`awk NR==$line $SKELETON`
-
- # flag fancy features
- if [ ! -z "$echoline" ] ; then # echo line
- echo "$fileline"
- fileline=
- echoline=
- elif [ "${fileline}" = "--" ] ; then # should we echo the next line?
- echoline=1
- elif [ "${fileline}" = "%%" ] ; then # eliminate remaining files from dir?
- skip=1
- elif [ "${fileline}" = "!!" ] ; then # quit now
- exit 0
- fi
-
- # handle files if they exist
- for file in $fileline"" ; do # expand wildcards ("" handles blank lines)
-
- fname=
-
- if [ -z "$echoline" -a ! -z "$file" ] ; then
-
- # Find the file to operate upon. Check both possible names.
- infoname=`echo $file | sed 's/\.gz$//'`
- infoname=`echo $infoname | sed 's/\.info$//'`
- noext=
- ext=
- if [ -f ${INFODIR}/$infoname ] ; then
- noext=$infoname
- fi
- if [ -f ${INFODIR}/${infoname}.info ] ; then
- ext=${infoname}.info
- fi
- if [ -f ${INFODIR}/${infoname}.info.gz ] ; then
- ext=${infoname}.info.gz
- fi
- # If it exists with both names take what was said in the file.
- if [ ! -z "$ext" -a ! -z "$noext" ]; then
- fname=$file
- warn="### Warning: $ext and $noext both exist! Using ${file}. ###"
- elif [ ! \( -z "$ext" -a -z "$noext" \) ]; then
- # just take the name if it exists only once
- fname=${noext}${ext}
- fi
-
- # if we found something and aren't skipping, do the entry
- if [ ! -z "$fname" ] ; then
- if [ -z "$skip" ] ; then
-
- if [ ! -z "$warn" ] ; then # issue any warning
- echo $warn
- warn=
- fi
- if [ "${fname##*.}" = "gz" ] ; then
- entry=`zcat ${INFODIR}/${fname} | sed -e '1,/START-INFO-DIR-ENTRY/d' \
- -e '/END-INFO-DIR-ENTRY/,$d' `
- else
- entry=`sed -e '1,/START-INFO-DIR-ENTRY/d' \
- -e '/END-INFO-DIR-ENTRY/,$d' ${INFODIR}/$fname`
- fi
- if [ ! -z "${entry}" ] ; then
- echo "${entry}"
- else
- echo "* ${infoname}: (${infoname})."
- fi
- fi
-
- # remove the name from the directory listing
- infofiles=`echo "" ${infofiles} "" | sed -e "s/ ${fname} / /" -e "s/ / /g"`
-
- fi
-
- fi
-
- done
-
- line=`expr $line + 1`
-done
-
-if [ -z "${infofiles}" ] ; then
- exit 0
-elif [ $lines -gt 0 ]; then
- echo
-fi
-
-# Sort remaining files by INFO-DIR-SECTION.
-prevsect=
-filesectdata=`(cd ${INFODIR}; fgrep INFO-DIR-SECTION /dev/null ${infofiles} | \
- fgrep -v 'INFO-DIR-SECTION Miscellaneous' | \
- sort -t: -k2 -k1 | tr ' ' '_')`
-for sectdata in ${filesectdata}; do
- file=`echo ${sectdata} | cut -d: -f1`
- section=`sed -n -e 's/^INFO-DIR-SECTION //p' ${INFODIR}/${file}`
- infofiles=`echo "" ${infofiles} "" | sed -e "s/ ${file} / /" -e "s/ / /g"`
-
- if [ "${prevsect}" != "${section}" ] ; then
- if [ ! -z "${prevsect}" ] ; then
- echo ""
- fi
- echo "${section}"
- prevsect="${section}"
- fi
- infoname=`echo $file | sed 's/\.gz$//'`
- infoname=`echo $infoname | sed 's/\.info$//'`
- if [ "${file##*.}" = "gz" ] ; then
- entry=`zcat ${INFODIR}/$file | sed -e '1,/START-INFO-DIR-ENTRY/d' \
- -e '/END-INFO-DIR-ENTRY/,$d' `
- else
- entry=`sed -e '1,/START-INFO-DIR-ENTRY/d' \
- -e '/END-INFO-DIR-ENTRY/,$d' ${INFODIR}/$file`
- fi
- if [ ! -z "${entry}" ] ; then
- echo "${entry}"
- elif [ ! -d "${INFODIR}/${file}" ] ; then
- echo "* ${infoname}: (${infoname})."
- fi
-done
-
-# Process miscellaneous files.
-for file in ${infofiles}; do
- if [ ! -z "${prevsect}" ] ; then
- echo ""
- echo "Miscellaneous"
- prevsect=""
- fi
-
- infoname=`echo $file | sed 's/\.gz$//'`
- infoname=`echo $infoname | sed 's/\.info$//'`
- if [ "${file##*.}" = "gz" ] ; then
- entry=`zcat ${INFODIR}/${file} | sed -e '1,/START-INFO-DIR-ENTRY/d' \
- -e '/END-INFO-DIR-ENTRY/,$d'`
- else
- entry=`sed -e '1,/START-INFO-DIR-ENTRY/d' \
- -e '/END-INFO-DIR-ENTRY/,$d' ${INFODIR}/$file`
- fi
-
-
- if [ ! -z "${entry}" ] ; then
- echo "${entry}"
- elif [ ! -d "${INFODIR}/${file}" ] ; then
- echo "* ${infoname}: (${infoname})."
- fi
-done
-
diff --git a/sys-devel/base-gcc/files/pro-police-docs.patch b/sys-devel/base-gcc/files/pro-police-docs.patch
deleted file mode 100644
index 091ea44e..00000000
--- a/sys-devel/base-gcc/files/pro-police-docs.patch
+++ /dev/null
@@ -1,74 +0,0 @@
-Index: gcc/doc/invoke.texi
-===================================================================
-RCS file: /cvsroot/gcc/gcc/gcc/doc/invoke.texi,v
-retrieving revision 1.364
-diff -c -3 -p -r1.364 invoke.texi
-*** gcc/doc/invoke.texi 21 Nov 2003 11:42:58 -0000 1.364
---- gcc/doc/invoke.texi 22 Nov 2003 08:12:35 -0000
-*************** in the following sections.
-*** 228,234 ****
- -Wno-multichar -Wnonnull -Wpacked -Wpadded @gol
- -Wparentheses -Wpointer-arith -Wredundant-decls @gol
- -Wreturn-type -Wsequence-point -Wshadow @gol
-! -Wsign-compare -Wstrict-aliasing @gol
- -Wswitch -Wswitch-default -Wswitch-enum @gol
- -Wsystem-headers -Wtrigraphs -Wundef -Wuninitialized @gol
- -Wunknown-pragmas -Wunreachable-code @gol
---- 228,234 ----
- -Wno-multichar -Wnonnull -Wpacked -Wpadded @gol
- -Wparentheses -Wpointer-arith -Wredundant-decls @gol
- -Wreturn-type -Wsequence-point -Wshadow @gol
-! -Wsign-compare -Wstack-protector -Wstrict-aliasing @gol
- -Wswitch -Wswitch-default -Wswitch-enum @gol
- -Wsystem-headers -Wtrigraphs -Wundef -Wuninitialized @gol
- -Wunknown-pragmas -Wunreachable-code @gol
-*************** in the following sections.
-*** 681,686 ****
---- 681,687 ----
- -fshort-double -fshort-wchar @gol
- -fverbose-asm -fpack-struct -fstack-check @gol
- -fstack-limit-register=@var{reg} -fstack-limit-symbol=@var{sym} @gol
-+ -fstack-protector -fstack-protector-all @gol
- -fargument-alias -fargument-noalias @gol
- -fargument-noalias-global -fleading-underscore @gol
- -ftls-model=@var{model} @gol
-*************** effectively. Often, the problem is that
-*** 3014,3019 ****
---- 3015,3024 ----
- complex; GCC will refuse to optimize programs when the optimization
- itself is likely to take inordinate amounts of time.
-
-+ @item -Wstack-protector
-+ @opindex Wstack-protector
-+ Warn when not issuing stack smashing protection for some reason
-+
- @item -Werror
- @opindex Werror
- Make all warnings into errors.
-*************** and grows downwards, you can use the fla
-*** 11474,11479 ****
---- 11479,11502 ----
- @option{-fstack-limit-symbol=__stack_limit} and
- @option{-Wl,--defsym,__stack_limit=0x7ffe0000} to enforce a stack limit
- of 128KB@. Note that this may only work with the GNU linker.
-+
-+ @item -fstack-protector
-+ @item -fstack-protector-all
-+ @opindex fstack-protector
-+ @opindex fstack-protector-all
-+ @opindex fno-stack-protector
-+ Generate code to protect an application from a stack smashing
-+ attack. The features are (1) the insertion of random value next to the
-+ frame pointer to detect the integrity of the stack, (2) the reordering
-+ of local variables to place buffers after pointers to avoid the
-+ corruption of pointers that could be used to further corrupt arbitrary
-+ memory locations, (3) the copying of pointers in function arguments to
-+ an area preceding local variable buffers to prevent the corruption of
-+ pointers that could be used to further corrupt arbitrary memory
-+ locations, and the (4) omission of instrumentation code from some
-+ functions to decrease the performance overhead. If the integrity
-+ would be broken, the program is aborted. If no-stack-protector is
-+ specified, instrumentation codes are generated at every functions.
-
- @cindex aliasing of parameters
- @cindex parameters, aliased
diff --git a/sys-devel/base-gcc/metadata.xml b/sys-devel/base-gcc/metadata.xml
deleted file mode 100644
index 8bf5cdbc..00000000
--- a/sys-devel/base-gcc/metadata.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <herd>no-herd</herd>
- <use>
- <flag name="d">Enable support for the D programming language</flag>
- <flag name="fixed-point">Enable fixed-point arithmetic support for MIPS targets
- in gcc (Warning: significantly increases compile time!)</flag>
- <flag name="go">Build the GCC Go language frontend.</flag>
- <flag name="graphite">Add support for the framework for loop
- optimizations based on a polyhedral intermediate representation</flag>
- <flag name="ip28">Enable building a compiler capable of building a kernel
- for SGI Indigo2 Impact R10000 (IP28)</flag>
- <flag name="ip32r10k">Enable building a compiler capable of building an
- experimental kernel for SGI O2 w/ R1x000 CPUs (IP32)</flag>
- <flag name="libffi">Build the portable foreign function interface library</flag>
- <flag name="lto">Add support for link-time optimizations (unsupported, use
- at your own risk).</flag>
- <flag name="mudflap">Add support for mudflap, a pointer use checking library</flag>
- <flag name="multislot">Allow for SLOTs to include minor version (3.3.4
- instead of just 3.3)</flag>
- <flag name="n32">Enable n32 ABI support on mips</flag>
- <flag name="n64">Enable n64 ABI support on mips</flag>
- <flag name="nopie">Disable PIE support (NOT FOR GENERAL USE)</flag>
- <flag name="nossp">Disable SSP support (NOT FOR GENERAL USE)</flag>
- <flag name="objc">Build support for the Objective C code language</flag>
- <flag name="objc++">Build support for the Objective C++ language</flag>
- <flag name="objc-gc">Build support for the Objective C code language Garbage
- Collector</flag>
- </use>
-</pkgmetadata>
diff --git a/sys-devel/gcc/gcc-4.5.3-r2.ebuild b/sys-devel/gcc/gcc-4.5.3-r2.ebuild
deleted file mode 100644
index bc161c3c..00000000
--- a/sys-devel/gcc/gcc-4.5.3-r2.ebuild
+++ /dev/null
@@ -1,113 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=2
-PATCH_VER="1.1"
-UCLIBC_VER="1.0"
-
-# Hardened gcc 4 stuff
-PIE_VER="0.4.7"
-SPECS_VER="0.2.0"
-SPECS_GCC_VER="4.4.3"
-# arch/libc configurations known to be stable with {PIE,SSP}-by-default
-PIE_GLIBC_STABLE="x86 amd64 ppc ppc64 arm ia64"
-PIE_UCLIBC_STABLE="x86 arm amd64 ppc ppc64"
-SSP_STABLE="amd64 x86 ppc ppc64 arm"
-# uclibc need tls and nptl support for SSP support
-SSP_UCLIBC_STABLE=""
-#end Hardened stuff
-
-inherit toolchain
-
-DESCRIPTION="The GNU Compiler Collection"
-
-LICENSE="GPL-3 LGPL-3 || ( GPL-3 libgcc libstdc++ gcc-runtime-library-exception-3.1 ) FDL-1.2"
-KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
-
-RDEPEND="~sys-devel/base-gcc-${PV}
- !build? (
- gcj? (
- gtk? (
- x11-libs/libXt
- x11-libs/libX11
- x11-libs/libXtst
- x11-proto/xproto
- x11-proto/xextproto
- =x11-libs/gtk+-2*
- x11-libs/pango
- )
- >=media-libs/libart_lgpl-2.1
- app-arch/zip
- app-arch/unzip
- )
- )"
-
-## Make sure we share all the USE flags in sys-devel/base-gcc
-BASE_GCC_USE="fortran gcj gtk mudflap multilib nls nptl openmp altivec
- bootstrap build doc fixed-point graphite hardened lto
- multislot nocxx nopie nossp objc objc++ objc-gc test vanilla"
-for base_use in ${BASE_GCC_USE}; do
- RDEPEND+=" ~sys-devel/base-gcc-${PV}[${base_use}?]"
-done
-IUSE="${BASE_GCC_USE}"
-
-DEPEND="${RDEPEND}
- amd64? ( multilib? ( gcj? ( app-emulation/emul-linux-x86-xlibs ) ) )"
-## Should this be moved to base-gcc?
-## I guess the cross-* thing is now utterly broken
-if [[ ${CATEGORY} != cross-* ]] ; then
- PDEPEND="${PDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.8 )"
-fi
-
-## No changes
-src_unpack() {
- toolchain_src_unpack
-
- use vanilla && return 0
-
- sed -i 's/use_fixproto=yes/:/' gcc/config.gcc #PR33200
-
- [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch
-}
-
-## Remove lto conditional
-pkg_setup() {
- toolchain_pkg_setup
-}
-
-## Just install libgcc stuff
-src_install() {
- toolchain_src_install
-
- # now drop what's provided by sys-devel/base-gcc-${PV}:${SLOT}
- base_gcc_libs="libgfortran.so* libgcc_s.so* libobjc.so*
- libobjc_gc.so* libmudflap.so* libmudflapth.so* libgomp.so* libstdc++.so*"
- base_multilib_gcc_libs="32/libgfortran.so* 32/libobjc.so* 32/libobjc_gc.so*
- 32/libgcc_s.so* 32/libgomp.so* 32/libmudflap.so*
- 32/libmudflapth.so* 32/libstdc++.so*"
- for gcc_lib in ${base_gcc_libs}; do
- # -f is used because the file might not be there
- rm "${D}"${LIBPATH}/${gcc_lib} -rf || die "cannot execute rm on ${gcc_lib}"
- debug_dir="${D}"/usr/lib/debug
- if [ -d "${debug_dir}" ]; then
- rm "${debug_dir}"${LIBPATH}/${gcc_lib}.debug -rf || die "cannot execute rm on ${gcc_lib}.debug"
- fi
- done
- if use multilib; then
- for gcc_lib in ${base_multilib_gcc_libs}; do
- # -f is used because the file might not be there
- rm "${D}"${LIBPATH}/${gcc_lib} -rf || die "cannot execute rm on ${gcc_lib}"
- debug_dir="${D}"/usr/lib/debug
- if [ -d "${debug_dir}" ]; then
- rm "${debug_dir}"${LIBPATH}/${gcc_lib}.debug -rf || die "cannot execute rm on ${gcc_lib}.debug"
- fi
- done
- fi
- # then .mo files provided by sys-devel/base-gcc-${PV}:${SLOT}
- find "${D}"${DATAPATH}/locale -name libstdc++.mo -delete
- find "${D}"${DATAPATH}/info -name libgomp.info* -delete
-
- # drop stuff from env.d, provided by sys-devel/base-gcc-${PV}:${SLOT}
- rm "${D}"/etc/env.d -rf
-}
diff --git a/sys-devel/gcc/gcc-4.6.2.ebuild b/sys-devel/gcc/gcc-4.6.2.ebuild
deleted file mode 100644
index f3369dbb..00000000
--- a/sys-devel/gcc/gcc-4.6.2.ebuild
+++ /dev/null
@@ -1,132 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=2
-PATCH_VER="1.0"
-UCLIBC_VER="1.0"
-
-# Hardened gcc 4 stuff
-PIE_VER="0.4.5"
-SPECS_VER="0.2.0"
-SPECS_GCC_VER="4.4.3"
-# arch/libc configurations known to be stable with {PIE,SSP}-by-default
-PIE_GLIBC_STABLE="x86 amd64 ppc ppc64 arm ia64"
-PIE_UCLIBC_STABLE="x86 arm amd64 ppc ppc64"
-SSP_STABLE="amd64 x86 ppc ppc64 arm"
-# uclibc need tls and nptl support for SSP support
-SSP_UCLIBC_STABLE=""
-#end Hardened stuff
-
-inherit toolchain
-
-DESCRIPTION="The GNU Compiler Collection"
-
-LICENSE="GPL-3 LGPL-3 || ( GPL-3 libgcc libstdc++ gcc-runtime-library-exception-3.1 ) FDL-1.2"
-KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
-
-RDEPEND="~sys-devel/base-gcc-${PV}
- !build? (
- gcj? (
- gtk? (
- x11-libs/libXt
- x11-libs/libX11
- x11-libs/libXtst
- x11-proto/xproto
- x11-proto/xextproto
- =x11-libs/gtk+-2*
- x11-libs/pango
- )
- >=media-libs/libart_lgpl-2.1
- app-arch/zip
- app-arch/unzip
- )
- )"
-
-## Make sure we share all the USE flags in sys-devel/base-gcc
-BASE_GCC_USE="fortran gcj gtk mudflap multilib nls nptl openmp altivec
- bootstrap build doc fixed-point go graphite hardened
- multislot cxx nopie nossp objc objc++ objc-gc test vanilla"
-for base_use in ${BASE_GCC_USE}; do
- RDEPEND+=" ~sys-devel/base-gcc-${PV}[${base_use}?]"
-done
-IUSE="${BASE_GCC_USE}"
-
-DEPEND="${RDEPEND}
- amd64? ( multilib? ( gcj? ( app-emulation/emul-linux-x86-xlibs ) ) )"
-## Should this be moved to base-gcc?
-## I guess the cross-* thing is now utterly broken
-if [[ ${CATEGORY} != cross-* ]] ; then
- PDEPEND="${PDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.8 )"
-fi
-
-## No changes
-src_unpack() {
- if has_version '<sys-libs/glibc-2.12' ; then
- ewarn "Your host glibc is too old; disabling automatic fortify."
- ewarn "Please rebuild gcc after upgrading to >=glibc-2.12 #362315"
- EPATCH_EXCLUDE+=" 10_all_default-fortify-source.patch"
- fi
-
- # drop the x32 stuff once 4.7 goes stable
- case ${CHOST} in
- x86_64*) has x32 $(get_all_abis) || EPATCH_EXCLUDE+=" 80_all_gcc-4.6-x32.patch" ;;
- esac
-
- toolchain_src_unpack
-
- use vanilla && return 0
-
- [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch
-
- # Fix http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47719
- epatch "${FILESDIR}/${P}-fix-ICE-on-arm.patch"
-}
-
-## Remove lto conditional
-pkg_setup() {
- toolchain_pkg_setup
-
- ewarn
- ewarn "LTO support is still experimental and unstable."
- ewarn "Any bugs resulting from the use of LTO will not be fixed."
- ewarn
-}
-
-## Just install libgcc stuff
-src_install() {
- toolchain_src_install
-
- # now drop what's provided by sys-devel/base-gcc-${PV}:${SLOT}
- base_gcc_libs="libgfortran.so* libgcc_s.so* libobjc.so*
- libobjc_gc.so* libmudflap.so* libmudflapth.so* libgomp.so* libstdc++.so*
- libquadmath.so*"
- base_multilib_gcc_libs="32/libgfortran.so* 32/libobjc.so* 32/libobjc_gc.so*
- 32/libgcc_s.so* 32/libgomp.so* 32/libmudflap.so*
- 32/libmudflapth.so* 32/libstdc++.so* 32/libquadmath.so*"
- for gcc_lib in ${base_gcc_libs}; do
- # -f is used because the file might not be there
- rm "${D}"${LIBPATH}/${gcc_lib} -rf || die "cannot execute rm on ${gcc_lib}"
- debug_dir="${D}"/usr/lib/debug
- if [ -d "${debug_dir}" ]; then
- rm "${debug_dir}"${LIBPATH}/${gcc_lib}.debug -rf || die "cannot execute rm on ${gcc_lib}.debug"
- fi
- done
- if use multilib; then
- for gcc_lib in ${base_multilib_gcc_libs}; do
- # -f is used because the file might not be there
- rm "${D}"${LIBPATH}/${gcc_lib} -rf || die "cannot execute rm on ${gcc_lib}"
- debug_dir="${D}"/usr/lib/debug
- if [ -d "${debug_dir}" ]; then
- rm "${debug_dir}"${LIBPATH}/${gcc_lib}.debug -rf || die "cannot execute rm on ${gcc_lib}.debug"
- fi
- done
- fi
- # then .mo files provided by sys-devel/base-gcc-${PV}:${SLOT}
- find "${D}"${DATAPATH}/locale -name libstdc++.mo -delete
- find "${D}"${DATAPATH}/info -name libgomp.info* -delete
- find "${D}"${DATAPATH}/info -name libquadmath.info* -delete
-
- # drop stuff from env.d, provided by sys-devel/base-gcc-${PV}:${SLOT}
- rm "${D}"/etc/env.d -rf
-}
diff --git a/sys-devel/gcc/gcc-4.6.3.ebuild b/sys-devel/gcc/gcc-4.6.3.ebuild
deleted file mode 100644
index 79d59c40..00000000
--- a/sys-devel/gcc/gcc-4.6.3.ebuild
+++ /dev/null
@@ -1,159 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=2
-PATCH_VER="1.3"
-UCLIBC_VER="1.0"
-
-# Hardened gcc 4 stuff
-PIE_VER="0.5.2"
-SPECS_VER="0.2.0"
-SPECS_GCC_VER="4.4.3"
-# arch/libc configurations known to be stable with {PIE,SSP}-by-default
-PIE_GLIBC_STABLE="x86 amd64 mips ppc ppc64 arm ia64"
-PIE_UCLIBC_STABLE="x86 arm amd64 ppc ppc64"
-SSP_STABLE="amd64 x86 mips ppc ppc64 arm"
-# uclibc need tls and nptl support for SSP support
-# uclibc need to be >= 0.9.32
-SSP_UCLIBC_STABLE="x86 amd64 ppc ppc64 arm"
-#end Hardened stuff
-
-inherit toolchain
-
-DESCRIPTION="The GNU Compiler Collection"
-
-LICENSE="GPL-3 LGPL-3 || ( GPL-3 libgcc libstdc++ gcc-runtime-library-exception-3.1 ) FDL-1.2"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
-
-RDEPEND="~sys-devel/base-gcc-${PV}
- !build? (
- gcj? (
- gtk? (
- x11-libs/libXt
- x11-libs/libX11
- x11-libs/libXtst
- x11-proto/xproto
- x11-proto/xextproto
- =x11-libs/gtk+-2*
- x11-libs/pango
- )
- >=media-libs/libart_lgpl-2.1
- app-arch/zip
- app-arch/unzip
- )
- )"
-
-## Make sure we share all the USE flags in sys-devel/base-gcc
-BASE_GCC_USE="fortran gcj gtk mudflap multilib nls nptl openmp altivec
- bootstrap build doc fixed-point go graphite hardened
- multislot cxx nopie nossp objc objc++ objc-gc test vanilla"
-for base_use in ${BASE_GCC_USE}; do
- RDEPEND+=" ~sys-devel/base-gcc-${PV}[${base_use}?]"
-done
-IUSE="${BASE_GCC_USE}"
-
-DEPEND="${RDEPEND}
- amd64? ( multilib? ( gcj? ( app-emulation/emul-linux-x86-xlibs ) ) )"
-## Should this be moved to base-gcc?
-## I guess the cross-* thing is now utterly broken
-if [[ ${CATEGORY} != cross-* ]] ; then
- PDEPEND="${PDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.8 )"
-fi
-
-## Check for valid gcc profile.
-src_unpack() {
- # Since Sabayon's gcc ebuild are split into two parts, we have to
- # build gcc with a different version of gcc, or terrible breakage
- # will occur after sys-devel/base-gcc is installed, but the
- # partner sys-devel/gcc still needs to be built.
-
- # While it is possible to rebuild Sabayon's split gcc from
- # the same version, we have to disallow this also since
- # we have no way of discerning if a configuration change
- # is significant enough to cause breakage.
-
- GCC_PROFILE_VER=$(cat ${ROOT}/etc/env.d/gcc/config-$CHOST | awk -F- '{ print $NF }')
- einfo "Checking for valid gcc profile to build ${P}"
-
- # Construct the Slot of the gcc version in the active profile.
- GCC_PROFILE_SLOT_MAJOR=$(echo ${GCC_PROFILE_VER} | awk -F. '{ print $1 }')
- GCC_PROFILE_SLOT_MINOR=$(echo ${GCC_PROFILE_VER} | awk -F. '{ print $2 }')
- GCC_PROFILE_SLOT="${GCC_PROFILE_SLOT_MAJOR}.${GCC_PROFILE_SLOT_MINOR}"
- einfo "Current gcc profile version Slot is: ${GCC_PROFILE_SLOT}"
- if [[ "${GCC_PROFILE_SLOT}" = "${SLOT}" ]] ; then
- eerror "Error!"
- eerror "The active gcc-profile is for sys-devel/gcc slot ${SLOT}."
- eerror "Sabayon's split sys-devel/gcc package MUST be built"
- eerror "with another slotted version of sys-devel/gcc active."
- die "Invalid gcc profile selected!"
- fi
-
- if has_version '<sys-libs/glibc-2.12' ; then
- ewarn "Your host glibc is too old; disabling automatic fortify."
- ewarn "Please rebuild gcc after upgrading to >=glibc-2.12 #362315"
- EPATCH_EXCLUDE+=" 10_all_default-fortify-source.patch"
- fi
-
- # drop the x32 stuff once 4.7 goes stable
- case ${CHOST} in
- x86_64*) has x32 $(get_all_abis) || EPATCH_EXCLUDE+=" 80_all_gcc-4.6-x32.patch" ;;
- esac
-
- toolchain_src_unpack
-
- use vanilla && return 0
-
- [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch
-
- # Fix http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47719
- epatch "${FILESDIR}/${PN}-4.6.2-fix-ICE-on-arm.patch"
-}
-
-## Remove lto conditional
-pkg_setup() {
- toolchain_pkg_setup
-
- ewarn
- ewarn "LTO support is still experimental and unstable."
- ewarn "Any bugs resulting from the use of LTO will not be fixed."
- ewarn
-}
-
-## Just install libgcc stuff
-src_install() {
- toolchain_src_install
-
- # now drop what's provided by sys-devel/base-gcc-${PV}:${SLOT}
- base_gcc_libs="libgfortran.so* libgcc_s.so* libobjc.so*
- libobjc_gc.so* libmudflap.so* libmudflapth.so* libgomp.so* libstdc++.so*
- libquadmath.so*"
- base_multilib_gcc_libs="32/libgfortran.so* 32/libobjc.so* 32/libobjc_gc.so*
- 32/libgcc_s.so* 32/libgomp.so* 32/libmudflap.so*
- 32/libmudflapth.so* 32/libstdc++.so* 32/libquadmath.so*"
- for gcc_lib in ${base_gcc_libs}; do
- # -f is used because the file might not be there
- rm "${D}"${LIBPATH}/${gcc_lib} -rf || die "cannot execute rm on ${gcc_lib}"
- debug_dir="${D}"/usr/lib/debug
- if [ -d "${debug_dir}" ]; then
- rm "${debug_dir}"${LIBPATH}/${gcc_lib}.debug -rf || die "cannot execute rm on ${gcc_lib}.debug"
- fi
- done
- if use multilib; then
- for gcc_lib in ${base_multilib_gcc_libs}; do
- # -f is used because the file might not be there
- rm "${D}"${LIBPATH}/${gcc_lib} -rf || die "cannot execute rm on ${gcc_lib}"
- debug_dir="${D}"/usr/lib/debug
- if [ -d "${debug_dir}" ]; then
- rm "${debug_dir}"${LIBPATH}/${gcc_lib}.debug -rf || die "cannot execute rm on ${gcc_lib}.debug"
- fi
- done
- fi
- # then .mo files provided by sys-devel/base-gcc-${PV}:${SLOT}
- find "${D}"${DATAPATH}/locale -name libstdc++.mo -delete
- find "${D}"${DATAPATH}/info -name libgomp.info* -delete
- find "${D}"${DATAPATH}/info -name libquadmath.info* -delete
-
- # drop stuff from env.d, provided by sys-devel/base-gcc-${PV}:${SLOT}
- rm "${D}"/etc/env.d -rf
-}
diff --git a/sys-devel/gcc/gcc-4.7.3.ebuild b/sys-devel/gcc/gcc-4.7.3.ebuild
deleted file mode 100644
index 9d4e8539..00000000
--- a/sys-devel/gcc/gcc-4.7.3.ebuild
+++ /dev/null
@@ -1,164 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=2
-PATCH_VER="1.0"
-UCLIBC_VER="1.0"
-
-# Hardened gcc 4 stuff
-PIE_VER="0.5.5"
-SPECS_VER="0.2.0"
-SPECS_GCC_VER="4.4.3"
-# arch/libc configurations known to be stable with {PIE,SSP}-by-default
-PIE_GLIBC_STABLE="x86 amd64 ppc ppc64 arm ia64"
-PIE_UCLIBC_STABLE="x86 arm amd64 ppc ppc64"
-SSP_STABLE="amd64 x86 ppc ppc64 arm"
-# uclibc need tls and nptl support for SSP support
-# uclibc need to be >= 0.9.33
-SSP_UCLIBC_STABLE="x86 amd64 ppc ppc64 arm"
-#end Hardened stuff
-
-inherit toolchain
-
-DESCRIPTION="The GNU Compiler Collection"
-
-LICENSE="GPL-3 LGPL-3 || ( GPL-3 libgcc libstdc++ gcc-runtime-library-exception-3.1 ) FDL-1.2"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
-
-RDEPEND="~sys-devel/base-gcc-${PV}
- !build? (
- gcj? (
- gtk? (
- x11-libs/libXt
- x11-libs/libX11
- x11-libs/libXtst
- x11-proto/xproto
- x11-proto/xextproto
- =x11-libs/gtk+-2*
- x11-libs/pango
- )
- >=media-libs/libart_lgpl-2.1
- app-arch/zip
- app-arch/unzip
- )
- )"
-
-## Make sure we share all the USE flags in sys-devel/base-gcc
-BASE_GCC_USE="fortran gcj gtk mudflap multilib nls nptl openmp altivec
- bootstrap build doc fixed-point graphite hardened
- multislot cxx nopie nossp objc objc++ objc-gc test vanilla"
-for base_use in ${BASE_GCC_USE}; do
- RDEPEND+=" ~sys-devel/base-gcc-${PV}[${base_use}?]"
-done
-IUSE="${BASE_GCC_USE}"
-
-DEPEND="${RDEPEND}
- amd64? ( multilib? ( gcj? ( app-emulation/emul-linux-x86-xlibs ) ) )"
-## Should this be moved to base-gcc?
-## I guess the cross-* thing is now utterly broken
-if [[ ${CATEGORY} != cross-* ]] ; then
- PDEPEND="${PDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.8 )"
-fi
-
-## Check for valid gcc profile.
-src_unpack() {
- # Since Sabayon's gcc ebuild are split into two parts, we have to
- # build gcc with a different version of gcc, or terrible breakage
- # will occur after sys-devel/base-gcc is installed, but the
- # partner sys-devel/gcc still needs to be built.
-
- # While it is possible to rebuild Sabayon's split gcc from
- # the same version, we have to disallow this also since
- # we have no way of discerning if a configuration change
- # is significant enough to cause breakage.
-
- GCC_PROFILE_VER=$(cat ${ROOT}/etc/env.d/gcc/config-$CHOST | awk -F- '{ print $NF }')
- einfo "Checking for valid gcc profile to build ${P}"
-
- # Construct the Slot of the gcc version in the active profile.
- GCC_PROFILE_SLOT_MAJOR=$(echo ${GCC_PROFILE_VER} | awk -F. '{ print $1 }')
- GCC_PROFILE_SLOT_MINOR=$(echo ${GCC_PROFILE_VER} | awk -F. '{ print $2 }')
- GCC_PROFILE_SLOT="${GCC_PROFILE_SLOT_MAJOR}.${GCC_PROFILE_SLOT_MINOR}"
- einfo "Current gcc profile version Slot is: ${GCC_PROFILE_SLOT}"
- if [[ "${GCC_PROFILE_SLOT}" = "${SLOT}" ]] ; then
- eerror "Error!"
- eerror "The active gcc-profile is for sys-devel/gcc slot ${SLOT}."
- eerror "Sabayon's split sys-devel/gcc package MUST be built"
- eerror "with another slotted version of sys-devel/gcc active."
- ebeep 10
- fi
-
- if has_version '<sys-libs/glibc-2.12' ; then
- ewarn "Your host glibc is too old; disabling automatic fortify."
- ewarn "Please rebuild gcc after upgrading to >=glibc-2.12 #362315"
- EPATCH_EXCLUDE+=" 10_all_default-fortify-source.patch"
- fi
-
- # drop the x32 stuff once 4.7 goes stable
- case ${CHOST} in
- x86_64*) has x32 $(get_all_abis) || EPATCH_EXCLUDE+=" 80_all_gcc-4.6-x32.patch" ;;
- esac
-
- # drop the x32 stuff once 4.7 goes stable
- if [[ ${CTARGET} != x86_64* ]] || ! has x32 $(get_all_abis TARGET) ; then
- EPATCH_EXCLUDE+=" 90_all_gcc-4.7-x32.patch"
- fi
-
- toolchain_src_unpack
-
- use vanilla && return 0
-
- [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch
-
- # Fix http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47719
- epatch "${FILESDIR}/${PN}-4.6.2-fix-ICE-on-arm.patch"
-}
-
-## Remove lto conditional
-pkg_setup() {
- toolchain_pkg_setup
-
- ewarn
- ewarn "LTO support is still experimental and unstable."
- ewarn "Any bugs resulting from the use of LTO will not be fixed."
- ewarn
-}
-
-## Just install libgcc stuff
-src_install() {
- toolchain_src_install
-
- # now drop what's provided by sys-devel/base-gcc-${PV}:${SLOT}
- base_gcc_libs="libgfortran.so* libgcc_s.so* libobjc.so*
- libobjc_gc.so* libmudflap.so* libmudflapth.so* libgomp.so* libstdc++.so*
- libquadmath.so*"
- base_multilib_gcc_libs="32/libgfortran.so* 32/libobjc.so* 32/libobjc_gc.so*
- 32/libgcc_s.so* 32/libgomp.so* 32/libmudflap.so*
- 32/libmudflapth.so* 32/libstdc++.so* 32/libquadmath.so*"
- for gcc_lib in ${base_gcc_libs}; do
- # -f is used because the file might not be there
- rm "${D}"${LIBPATH}/${gcc_lib} -rf || die "cannot execute rm on ${gcc_lib}"
- debug_dir="${D}"/usr/lib/debug
- if [ -d "${debug_dir}" ]; then
- rm "${debug_dir}"${LIBPATH}/${gcc_lib}.debug -rf || die "cannot execute rm on ${gcc_lib}.debug"
- fi
- done
- if use multilib; then
- for gcc_lib in ${base_multilib_gcc_libs}; do
- # -f is used because the file might not be there
- rm "${D}"${LIBPATH}/${gcc_lib} -rf || die "cannot execute rm on ${gcc_lib}"
- debug_dir="${D}"/usr/lib/debug
- if [ -d "${debug_dir}" ]; then
- rm "${debug_dir}"${LIBPATH}/${gcc_lib}.debug -rf || die "cannot execute rm on ${gcc_lib}.debug"
- fi
- done
- fi
- # then .mo files provided by sys-devel/base-gcc-${PV}:${SLOT}
- find "${D}"${DATAPATH}/locale -name libstdc++.mo -delete
- find "${D}"${DATAPATH}/info -name libgomp.info* -delete
- find "${D}"${DATAPATH}/info -name libquadmath.info* -delete
-
- # drop stuff from env.d, provided by sys-devel/base-gcc-${PV}:${SLOT}
- rm "${D}"/etc/env.d -rf
-}