From de49812990871e1705b64051c35161d5e6400269 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 24 Dec 2018 14:11:38 +0000 Subject: gentoo resync : 24.12.2018 --- sys-devel/binutils-apple/Manifest | 35 +- sys-devel/binutils-apple/binutils-apple-3.2.ebuild | 9 +- .../binutils-apple/binutils-apple-6.3-r1.ebuild | 378 -------------------- .../binutils-apple/binutils-apple-6.3-r2.ebuild | 386 +++++++++++++++++++++ .../binutils-apple/binutils-apple-7.0-r1.ebuild | 6 +- sys-devel/binutils-apple/binutils-apple-7.0.ebuild | 366 ------------------- .../binutils-apple/binutils-apple-7.1-r1.ebuild | 6 +- sys-devel/binutils-apple/binutils-apple-7.1.ebuild | 366 ------------------- .../binutils-apple/binutils-apple-7.2-r1.ebuild | 8 +- sys-devel/binutils-apple/binutils-apple-7.2.ebuild | 366 ------------------- .../binutils-apple/binutils-apple-7.3.1.ebuild | 12 +- sys-devel/binutils-apple/binutils-apple-7.3.ebuild | 386 --------------------- sys-devel/binutils-apple/binutils-apple-8.1.ebuild | 8 +- .../binutils-apple/binutils-apple-8.2.1-r1.ebuild | 4 +- .../binutils-apple/binutils-apple-8.2.1.ebuild | 334 ------------------ 15 files changed, 428 insertions(+), 2242 deletions(-) delete mode 100644 sys-devel/binutils-apple/binutils-apple-6.3-r1.ebuild create mode 100644 sys-devel/binutils-apple/binutils-apple-6.3-r2.ebuild delete mode 100644 sys-devel/binutils-apple/binutils-apple-7.0.ebuild delete mode 100644 sys-devel/binutils-apple/binutils-apple-7.1.ebuild delete mode 100644 sys-devel/binutils-apple/binutils-apple-7.2.ebuild delete mode 100644 sys-devel/binutils-apple/binutils-apple-7.3.ebuild delete mode 100644 sys-devel/binutils-apple/binutils-apple-8.2.1.ebuild (limited to 'sys-devel/binutils-apple') diff --git a/sys-devel/binutils-apple/Manifest b/sys-devel/binutils-apple/Manifest index 0aad57f63ae4..5734313cf205 100644 --- a/sys-devel/binutils-apple/Manifest +++ b/sys-devel/binutils-apple/Manifest @@ -3,15 +3,12 @@ DIST binutils-apple-patches-3.2-r0.tar.bz2 4137 BLAKE2B 9cd7afbba5337cb9c395556b DIST binutils-apple-patches-4.3-r1.tar.bz2 37363 BLAKE2B a5ad04d4bf746a864f03a25d052197ed9a6ecada1f34460f4e38bea8cd87dfe2cb6c7f99f2096acac2231cd1e0c13c53757854b07f729a7a0c5a162a908fbe83 SHA512 f5d64ad182891c3af971e6aabd3c0c1b717b6a1cb471632339cba61b41a998d15880d18de09aafa1c3d059e528c888d6e8b914025c79bc21897d90a6d0e2ebf5 DIST binutils-apple-patches-5.1-r2.tar.bz2 51642 BLAKE2B 1b44020a05e0a91cfe569273f1e3dc65afaeac4bcdb80a626bdcc1f30cf8fbba6cc7bb522ece93126d4035b2d309defefd17fe0cee5bcaadcc58c4fa0feb4827 SHA512 37ba0dcae6c10b54a07c6208f6893ab80b0de1bd1c2f677902f707c8290629f7671a481e256b57a18bf304b95e41e4d59519bc1c88f15de488c0ef7e142f5cd8 DIST binutils-apple-patches-6.1-r1.tar.bz2 42189 BLAKE2B 8505acaff6343b2f4dffe9c1dd78e360762f0ad78d39fbc0227265ed8b6768dba62c1a7d6784ca685934942e1a211c70275474001b066e3292c579fa0aa2f356 SHA512 be8ee5af5c8c9f9228cf6980f032aa101058ac1a414bec89401dbc4ff32ea96d6ebf96b7b79285fa1e7b4037a9ed68b285dbe59ff8e3d3e62bfc0145199e72f3 -DIST binutils-apple-patches-6.3-r1.tar.bz2 37951 BLAKE2B c6d189c7bf2fc66d2db4593a178330a5fbd337a77f5d572b8be89b34441786a3a7e800de0870ed6712609dc70ccdc45060f9eae597fc0fb3a27d476689b95d92 SHA512 07262f4cb621d7afa240c4d81f80eb1a2adf486b60eb480fe283235eac12167f8efa0a462bf9d0036226aa5e6a5382f9f74420ba3269bc260d0a48d0e4442578 -DIST binutils-apple-patches-7.0-r1.tar.bz2 43705 BLAKE2B 9a912d0f65ae54ea39f39d356b9b3f04f35cafc2883962ef3fbc74d7a10c5556b22345619a00eb067a6e0b6bdd9ed438fc14b8dc13e2ed7d6647b39a50728614 SHA512 a25570062628979e23d73ce9dfd0a9bbb4237fdac472a30f2ec564a9bc9afa7d91d8d8b5bf460d16344677f817b55154394608d74c937f0b1fc6dda64f538266 -DIST binutils-apple-patches-7.0-r2.tar.bz2 50934 BLAKE2B 1726dd7c80efe0542832c19a75fff0f84a487aa7ce9fd69d9bd4111d3b606b406bf757bddbf2914800d06eb8ccf5f5e9a0b0ecece291ac42a3c57e58062e38ea SHA512 c7c8f50fad0507228336b6144b8be3e70df07d64f1df617bfd9cd717a095c49cd9555c441cde7d24bbe2d179ab8763e4f6ab1074dd6c5532b80a1bbb4f13a244 -DIST binutils-apple-patches-7.2-r0.tar.bz2 2917 BLAKE2B 53bf5c5c8a21bcaa4df6b1fe290628d428976c0e502c7c0bb3e1c2f7c13881b4b437963004e1daa5aa32361a2b02826086b5bd9b022321065d425b6663b79445 SHA512 ca2fc2da88144fbf01f34f1664e6177105a5d1bff956e83f6c7cd530b8e80dcd59b0c921ad95d3c4554e02909bcd846d3a2a4535bf47569b343c85e765619821 -DIST binutils-apple-patches-7.3-r0.tar.bz2 44576 BLAKE2B a9f23fe66f9b3e25b8975c9148db996fb3133f70b11768fe400993c90d62b6da2c9704a99104c6921dfae5052b5e0d66bd1af02640df8166a957fef9a092d52a SHA512 6b092c586ac4c3a3c65229a7490f93b0f0d38348e5a2db4f73d6062c737007ee0a5b6bdb5948b7aac1d74d32442fa501ba92161a9ffe13151288432c6a706c43 -DIST binutils-apple-patches-7.3-r1.tar.bz2 44737 BLAKE2B 4ac5d3b50c04b1ab71dc1c266db8b44e9d34f12bcc8a53966232cb5a6999b2662f9891367a2e7f8ea4f0f014b19594c1adf8dd945a18419980bca729c1de302e SHA512 ce4b3a725e19cb632b0c101a32488ce09a8bb89aed08339d5518d834cb68c525b2e0c8b66564a945c077915e92cc6be3f7028c5baacb870b3ca9b9422b4fb0da -DIST binutils-apple-patches-8.2-r0.tar.bz2 5771 BLAKE2B b562ea4dd9214bc66695dbdb2452c88b1885ae1e36904516ea664157cbf0b54421d80cd0df792fcc431a3e0b98e804488c651b3fa29b368445450d0d13a1502c SHA512 92d04396630a31b752a24845c27fe8da2e37eb176117c9b31193e8f48af7ade707cda4060289b848965310afd05b2f121c740b0e5baa56b79c5481273a88c84e +DIST binutils-apple-patches-6.3-r2.tar.bz2 53029 BLAKE2B c2e7d773c00d3e6e13e01ee23a8aaf1986af31d2e1390a49ff3932bec45be916af56584a1d218412e2ed528bf55bd4de3942fa1ea3e4d113f841699172ab295c SHA512 bb165ceaebbb2545ac946c94bcc930ba52de452ea71c984d3d92a5b5105507de94752c3584cf05bd27ea288f5353e459c31e97f45553f2ad993249023f486a71 +DIST binutils-apple-patches-7.0-r3.tar.bz2 57504 BLAKE2B 2c894368141fa68c2b5ee85e05309233857afed89e81a89ff9739570397042e174921c9a174b026c61cf04d4bd09b84600a6acb8ac0ac6d55b59d37667ccc0a6 SHA512 4bfe2f1f29f3ca91c093af6b95d16cc315fe8098fb5fd0230458ac2575b34110c250d848b8d9a5425136069b5022d5005fa099489ba6534dd38d1c7049dce009 +DIST binutils-apple-patches-7.2-r1.tar.bz2 2924 BLAKE2B 167fb37e5cb4cae8fe6777dceb1085eee68ce601cf158a9b67d9f77113088c745551ef1500e1fb82e9e74a15bf010fc8e07728506879b5f8ee97fe10b93cea2f SHA512 1285ae5dfcac59e3f27312cfe53683df2f3f166a28ae60e78bc4d25fab6de2a8baf99a4e166638ea90b5823b9c9f0c5feb2a16265c7713fbfe81b5f43b524c54 +DIST binutils-apple-patches-7.3-r2.tar.bz2 44551 BLAKE2B 036cd2a2e4a66b046467f2984cce1c15f0d07c6b66aa6c8df3e07360943104aabe6f2555a0094973df71a5844496cb69d97a0ff13366043e02a01d8fbb0b0239 SHA512 219c26aeb54e89e23ab91706dda0803cf0c9f2a33acb5cc676db2d2ea33ad22af0661ea19450ad8f1f006f6c1703269fd95c98c52a7bcfa0c6491bc1cfb1a0ba DIST binutils-apple-patches-8.2-r1.tar.bz2 10830 BLAKE2B 345db8619873e9e91b79c3fdc0685fc46f82366df0b6153c1a59fbe5c122622e799754397e980e8752ef01ef25bbac81bb8f0339e92168790211b1d9c03bef2d SHA512 e7ca8cbac75671846c044abcd5415cfcf5832ff71acd5a2799b643369b02f2f7148990398c51913a3758e589f9fbff875e333aadf568e2a8a2defeafaa2aca95 -DIST cctools-750.tar.gz 1947953 BLAKE2B c2c6176daaeac0ca407c13c19ce15a84be639510d95c15bca654ba3415fe64a136a0155bcd3c8a34696c35cfe6989f1177a486cc71acc157b42d7c706b23fb29 SHA512 e2e152a9fb7db47c60fe450e1fc92c6866ab89682c7fdc594b97e419ce93ea1353654bd4419bf3df99d119f554aa0f32993dc645dd7c4680840cd01b7dce2f67 +DIST cctools-750.tar.gz 1947990 BLAKE2B b0fe71ae6972bd2b21c1ecf7a699104c51519babf67bb5fc45e31ed1d17108e7627cb46b5f65d48c33dbec9e9032e703924e9a9a687ec19bd384a3cdea243a46 SHA512 298a447757d926b3d156aaf8be27ceadeb4242336b66cb0bee0fd2dc8bb4ad3f167758ff526e4bf3fe458cb72391f5dc38f9112171883fcf28d49a18d671296a DIST cctools-822.tar.gz 2024412 BLAKE2B 6b58499a9dfc2a1b166ff428f1e263cd44e03c50cdc8f6e467cfee93bc2dc2a9c81bf7626479dce195b152f04217e2d3a427afac45484cba4c5f2bdfbb7e46f9 SHA512 8b02cc837d5e0520f35da445f25ba86b5042d5caa27b49a599e829ed89428cf78dbd1831bcf6c18301f941fbfb31ac2114e248041d98008a466e1574f4fe1586 DIST cctools-855.tar.gz 1699635 BLAKE2B 4d98cf2bbced6894083dc2733a35cf9a4c47f71172fe98265a8f047218cc90276085919129553e3a1ea0658416eebf3b7cf0908bd32ac1a224480554257999ee SHA512 50f5d015ce807aa5ca274dd2deea810b8b375110e60b5e334ca4b2170526b738ea5f86a5436caebbdb748badc3b89601d0f450f5b867d8393c89e336a3db4b3f DIST cctools-862.tar.gz 1702345 BLAKE2B de84058aa78824562b0eabf93a29badaba0908a7140336a281a6ea46a9b09d893433a908c299e8de866a76e0eeb98b730570958fc8fac559ccc6e35f5138b121 SHA512 faa401c1dc55bfb9cd2a9a9cc7bc9d473ee63b019607967c8b0da325514d6a1f7b1f52404370bcc018e86d30d75a4b01183f49b793f577110663efe43871360a @@ -34,27 +31,21 @@ DIST ld64-242.tar.gz 641597 BLAKE2B 09d241cbd24e98cf59cd4b25f2237fb518bbd6550d75 DIST ld64-253.3.tar.gz 671087 BLAKE2B 33d00185bdeb7eadc8c1f94d338ebe08c23b8944daeca794e1ee8e58528d6c9775eecf704b098a87bc0a3281b2e3dc9e634714923fea65cc22977b2cd89cfa1d SHA512 ce2c86f2f37ee37bd417315ba51815707b0ca6f24da06819fd1b2d0b4fe0762e45a08c3faf2c0c980e4913c9cbfbf6c8185f9a6810cfa1d9dad231b5bb276081 DIST ld64-253.6.tar.gz 671838 BLAKE2B e7b05c658896a799cfb6dd8d4d74ec16d9a2c39cdbdfac1e7d3f6b5ccd4722b343a9567dbd649e71e96742d6b2eae74ac951bada8899be51f152809c579c73e9 SHA512 40b29e273ed3d69e4f92593cadea831fd618452d3f05e30c0b836ffc05db61fd345cb2f6d63271563c786ecabd47f19f8369456cbe6422800117a53c654a98c6 DIST ld64-253.9.tar.gz 673388 BLAKE2B 65af4f3ddd49b15deecf824fd991d41e5223ff9c963a0ccc89862181353c52279897171d37a00939d6678f2260efa7f7852b9dfd71c2c7b4b00d3fa2dbd85a34 SHA512 a52b081295c19f28858f8ee47c05249bba3e15cc8bb6f7017d9f6dcf7509cdacef7a4b16b3940cd0b1f72b3b67efb503ab2e3801b31e50cda1d34c6bc8df8dcf -DIST ld64-264.3.101.tar.gz 681491 BLAKE2B d924b8865924d7d2b55886221c0e8c6ed0b50c30167141531010fb43a8b05eacbd19358ea689458af3e34c348ee19f58bb9eabf6e6193b9d5e909c0daed3ed60 SHA512 ffa37af95f1a6e76829d0ac8badfd0236d93dc2f9988c7f4b88fe271b7b02a4b5553402a1e9a49feed9da4d04a50e2a2cacdb1bd4c04ecbef09d68b85a2e8a6a DIST ld64-264.3.102.tar.gz 681509 BLAKE2B 4a0699ec761bd145b8034c8577ce9f843c9384fee5486855565d1d89858a445492d66aca2798a6e9c1bb4f59328680c05bcf1cd024d917c063e74d3549073ce0 SHA512 ec221de3624dcce3db694ec2d7b05f3c939cd1ba79c97437ba9f2d4e5d9c37369bb5df82cc37bc158bf5c4e2128cc2b96ca1a7477f98538850092bffa4601da0 DIST ld64-274.1.tar.gz 670493 BLAKE2B 00ab46b09f29c6143c5066ffb0a12017fb2268a5f205c41851a95bc38443aa5494ce81b793a6668bcd3a8abb0ba4215f0da372c413ae52e4ca1e437ad370f8e0 SHA512 ef5d6802f759e09aa2dfab7eb84e9cd2a57b28da3f150833cf1a922c395dd696e501b1bcb10385cbe995f4945fc6c99c2d2d8c50c42f369186bdc1ac3e30ad99 DIST ld64-274.2.tar.gz 671652 BLAKE2B f45bb65bbe65c7baff54dec633a49b8ea472a59a7978aa050b329132963b26e4a2b3ef3dd034b04247531a11a07de5135b3726a429165cbfcae50e06c09531f4 SHA512 7b4e17f199909450b697bf719564c6841d46f5116c48dd47ff483ae7ddfe2965db1b7c024ed8ebeeaf90cd983ed353b95f7f23c93c8971536977dc892e6d6a9d DIST ld64-85.2.1.tar.gz 598524 BLAKE2B 92cb3c763cc067e2ee6c4fec910f078cc69daca2a328a74ebc988908b1655138873b69bfb0c19b284f0aedb678e99de3866d4f13460cb3427985704093dca37a SHA512 b5ffaffc43e74f22688fecd9fb3023a59160cf051f9412f34e6b0acf1c4f9d43ba641e199d8d6b1c6cf3bbbbf117645988fd879ded1fec8be056b6941fe79999 DIST libunwind-30.tar.gz 82811 BLAKE2B 26993d6afa6930931c01b579326964a66832ed7a6ffa26eff10016c8d6d175d3b671753cf8700dcdbae7f0a9c01b16e9cbd3c9fe86697608f1f08a8eceb64782 SHA512 57106eafa1516791b4e0db2de6c6336bc0c1cbd8bf098a6d3a809fafa457802c95a7aeae9137f4ca5922a3018dfd8f597907ea4187b0afbbf267500eae00041f DIST libunwind-35.3.tar.gz 90002 BLAKE2B d63ab0ae6e66a6f35ec17de9713d3bf4853cd80af218e868762b20dd8a44d42cd9ff8fce1d8c46fca4759144726bbf248a02a5dede5a94a2b75d3b45ddb7d018 SHA512 b7d9a86ef24f1fe9ca14517471e03a910219a229af9f0d4cf94435115971360640451107ba20c93fb1aab788f8b6eb5ed580ee08fdaa990b9fa43e9ae360c6b4 -EBUILD binutils-apple-3.2.ebuild 5886 BLAKE2B c0b0a03ebb27b384f86cd85bf6c0ad0c572c62bad2ceb6d3f1acab9d846b5831491d2b0a1e9b804ebdb19c3e23dcd8f54d12ac295937227ad8a7042aee0e34e6 SHA512 7c05c3070e108bf58427daf26e7e2c709babc8c1393f48bef4a590bf323cbbdac7637e1543797796a12f40bba5ca7587d131003ef6dc05d4252998be704782c5 +EBUILD binutils-apple-3.2.ebuild 5973 BLAKE2B 15d365c5ca7c8fd214c42ab2439882dce3b6f4a1fb1434a15aaee9f0e063444d0a437ced4a86046971318bfd65aae27157921c2250ea619c324fc56b1df74982 SHA512 34e780324652137a5cb1104fc98b2391d32cbba830481bd8c6e877ed713cc195f01c26482acdc2386c66042292672165621900e9569e30942872f818c145f1d1 EBUILD binutils-apple-4.3-r2.ebuild 10304 BLAKE2B 851d53617c780d5c472c693fbc8651cf7d976d071a1a47cce0ce867898d9cd38be3e221426717eb12da1f77fa41926c5fab7a09112f3b350c54313255879a510 SHA512 4efbb4a108d1e8bd67360cff47bc0a5aa36af7fb84ff42bafd0ffbb1e97337939454b05e46345ca25ca2d0243fad825e07a0a6d8356bdc7a193f101cc1b52335 EBUILD binutils-apple-5.1-r1.ebuild 12200 BLAKE2B 18430125ede7c5b78ff0d371f2738159904c60a94ebe2b0ea60cff711af0c256526eb947b950fd8ec63753e8d417d6a8011b23995cd7d277603cdf688dc41786 SHA512 22277d1c8b67ac500cea2afed290cb61f9ce5d42a1b16eeaad33c5bd6014ea75d85870bf179968db619998ccb73b2374f4ce9fb6c721edf3f035c6239ee2667a EBUILD binutils-apple-6.1-r1.ebuild 12274 BLAKE2B b87b0d76d2f8e63b594abaa70a0814e27dac81be77adb39d33d50b98820111fd87aeddf74e271889e608c733ab0b1dd192883d84bf613ca141717c2877591d35 SHA512 137ecc2c62f9c75a7efa5679b77e0c1b53f7754fd7b62b4e889f40079212fb3e3ad716fc6b1afd399920592fc05784f446612ad3f5bed6396d37ac2ecf67a3b4 -EBUILD binutils-apple-6.3-r1.ebuild 11979 BLAKE2B 5f7ff009dab528ec410bc994edb6497237492270558194739a199ae260a6b04f3bd8579874b56efe8dc0580f3c65c2abd10a9baacc55acea4dc86fd8d54e6349 SHA512 494027affde8f647f254c10e37a9adcfcedaa22c7a6cc313668d154715ae2650d6cbafc0310fdbaf480051f8cca4cf0a37855c77321ebafcf9fa55ad547c1ba5 -EBUILD binutils-apple-7.0-r1.ebuild 11968 BLAKE2B 3d870676eeb7c76a4f9bc74dbc005b64301e3ba7dba9693311568786544583830f9486f47f8a031787f306a78b4a5e16ff96f6684214dc8e92d77b948940bfb1 SHA512 c93795ae16998995c14efa20b3402fd5eee01b9f5b27f34f392601f0a4031a4ccb9107564dbeca82d6cf76a999c55656bbefbcf7c50e21a161c7cda42370af76 -EBUILD binutils-apple-7.0.ebuild 12073 BLAKE2B fd546a63fdb10b1720b8cb3093a7572b1c060eae9660e78545392b5512925e6239a51802997b797dee386bd859be03cfac018d41792877ddb40dc5b295dc9e50 SHA512 7b09c2625a3e0e457dbcad752a4b1b034ff78bd02e54042f44c258122a325cb7739e8b763caf741104f393c94031e824405c4e107b2756a2b27ebf0ba2f1cf0a -EBUILD binutils-apple-7.1-r1.ebuild 11968 BLAKE2B b39b4e9871159fbee6e73509e0bc0ae3c2685eaa7b75631db0990bdea46273e896e26e6734b650af79c5f0b69b44f32f3d9a317950cb18ebb32d6bf308aba20a SHA512 f1c7f2794763af25469c3ac02dcd76d680300301c681c16b7b90ea7abd5bf946a093d5dcdffe032c0c548e8ad8c26123cddf0ce258f6875378dc85b6995a07de -EBUILD binutils-apple-7.1.ebuild 12073 BLAKE2B 1cd6c1f24612c77a21faab5f4e59cf3dbfbaacfb05b0c3d3ff5f4c803b6a0b419e2b6f448e49e57d57d8609a24b78abebb9eeb8e3aaaba54cf75527db519a66e SHA512 5772e02328faa86817f8cc20e38ac7911ef47196067de61250e1ed2694b23bc5b59295cc07ad1dfb460505970c911398fae47eb03053ad4811a663dadbb52324 -EBUILD binutils-apple-7.2-r1.ebuild 12040 BLAKE2B c1c89cf88106ba6e8bb4ea664d5a80cabb6a1db68a6489dd90dbb29017b492e28e1a2ee7da1c5326e6f3805f819648a4ec2cab99dc328447daf96c8bd7ba8862 SHA512 ba57c7d40229c1b16336c05b46e3bb02166518b330eb20b3fbb96947d4f60edb304559d0470ea4ac39d5c615d9d65fbf94fc0fa0afd868be06db23e3d1cba1f8 -EBUILD binutils-apple-7.2.ebuild 12073 BLAKE2B eccd301e8e65a90adbda77493ca4a2a161166d6e1671078ac7ddd88964b4ffa48600fbde65b408a6608c7f19c202bb96ab6b0023614b3ea867202945b386c980 SHA512 b63edde3520cd389389fa36ae62380ab1f8b7bf147992bec953c3659fbcd0e1cd7d938fbe63e1de04f62a33a52696ef0e484f8ab989040d651da250351c1ba17 -EBUILD binutils-apple-7.3.1.ebuild 13252 BLAKE2B bdd8b989fb18c54c136b8074557861abb8f00b5c4582d84f83a836a99aefd0c5a8649a800e3d9619de920b7aa0076c3ab7079fc86508a6e9ccb91e64b4389f88 SHA512 ea5092df995588863c7211ddeb9c7c5f1b97656320f4c44b3c6a7e40d0d6f420e05576a8b60720dfc1a41aa94292b07f4cd8d98678410b7533ac73ea5c618ace -EBUILD binutils-apple-7.3.ebuild 12904 BLAKE2B 818a0f6b8bb2ce5a52afef1b83e9e51f6335b9b051cf47f542cce5b62ca55309a35408a13f1b76cdbef3259f68db42853d32679affed77f4ea1654aab2b8f39f SHA512 f20c7186a56b178e1542d672bc8a544fef62e6a88ede224579d94c09963f8d99e8ee618881af5eb68d51d40372cd28596c9fc0ee7fb5b04e073adfae2da26e98 -EBUILD binutils-apple-8.1.ebuild 10437 BLAKE2B 3adba8f475a847b95cddf32bbf939f9848aaf71040063f5147e4e78b23bc8602eaa0669cfb13a383f563e038802c42cca657a98f0029a33f138e1007e81e31fb SHA512 77ef913cb5a0d2e98017208256e700996a0b92bb3760ff4ee330ad5844fb31ed7b46bda5b56e9d5ce5fbda56249d51c44ebe74f63cabb22f19781aaa25bbc143 -EBUILD binutils-apple-8.2.1-r1.ebuild 11464 BLAKE2B ec5cc8825e534443f8acb3ea6b8f3326dde156afd88c09a111b90a0168f562c88396eb0cd653b6499136971301d53be2b3fd24e76ba59bf8f7eaf42688a44d8c SHA512 4aa424554279b8f8800df1c952f1854970eb831f4ec9aaf98b262f068106b87c661f764be76cd720f337f89c6bb309db17eb3ea4f3628b239ca514552e71d9c4 -EBUILD binutils-apple-8.2.1.ebuild 10437 BLAKE2B 3b8a7458d7f9e7ac022f451c76d64d877b788cbe725c229ae14b39e51459caee2649ec9bf2553be0813e1a97ceef777302a5b9503e735ebae6af66442fb41f6a SHA512 5dfc4c9bae9343a13bce6508a06ddca2dd3abb0248e9aeaee4453acefabdd12c899bfa07cf4b99ea7f23ae29b05d077d35129425b583d3eeeb21084a62687827 +EBUILD binutils-apple-6.3-r2.ebuild 12289 BLAKE2B 18fbe6f0ded25c575b87a86f25cce781d3d292658b86709b7935f8bb576038b49f48121ec9ac52bcdc8bb927d052803d5dbff3c82e5e5b5631d189b650f9327b SHA512 ef1167ace0ea242bd6eb560fa644c775766a84148e76c4b52097ea20831094f6ef675bbcdb9e0e39bfbaf60a780687b4a1d71173b32a1b33568007c6b6893f4f +EBUILD binutils-apple-7.0-r1.ebuild 11965 BLAKE2B 9243f909c7ea61ade67bac29a8e3f9f901f1388755736ad3ed45ff081af22c80bf307ff7211ebfcca0e72b3632361481c738ac07838ff32ee9c0a5eba3c48267 SHA512 6920c285fbe036588e07ad85c99574f64a23782a616735ac3ec7b4adda1bb656efb728b6b7ef1bf6ddad8f65f6e147673eb734f59335de3996566b6eecead55f +EBUILD binutils-apple-7.1-r1.ebuild 11965 BLAKE2B 52140489c1029bce2b654d33671f696cd4e1c48830ea12d538297a99bc665ea0c97bd6f7d1061b377df5ea94bd66e44eeea0a397c054151c9ead74ea8979377c SHA512 d147d5a9c7d348437c405b742cd8491e9fd61032d9411fdfcd62ebdb1782eadcd0ff88dd18457e0951fba54a203322f0b7a0d0ee10bf084743ba6d2ad4720e6c +EBUILD binutils-apple-7.2-r1.ebuild 12037 BLAKE2B 7819e038c237db5a2bab467e7d145f534536d415857601a3b72dfac614f7e3000a3b68e4d193d59c6d991b065126646437355ed669ab026010eb59ade562e9dc SHA512 c86bbc0f738232c3377eda1e76b4f386cddc2e503ae5acb4b1830270e51583f6674168c22cb11bbb67b5a71ded5b407572fed00edbf10de6b61e317e64e60ac4 +EBUILD binutils-apple-7.3.1.ebuild 13249 BLAKE2B ce5fd452793b603e5a387f52ee9e6fd6e38448c06e3a85ad5dc3c3fada9e4c04434b74b82efb9454e6df6e41b6252742b351000629e315ddc78f143ec78c12ab SHA512 2bcdb3baba49a59f4f5e230d57f50999ae9cb216390307df5d08f0acf21979820b22ea2a7afac2752644084c4380a59664ce4e38bf52a8cf0bd4103c5a5fa35b +EBUILD binutils-apple-8.1.ebuild 10434 BLAKE2B d94604496029909ecabb7d34684a1a8d34822303dcf59255659c82357fef05e45a761c4b4755888b4418f0b8b33ebb66348b9ffeca2d7f1190f16284a949f3ed SHA512 0ffc730c89e13fd2ddb1179357d18d637bb2ad11a72a7906eaa5c377429af3e213dc0e658a58da6821876c8a6a76cae5e4b3f28a3dfe34927d1d4aa5af3777b5 +EBUILD binutils-apple-8.2.1-r1.ebuild 11461 BLAKE2B 835e688c5fdcbdb62b6ae2aa5bf4772dd27b8388b9acedd65e9af531bf1b03f620e2271833512bafb1e6422aa3c5b6348f4aa258c9b56a43f6deaf3873d42c1e SHA512 b4ffe2df4fe11997a805bc2a564770f5ff3e6e41289ee4f0c5855829ce71b1045e8c0711be9b185a6ee2125e6df4a30c14fe6d7a9acf893ddbd4c8f5f5f544be MISC metadata.xml 684 BLAKE2B 5cd10b7a5817bb4fe8b94ffbfa422e43c0f50c2d7d6db881ab82b4741f24548560fb07c6f4b1bf8164ee80ec7052147f7f5158640e4c9fa94b950871148491f2 SHA512 e588cb802b2b22ee656b9dcf45d9d372a3b306fa3574a7d859e2df9032eeeab63219a9d9b69249a5a67733dff4c484da17621f00d2b0775935f2cfa5a6f91977 diff --git a/sys-devel/binutils-apple/binutils-apple-3.2.ebuild b/sys-devel/binutils-apple/binutils-apple-3.2.ebuild index 9469e8bf164b..6e37ac06e4cf 100644 --- a/sys-devel/binutils-apple/binutils-apple-3.2.ebuild +++ b/sys-devel/binutils-apple/binutils-apple-3.2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2018 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI="6" @@ -84,7 +84,6 @@ src_prepare() { epatch "${WORKDIR}"/${PN}-3.1.1-nmedit.patch epatch "${WORKDIR}"/${PN}-3.1.1-no-headers.patch epatch "${WORKDIR}"/${PN}-3.1.1-no-oss-dir.patch - epatch "${WORKDIR}"/${P}-armv7-defines.patch cd "${S}"/${LD64} epatch "${WORKDIR}"/${PN}-3.1.1-testsuite.patch @@ -121,6 +120,12 @@ src_configure() { else BINPATH=/usr/${CTARGET}/binutils-bin/${PV} fi + + if tc-is-gcc && [[ $(gcc-fullversion) != 4.2.1 ]] ; then + # force gcc-apple + CC=${CTARGET}-gcc-4.2.1 + CXX=${CTARGET}-g++-4.2.1 + fi } compile_ld64() { diff --git a/sys-devel/binutils-apple/binutils-apple-6.3-r1.ebuild b/sys-devel/binutils-apple/binutils-apple-6.3-r1.ebuild deleted file mode 100644 index 5835b8852a09..000000000000 --- a/sys-devel/binutils-apple/binutils-apple-6.3-r1.ebuild +++ /dev/null @@ -1,378 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="5" - -inherit eutils flag-o-matic toolchain-funcs - -LD64=ld64-242 -CCTOOLS_VERSION=870 -CCTOOLS=cctools-${CCTOOLS_VERSION} -LIBUNWIND=libunwind-35.3 -DYLD=dyld-353.2.1 - -DESCRIPTION="Darwin assembler as(1) and static linker ld(1), Xcode Tools ${PV}" -HOMEPAGE="http://www.opensource.apple.com/darwinsource/" -SRC_URI="http://www.opensource.apple.com/tarballs/ld64/${LD64}.tar.gz - http://www.opensource.apple.com/tarballs/cctools/${CCTOOLS}.tar.gz - http://www.opensource.apple.com/tarballs/dyld/${DYLD}.tar.gz - http://www.opensource.apple.com/tarballs/libunwind/${LIBUNWIND}.tar.gz - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-4.3-r1.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-5.1-r2.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-6.1-r1.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-6.3-r1.tar.bz2" - -LICENSE="APSL-2" -KEYWORDS="~ppc-macos ~x64-macos ~x86-macos" -IUSE="lto test libcxx multitarget" - -RDEPEND="sys-devel/binutils-config - lto? ( sys-devel/llvm:* ) - libcxx? ( sys-libs/libcxx )" -DEPEND="${RDEPEND} - test? ( >=dev-lang/perl-5.8.8 ) - || ( >=sys-devel/gcc-apple-4.2.1 sys-devel/llvm:* ) - libcxx? ( sys-devel/llvm:* )" - -SLOT="6" - -S=${WORKDIR} - -is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } - -src_prepare() { - if use multitarget ; then - ewarn "You have enabled support for non-standard target architectures" - ewarn "using USE=multitarget. This includes experimental support for" - ewarn "ppc and ppc64 which is a community forward-port from the last" - ewarn "version of ld64 to officially support PPC." - - if [[ ${CHOST} == powerpc*-darwin* ]] ; then - ewarn "HERE BE DRAGONS! Your system seems to be PPC which means that" - ewarn "the actual usability of your Gentoo programs will depend on the" - ewarn "above-mentioned experimental PPC support in the linker. Be" - ewarn "sure to keep a known-to-work version like ${PN}-3.2.6 around!" - fi - fi - - cd "${S}"/${LD64}/src - cp "${S}"/ld64-136-compile_stubs.h ld/compile_stubs.h - cp "${S}"/ld64-236.3-Makefile-2 Makefile - - epatch "${S}"/ld64-236.3-nolto.patch - epatch "${S}"/ld64-241.9-extraneous-includes.patch - epatch "${S}"/ld64-241.9-osatomic.patch - epatch "${S}"/ld64-236.3-crashreporter.patch - epatch "${S}"/ld64-241.9-nosnapshots.patch - epatch "${S}"/ld64-242-ppc.patch - epatch "${S}"/ld64-236.3-constant-types-2.patch - epatch "${S}"/ld64-242-gcc-2.patch - epatch "${S}"/ld64-241.9-register-names.patch - epatch "${S}"/ld64-241.9-get-comm-align.patch - epatch "${S}"/ld64-241.9-cc_md5.patch - epatch "${S}"/ld64-253.3-delete-warning.patch - - # provide missing headers from libunwind and dyld - mkdir -p include/{mach,mach-o/arm} || die - # never present because it's private - cp ../../${DYLD}/include/mach-o/dyld_priv.h include/mach-o || die - # missing on <= 10.5 - cp ../../${LIBUNWIND}/include/libunwind.h include/ || die - cp ../../${LIBUNWIND}/include/mach-o/compact_unwind_encoding.h include/mach-o || die - # missing on <= 10.4 - cp ../../${DYLD}/include/mach-o/dyld_images.h include/mach-o || die - cp ../../${CCTOOLS}/include/mach-o/loader.h include/mach-o || die - # use copies from cctools because they're otherwise hidden in some SDK - cp ../../${CCTOOLS}/include/mach-o/arm/reloc.h include/mach-o/arm || die - # provide all required CPU_TYPEs on all platforms - cp ../../${CCTOOLS}/include/mach/machine.h include/mach/machine.h - # add alias for newer identifiers, because ld64 uses both but cctools - # header only defines the older - epatch "${S}"/ld64-236.3-missing-cputypes.patch - - # mimic OS X Leopard-style Availability.h macros for libunwind.h on - # older systems - [[ ${CHOST} == *darwin* && ${CHOST#*-darwin} -le 8 ]] && \ - echo "#define __OSX_AVAILABLE_STARTING(x,y) " > include/Availability.h - - local VER_STR="\"@(#)PROGRAM:ld PROJECT:${LD64} (Gentoo ${PN}-${PVR})\\n\"" - echo "char ldVersionString[] = ${VER_STR};" > version.cpp - - epatch "${S}"/ld64-123.2-debug-backtrace.patch - if [[ ${CHOST} == powerpc*-darwin* ]] ; then - epatch "${S}"/ld64-123.2-darwin8-no-mlong-branch-warning.patch - epatch "${S}"/ld64-127.2-thread_state.patch - fi - - cd "${S}"/${CCTOOLS} - epatch "${S}"/${PN}-4.5-as.patch - epatch "${S}"/${PN}-5.1-as-dir.patch - epatch "${S}"/${PN}-5.1-ranlib.patch - epatch "${S}"/${PN}-3.1.1-libtool-ranlib.patch - epatch "${S}"/${PN}-3.1.1-no-headers.patch - epatch "${S}"/${PN}-4.0-no-oss-dir.patch - epatch "${S}"/cctools-839-intel-retf.patch - epatch "${S}"/${PN}-5.1-extraneous-includes.patch - epatch "${S}"/${PN}-5.1-otool-stdc.patch - epatch "${S}"/${PN}-5.1-constant-types.patch - epatch "${S}"/${PN}-5.1-strnlen.patch - epatch "${S}"/${PN}-5.1-ppc.patch - epatch "${S}"/${PN}-5.1-thread-state-redefined.patch - epatch "${S}"/${PN}-5.1-makefile-target-warning.patch - epatch "${S}"/${PN}-6.3-lto-prefix.patch - cp ../${LD64}/src/other/prune_trie.h include/mach-o/ || die - - # do not build profileable libstuff to save compile time - sed -i -e "/^all:/s, profile , ," libstuff/Makefile - - # cctools version is provided to make via RC_ProjectSourceVersion which - # generates and compiles it as apple_version[] into libstuff. From - # there it's picked up by the individual tools. Since - # RC_ProjectSourceVersion is also used as library version, we can't - # just append our local version info. So we hack the libstuff Makefile - # to include our Gentoo version. - sed -i -e "/cctools-.*(RC_ProjectSourceVersion).*OFILE_DIR/s,Version),Version) (Gentoo ${PN}-${PVR})," \ - libstuff/Makefile - - # clean up test suite - cd "${S}"/${LD64}/unit-tests/test-cases - local c - - # we don't have llvm - ((++c)); rm -rf llvm-integration; - - # we don't have dtrace - ((++c)); rm -rf dtrace-static-probes-coalescing; - ((++c)); rm -rf dtrace-static-probes; - - # a file is missing - ((++c)); rm -rf eh-coalescing-r - - # we don't do universal binaries - ((++c)); rm -rf blank-stubs; - - # looks like a problem with apple's result-filter.pl - ((++c)); rm -rf implicit-common3; - ((++c)); rm -rf order_file-ans; - - # TODO no idea what goes wrong here - ((++c)); rm -rf dwarf-debug-notes; - - einfo "Deleted $c tests that were bound to fail" - - cd "${S}" - ebegin "cleaning Makefiles from unwanted CFLAGS" - find . -name "Makefile" -print0 | xargs -0 sed \ - -i \ - -e 's/ -g / /g' \ - -e 's/^G =.*$/G =/' \ - -e 's/^OFLAG =.*$/OFLAG =/' \ - -e 's/install -c -s/install/g' - eend $? -} - -src_configure() { - ENABLE_LTO=0 - use lto && ENABLE_LTO=1 - - export CTARGET=${CTARGET:-${CHOST}} - if [[ ${CTARGET} == ${CHOST} ]] ; then - if [[ ${CATEGORY} == cross-* ]] ; then - export CTARGET=${CATEGORY#cross-} - fi - fi - - LIBPATH=/usr/$(get_libdir)/binutils/${CTARGET}/${PV} - INCPATH=${LIBPATH}/include - DATAPATH=/usr/share/binutils-data/${CTARGET}/${PV} - if is_cross ; then - BINPATH=/usr/${CHOST}/${CTARGET}/binutils-bin/${PV} - else - BINPATH=/usr/${CTARGET}/binutils-bin/${PV} - fi - - if [[ ${CXX} == *clang* ]] ; then - if use libcxx ; then - append-cxxflags -stdlib=libc++ - CXXLIB=-stdlib=libc++ - else - # force libstdc++ for systems where libc++ is default (OS X 10.9+?) - append-cxxflags -stdlib=libstdc++ - CXXLIB=-stdlib=libstdc++ - fi - else - use libcxx && \ - ewarn "libcxx only available with clang and your C++ compiler ($CXX) does not seem to be clang" - fi - - # CPPFLAGS only affects ld64, cctools don't use 'em (which currently is - # what we want) - append-cppflags -DNDEBUG - - # Block API and thus snapshots supported on >= 10.6 - [[ ${CHOST} == *darwin* && ${CHOST#*-darwin} -ge 10 ]] && \ - append-cppflags -DSUPPORT_SNAPSHOTS - - CCTOOLS_OFLAG= - if [[ ${CHOST} == *darwin* && ${CHOST#*-darwin} -le 8 ]] ; then - # cctools expect to use UNIX03 struct member names. - # This is default on > 10.4. Activate it on <= 10.4 by defining - # __DARWIN_UNIX03 explicitly. - CCTOOLS_OFLAG="-D__DARWIN_UNIX03=1" - fi - - # if compiling with USE multitarget, extract all the known arches from - # create_configure and pass them back to it - creco=${LD64}/src/create_configure - ARCHS_TO_SUPPORT="" - if use multitarget ; then - ARCHS_TO_SUPPORT="$(grep KNOWN_ARCHS= $creco | \ - cut -d\" -f2 | tr ',' ' ')" - fi - - # Create configure.h for ld64 with SUPPORT_ARCH_ defines in it. - DERIVED_FILE_DIR=${LD64}/src \ - RC_SUPPORTED_ARCHS="$ARCHS_TO_SUPPORT" \ - $creco - - # do not depend on MachOFileAbstraction.hpp to define - # SUPPORT_ARCH_arm_any because that's not included by every file where - # our ppc/arm-optional patch uses it, ld.hpp in particular - grep "SUPPORT_ARCH_armv[0-9]" ${LD64}/src/configure.h >/dev/null && \ - echo "#define SUPPORT_ARCH_arm_any 1" >> ${LD64}/src/configure.h -} - -compile_ld64() { - einfo "building ${LD64}" - cd "${S}"/${LD64}/src - emake \ - LTO=${ENABLE_LTO} \ - || die "emake failed for ld64" - use test && emake build_test -} - -compile_cctools() { - einfo "building ${CCTOOLS}" - cd "${S}"/${CCTOOLS} - # -j1 because it fails too often with weird errors - # Suppress running dsymutil because it will warn about missing debug - # info which is expected when compiling without -g as we normally do. - # This might need some more thought if anyone ever wanted to build us - # for debugging with Apple's tools. - emake \ - LIB_PRUNETRIE="-L../../${LD64}/src -lprunetrie" \ - EFITOOLS= \ - ENABLE_LTO="${ENABLE_LTO}" \ - COMMON_SUBDIRS='libstuff ar misc otool' \ - SUBDIRS_32= \ - LEGACY= \ - RC_ProjectSourceVersion=${CCTOOLS_VERSION} \ - RC_CFLAGS="${CFLAGS}" \ - OFLAG="${CCTOOLS_OFLAG}" \ - CXXLIB="${CXXLIB}" \ - DSYMUTIL=": disabled: dsymutil" \ - -j1 \ - || die "emake failed for the cctools" - cd "${S}"/${CCTOOLS}/as - emake \ - BUILD_OBSOLETE_ARCH= \ - RC_ProjectSourceVersion=${CCTOOLS_VERSION} \ - RC_CFLAGS="-DASLIBEXECDIR=\"\\\"${EPREFIX}${LIBPATH}/\\\"\" ${CFLAGS}" \ - OFLAG="${CCTOOLS_OFLAG}" \ - DSYMUTIL=": disabled: dsymutil" \ - || die "emake failed for as" -} - -src_compile() { - compile_ld64 - compile_cctools -} - -install_ld64() { - exeinto ${BINPATH} - doexe "${S}"/${LD64}/src/{ld64,rebase,dyldinfo,unwinddump,ObjectDump} - dosym ld64 ${BINPATH}/ld - insinto ${DATAPATH}/man/man1 - doins "${S}"/${LD64}/doc/man/man1/{ld,ld64,rebase}.1 -} - -install_cctools() { - cd "${S}"/${CCTOOLS} - emake install_all_but_headers \ - EFITOOLS= \ - COMMON_SUBDIRS='ar misc otool' \ - SUBDIRS_32= \ - DSTROOT=\"${D}\" \ - BINDIR=\"${EPREFIX}\"${BINPATH} \ - LOCBINDIR=\"${EPREFIX}\"${BINPATH} \ - USRBINDIR=\"${EPREFIX}\"${BINPATH} \ - LOCLIBDIR=\"${EPREFIX}\"${LIBPATH} \ - MANDIR=\"${EPREFIX}\"${DATAPATH}/man/ - cd "${S}"/${CCTOOLS}/as - emake install \ - BUILD_OBSOLETE_ARCH= \ - DSTROOT=\"${D}\" \ - USRBINDIR=\"${EPREFIX}\"${BINPATH} \ - LIBDIR=\"${EPREFIX}\"${LIBPATH} \ - LOCLIBDIR=\"${EPREFIX}\"${LIBPATH} - - cd "${ED}"${BINPATH} - insinto ${DATAPATH}/man/man1 - local skips manpage - # ar brings an up-to-date manpage with it - skips=( ar ) - for bin in *; do - for skip in ${skips[@]}; do - if [[ ${bin} == ${skip} ]]; then - continue 2; - fi - done - manpage=${S}/${CCTOOLS}/man/${bin}.1 - if [[ -f "${manpage}" ]]; then - doins "${manpage}" - fi - done - insinto ${DATAPATH}/man/man5 - doins "${S}"/${CCTOOLS}/man/*.5 -} - -src_test() { - if ! [ "${EPREFIX}"/usr/bin/clang ] ; then - einfo "Test suite only works properly with clang - please install" - return - fi - - einfo "Running unit tests" - cd "${S}"/${LD64}/unit-tests/test-cases - # provide the new ld as a symlink to clang so that -ccc-install-dir - # will pick it up - ln -sfn ../../src/ld64 ld - # use our arch command because the System's will report i386 even for an - # x86_64 prefix - perl ../bin/make-recursive.pl \ - BUILT_PRODUCTS_DIR="${S}"/${LD64}/src \ - ARCH="$(arch)" \ - LD="${S}"/${LD64}/src/ld64 \ - CC="clang -ccc-install-dir $PWD" \ - CXX="clang++ -ccc-install-dir $PWD" \ - OTOOL="${S}"/${CCTOOLS}/otool/otool.NEW \ - | perl ../bin/result-filter.pl -} - -src_install() { - install_ld64 - install_cctools - - cd "${S}" - insinto /etc/env.d/binutils - cat <<-EOF > env.d - TARGET="${CHOST}" - VER="${PV}" - FAKE_TARGETS="${CHOST}" - EOF - newins env.d ${CHOST}-${PV} -} - -pkg_postinst() { - binutils-config ${CHOST}-${PV} -} diff --git a/sys-devel/binutils-apple/binutils-apple-6.3-r2.ebuild b/sys-devel/binutils-apple/binutils-apple-6.3-r2.ebuild new file mode 100644 index 000000000000..763bdb041109 --- /dev/null +++ b/sys-devel/binutils-apple/binutils-apple-6.3-r2.ebuild @@ -0,0 +1,386 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit eutils flag-o-matic toolchain-funcs + +LD64=ld64-242 +CCTOOLS_VERSION=870 +CCTOOLS=cctools-${CCTOOLS_VERSION} +LIBUNWIND=libunwind-35.3 +DYLD=dyld-353.2.1 + +DESCRIPTION="Darwin assembler as(1) and static linker ld(1), Xcode Tools ${PV}" +HOMEPAGE="http://www.opensource.apple.com/darwinsource/" +SRC_URI="http://www.opensource.apple.com/tarballs/ld64/${LD64}.tar.gz + http://www.opensource.apple.com/tarballs/cctools/${CCTOOLS}.tar.gz + http://www.opensource.apple.com/tarballs/dyld/${DYLD}.tar.gz + http://www.opensource.apple.com/tarballs/libunwind/${LIBUNWIND}.tar.gz + https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-4.3-r1.tar.bz2 + https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-5.1-r2.tar.bz2 + https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-6.1-r1.tar.bz2 + https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-6.3-r2.tar.bz2" + +LICENSE="APSL-2" +KEYWORDS="~ppc-macos ~x64-macos ~x86-macos" +IUSE="lto test libcxx multitarget" + +RDEPEND="sys-devel/binutils-config + lto? ( sys-devel/llvm:* ) + libcxx? ( sys-libs/libcxx )" +DEPEND="${RDEPEND} + test? ( >=dev-lang/perl-5.8.8 ) + || ( >=sys-devel/gcc-apple-4.2.1 sys-devel/llvm:* ) + libcxx? ( sys-devel/llvm:* )" + +SLOT="6" + +S=${WORKDIR} + +is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } + +src_prepare() { + if use multitarget ; then + ewarn "You have enabled support for non-standard target architectures" + ewarn "using USE=multitarget. This includes experimental support for" + ewarn "ppc and ppc64 which is a community forward-port from the last" + ewarn "version of ld64 to officially support PPC." + + if [[ ${CHOST} == powerpc*-darwin* ]] ; then + ewarn "HERE BE DRAGONS! Your system seems to be PPC which means that" + ewarn "the actual usability of your Gentoo programs will depend on the" + ewarn "above-mentioned experimental PPC support in the linker. Be" + ewarn "sure to keep a known-to-work version like ${PN}-3.2.6 around!" + fi + fi + + cd "${S}"/${LD64}/src + cp "${S}"/ld64-136-compile_stubs.h ld/compile_stubs.h + cp "${S}"/ld64-236.3-Makefile-2 Makefile + + epatch "${S}"/ld64-236.3-nolto.patch + epatch "${S}"/ld64-241.9-extraneous-includes.patch + epatch "${S}"/ld64-241.9-osatomic.patch + epatch "${S}"/ld64-236.3-crashreporter.patch + epatch "${S}"/ld64-241.9-nosnapshots.patch + epatch "${S}"/ld64-242-ppc.patch + epatch "${S}"/ld64-236.3-constant-types-2.patch + epatch "${S}"/ld64-242-gcc-2.patch + epatch "${S}"/ld64-241.9-register-names.patch + epatch "${S}"/ld64-241.9-get-comm-align.patch + epatch "${S}"/ld64-241.9-cc_md5.patch + epatch "${S}"/ld64-253.3-delete-warning.patch + + # provide missing headers from libunwind and dyld + mkdir -p include/{mach,mach-o/arm} || die + # never present because it's private + cp ../../${DYLD}/include/mach-o/dyld_priv.h include/mach-o || die + # missing on <= 10.5 + cp ../../${LIBUNWIND}/include/libunwind.h include/ || die + cp ../../${LIBUNWIND}/include/mach-o/compact_unwind_encoding.h include/mach-o || die + # missing on <= 10.4 + cp ../../${DYLD}/include/mach-o/dyld_images.h include/mach-o || die + cp ../../${CCTOOLS}/include/mach-o/loader.h include/mach-o || die + # use copies from cctools because they're otherwise hidden in some SDK + cp ../../${CCTOOLS}/include/mach-o/arm/reloc.h include/mach-o/arm || die + # provide all required CPU_TYPEs on all platforms + cp ../../${CCTOOLS}/include/mach/machine.h include/mach/machine.h + # add alias for newer identifiers, because ld64 uses both but cctools + # header only defines the older + epatch "${S}"/ld64-236.3-missing-cputypes.patch + + # mimic OS X Leopard-style Availability.h macros for libunwind.h on + # older systems + [[ ${CHOST} == *darwin* && ${CHOST#*-darwin} -le 8 ]] && \ + echo "#define __OSX_AVAILABLE_STARTING(x,y) " > include/Availability.h + + local VER_STR="\"@(#)PROGRAM:ld PROJECT:${LD64} (Gentoo ${PN}-${PVR})\\n\"" + echo "char ldVersionString[] = ${VER_STR};" > version.cpp + + epatch "${S}"/ld64-123.2-debug-backtrace.patch + if [[ ${CHOST} == powerpc*-darwin* ]] ; then + epatch "${S}"/ld64-123.2-darwin8-no-mlong-branch-warning.patch + epatch "${S}"/ld64-127.2-thread_state.patch + fi + + cd "${S}"/${CCTOOLS} + epatch "${S}"/${PN}-4.5-as.patch + epatch "${S}"/${PN}-5.1-as-dir.patch + epatch "${S}"/${PN}-5.1-ranlib.patch + epatch "${S}"/${PN}-3.1.1-libtool-ranlib.patch + epatch "${S}"/${PN}-3.1.1-no-headers.patch + epatch "${S}"/${PN}-4.0-no-oss-dir.patch + epatch "${S}"/cctools-839-intel-retf.patch + epatch "${S}"/${PN}-5.1-extraneous-includes.patch + epatch "${S}"/${PN}-5.1-otool-stdc.patch + epatch "${S}"/${PN}-5.1-constant-types.patch + epatch "${S}"/${PN}-5.1-strnlen.patch + epatch "${S}"/${PN}-5.1-ppc.patch + epatch "${S}"/${PN}-5.1-thread-state-redefined.patch + epatch "${S}"/${PN}-5.1-makefile-target-warning.patch + epatch "${S}"/${PN}-6.3-lto-prefix.patch + cp ../${LD64}/src/other/prune_trie.h include/mach-o/ || die + + # do not build profileable libstuff to save compile time + sed -i -e "/^all:/s, profile , ," libstuff/Makefile + + # cctools version is provided to make via RC_ProjectSourceVersion which + # generates and compiles it as apple_version[] into libstuff. From + # there it's picked up by the individual tools. Since + # RC_ProjectSourceVersion is also used as library version, we can't + # just append our local version info. So we hack the libstuff Makefile + # to include our Gentoo version. + sed -i -e "/cctools-.*(RC_ProjectSourceVersion).*OFILE_DIR/s,Version),Version) (Gentoo ${PN}-${PVR})," \ + libstuff/Makefile + + # clean up test suite + cd "${S}"/${LD64}/unit-tests/test-cases + local c + + # we don't have llvm + ((++c)); rm -rf llvm-integration; + + # we don't have dtrace + ((++c)); rm -rf dtrace-static-probes-coalescing; + ((++c)); rm -rf dtrace-static-probes; + + # a file is missing + ((++c)); rm -rf eh-coalescing-r + + # we don't do universal binaries + ((++c)); rm -rf blank-stubs; + + # looks like a problem with apple's result-filter.pl + ((++c)); rm -rf implicit-common3; + ((++c)); rm -rf order_file-ans; + + # TODO no idea what goes wrong here + ((++c)); rm -rf dwarf-debug-notes; + + einfo "Deleted $c tests that were bound to fail" + + cd "${S}" + ebegin "cleaning Makefiles from unwanted CFLAGS" + find . -name "Makefile" -print0 | xargs -0 sed \ + -i \ + -e 's/ -g / /g' \ + -e 's/^G =.*$/G =/' \ + -e 's/^OFLAG =.*$/OFLAG =/' \ + -e 's/install -c -s/install/g' + eend $? +} + +src_configure() { + ENABLE_LTO=0 + use lto && ENABLE_LTO=1 + + export CTARGET=${CTARGET:-${CHOST}} + if [[ ${CTARGET} == ${CHOST} ]] ; then + if [[ ${CATEGORY} == cross-* ]] ; then + export CTARGET=${CATEGORY#cross-} + fi + fi + + LIBPATH=/usr/$(get_libdir)/binutils/${CTARGET}/${PV} + INCPATH=${LIBPATH}/include + DATAPATH=/usr/share/binutils-data/${CTARGET}/${PV} + if is_cross ; then + BINPATH=/usr/${CHOST}/${CTARGET}/binutils-bin/${PV} + else + BINPATH=/usr/${CTARGET}/binutils-bin/${PV} + fi + + if [[ ${CXX} == *clang* ]] ; then + if use libcxx ; then + append-cxxflags -stdlib=libc++ + CXXLIB=-stdlib=libc++ + else + # force libstdc++ for systems where libc++ is default (OS X 10.9+?) + append-cxxflags -stdlib=libstdc++ + CXXLIB=-stdlib=libstdc++ + fi + else + use libcxx && \ + ewarn "libcxx only available with clang and your C++ compiler ($CXX) does not seem to be clang" + + # force gcc-apple, FSF gcc doesn't grok this code + export CC=${CTARGET}-gcc-4.2.1 + export CXX=${CTARGET}-g++-4.2.1 + fi + + # CPPFLAGS only affects ld64, cctools don't use 'em (which currently is + # what we want) + append-cppflags -DNDEBUG + + # Block API and thus snapshots supported on >= 10.6 + [[ ${CHOST} == *darwin* && ${CHOST#*-darwin} -ge 10 ]] && \ + append-cppflags -DSUPPORT_SNAPSHOTS + + CCTOOLS_OFLAG= + if [[ ${CHOST} == *darwin* && ${CHOST#*-darwin} -le 8 ]] ; then + # cctools expect to use UNIX03 struct member names. + # This is default on > 10.4. Activate it on <= 10.4 by defining + # __DARWIN_UNIX03 explicitly. + CCTOOLS_OFLAG="-D__DARWIN_UNIX03=1" + fi + + # if compiling with USE multitarget, extract all the known arches from + # create_configure and pass them back to it + creco=${LD64}/src/create_configure + ARCHS_TO_SUPPORT="" + if use multitarget ; then + ARCHS_TO_SUPPORT="$(grep KNOWN_ARCHS= $creco | \ + cut -d\" -f2 | tr ',' ' ')" + elif use ppc-macos ; then + ARCHS_TO_SUPPORT="ppc ppc750 ppc7400 ppc7450 ppc970 ppc64 $(\ + grep RC_SUPPORTED_ARCHS= $creco | cut -d\" -f2)" + fi + + # Create configure.h for ld64 with SUPPORT_ARCH_ defines in it. + einfo "building support for: ${ARCHS_TO_SUPPORT}" + DERIVED_FILE_DIR=${LD64}/src \ + RC_SUPPORTED_ARCHS="$ARCHS_TO_SUPPORT" \ + $creco + + # do not depend on MachOFileAbstraction.hpp to define + # SUPPORT_ARCH_arm_any because that's not included by every file where + # our ppc/arm-optional patch uses it, ld.hpp in particular + grep "SUPPORT_ARCH_armv[0-9]" ${LD64}/src/configure.h >/dev/null && \ + echo "#define SUPPORT_ARCH_arm_any 1" >> ${LD64}/src/configure.h +} + +compile_ld64() { + einfo "building ${LD64}" + cd "${S}"/${LD64}/src + emake \ + LTO=${ENABLE_LTO} \ + || die "emake failed for ld64" + use test && emake build_test +} + +compile_cctools() { + einfo "building ${CCTOOLS}" + cd "${S}"/${CCTOOLS} + # -j1 because it fails too often with weird errors + # Suppress running dsymutil because it will warn about missing debug + # info which is expected when compiling without -g as we normally do. + # This might need some more thought if anyone ever wanted to build us + # for debugging with Apple's tools. + emake \ + LIB_PRUNETRIE="-L../../${LD64}/src -lprunetrie" \ + EFITOOLS= \ + ENABLE_LTO="${ENABLE_LTO}" \ + COMMON_SUBDIRS='libstuff ar misc otool' \ + SUBDIRS_32= \ + LEGACY= \ + RC_ProjectSourceVersion=${CCTOOLS_VERSION} \ + RC_CFLAGS="${CFLAGS}" \ + OFLAG="${CCTOOLS_OFLAG}" \ + CXXLIB="${CXXLIB}" \ + DSYMUTIL=": disabled: dsymutil" \ + -j1 \ + || die "emake failed for the cctools" + cd "${S}"/${CCTOOLS}/as + emake \ + BUILD_OBSOLETE_ARCH= \ + RC_ProjectSourceVersion=${CCTOOLS_VERSION} \ + RC_CFLAGS="-DASLIBEXECDIR=\"\\\"${EPREFIX}${LIBPATH}/\\\"\" ${CFLAGS}" \ + OFLAG="${CCTOOLS_OFLAG}" \ + DSYMUTIL=": disabled: dsymutil" \ + || die "emake failed for as" +} + +src_compile() { + compile_ld64 + compile_cctools +} + +install_ld64() { + exeinto ${BINPATH} + doexe "${S}"/${LD64}/src/{ld64,rebase,dyldinfo,unwinddump,ObjectDump} + dosym ld64 ${BINPATH}/ld + insinto ${DATAPATH}/man/man1 + doins "${S}"/${LD64}/doc/man/man1/{ld,ld64,rebase}.1 +} + +install_cctools() { + cd "${S}"/${CCTOOLS} + emake install_all_but_headers \ + EFITOOLS= \ + COMMON_SUBDIRS='ar misc otool' \ + SUBDIRS_32= \ + DSTROOT=\"${D}\" \ + BINDIR=\"${EPREFIX}\"${BINPATH} \ + LOCBINDIR=\"${EPREFIX}\"${BINPATH} \ + USRBINDIR=\"${EPREFIX}\"${BINPATH} \ + LOCLIBDIR=\"${EPREFIX}\"${LIBPATH} \ + MANDIR=\"${EPREFIX}\"${DATAPATH}/man/ + cd "${S}"/${CCTOOLS}/as + emake install \ + BUILD_OBSOLETE_ARCH= \ + DSTROOT=\"${D}\" \ + USRBINDIR=\"${EPREFIX}\"${BINPATH} \ + LIBDIR=\"${EPREFIX}\"${LIBPATH} \ + LOCLIBDIR=\"${EPREFIX}\"${LIBPATH} + + cd "${ED}"${BINPATH} + insinto ${DATAPATH}/man/man1 + local skips manpage + # ar brings an up-to-date manpage with it + skips=( ar ) + for bin in *; do + for skip in ${skips[@]}; do + if [[ ${bin} == ${skip} ]]; then + continue 2; + fi + done + manpage=${S}/${CCTOOLS}/man/${bin}.1 + if [[ -f "${manpage}" ]]; then + doins "${manpage}" + fi + done + insinto ${DATAPATH}/man/man5 + doins "${S}"/${CCTOOLS}/man/*.5 +} + +src_test() { + if ! [ "${EPREFIX}"/usr/bin/clang ] ; then + einfo "Test suite only works properly with clang - please install" + return + fi + + einfo "Running unit tests" + cd "${S}"/${LD64}/unit-tests/test-cases + # provide the new ld as a symlink to clang so that -ccc-install-dir + # will pick it up + ln -sfn ../../src/ld64 ld + # use our arch command because the System's will report i386 even for an + # x86_64 prefix + perl ../bin/make-recursive.pl \ + BUILT_PRODUCTS_DIR="${S}"/${LD64}/src \ + ARCH="$(arch)" \ + LD="${S}"/${LD64}/src/ld64 \ + CC="clang -ccc-install-dir $PWD" \ + CXX="clang++ -ccc-install-dir $PWD" \ + OTOOL="${S}"/${CCTOOLS}/otool/otool.NEW \ + | perl ../bin/result-filter.pl +} + +src_install() { + install_ld64 + install_cctools + + cd "${S}" + insinto /etc/env.d/binutils + cat <<-EOF > env.d + TARGET="${CHOST}" + VER="${PV}" + FAKE_TARGETS="${CHOST}" + EOF + newins env.d ${CHOST}-${PV} +} + +pkg_postinst() { + binutils-config ${CHOST}-${PV} +} diff --git a/sys-devel/binutils-apple/binutils-apple-7.0-r1.ebuild b/sys-devel/binutils-apple/binutils-apple-7.0-r1.ebuild index 039399257b2a..1d46085dfbc5 100644 --- a/sys-devel/binutils-apple/binutils-apple-7.0-r1.ebuild +++ b/sys-devel/binutils-apple/binutils-apple-7.0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2018 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI="5" @@ -20,8 +20,8 @@ SRC_URI="http://www.opensource.apple.com/tarballs/ld64/${LD64}.tar.gz https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-4.3-r1.tar.bz2 https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-5.1-r2.tar.bz2 https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-6.1-r1.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-6.3-r1.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-7.0-r2.tar.bz2" + https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-6.3-r2.tar.bz2 + https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-7.0-r3.tar.bz2" LICENSE="APSL-2" KEYWORDS="~ppc-macos ~x64-macos ~x86-macos" diff --git a/sys-devel/binutils-apple/binutils-apple-7.0.ebuild b/sys-devel/binutils-apple/binutils-apple-7.0.ebuild deleted file mode 100644 index 805b4d51e50a..000000000000 --- a/sys-devel/binutils-apple/binutils-apple-7.0.ebuild +++ /dev/null @@ -1,366 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="5" - -inherit eutils flag-o-matic toolchain-funcs - -LD64=ld64-253.3 -CCTOOLS_VERSION=877.5 -CCTOOLS=cctools-${CCTOOLS_VERSION} -LIBUNWIND=libunwind-35.3 -DYLD=dyld-360.14 - -DESCRIPTION="Darwin assembler as(1) and static linker ld(1), Xcode Tools ${PV}" -HOMEPAGE="http://www.opensource.apple.com/darwinsource/" -SRC_URI="http://www.opensource.apple.com/tarballs/ld64/${LD64}.tar.gz - http://www.opensource.apple.com/tarballs/cctools/${CCTOOLS}.tar.gz - http://www.opensource.apple.com/tarballs/dyld/${DYLD}.tar.gz - http://www.opensource.apple.com/tarballs/libunwind/${LIBUNWIND}.tar.gz - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-4.3-r1.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-5.1-r2.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-6.1-r1.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-6.3-r1.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-7.0-r1.tar.bz2" - -LICENSE="APSL-2" -KEYWORDS="~ppc-macos ~x64-macos ~x86-macos" -IUSE="test multitarget" - -# ld64 can now only be compiled using llvm and libc++ since it massivley uses -# C++11 language fatures. *But additionally* the as driver now defaults to -# calling clang as the assembler on many platforms. This can be disabled using -# -Wa,-Q but since it's default we make llvm a static runtime dependency. - -# Also, llvm lto and disassembler interfaces are now widely used in cctools. -# Since we cannot compile with gcc any more and every llvm since 3.4 has -# provided those interfaces, we no longer support disabling them. That -# indirectly makes xar a static runtime dependency. -RDEPEND="sys-devel/binutils-config - app-arch/xar - sys-devel/llvm:* - sys-libs/libcxx" -DEPEND="${RDEPEND} - test? ( >=dev-lang/perl-5.8.8 )" - -SLOT="7" - -S=${WORKDIR} - -is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } - -src_prepare() { - if use multitarget ; then - ewarn "You have enabled support for non-standard target architectures" - ewarn "using USE=multitarget. This includes experimental support for" - ewarn "ppc and ppc64 which is a community forward-port from the last" - ewarn "version of ld64 to officially support PPC." - - if [[ ${CHOST} == powerpc*-darwin* ]] ; then - ewarn "HERE BE DRAGONS! Your system seems to be PPC which means that" - ewarn "the actual usability of your Gentoo programs will depend on the" - ewarn "above-mentioned experimental PPC support in the linker. Be" - ewarn "sure to keep a known-to-work version like ${PN}-3.2.6 around!" - fi - fi - - cd "${S}"/${LD64}/src - cp "${S}"/ld64-136-compile_stubs.h ld/compile_stubs.h - cp "${S}"/ld64-253.3-Makefile-2 Makefile - - epatch "${S}"/ld64-241.9-extraneous-includes.patch - epatch "${S}"/ld64-241.9-osatomic.patch - epatch "${S}"/ld64-236.3-crashreporter.patch - epatch "${S}"/ld64-253.3-nosnapshots.patch - epatch "${S}"/ld64-253.3-ppc.patch - epatch "${S}"/ld64-236.3-constant-types-2.patch - epatch "${S}"/ld64-241.9-register-names.patch - epatch "${S}"/ld64-241.9-get-comm-align.patch - epatch "${S}"/ld64-241.9-cc_md5.patch - epatch "${S}"/ld64-253.3-make_pair.patch - epatch "${S}"/ld64-253.3-delete-warning.patch - - # provide missing headers from libunwind and dyld - mkdir -p include/{mach,mach-o/arm} || die - # never present because it's private - cp ../../${DYLD}/include/mach-o/dyld_priv.h include/mach-o || die - # missing on <= 10.5 - cp ../../${LIBUNWIND}/include/libunwind.h include/ || die - cp ../../${LIBUNWIND}/include/mach-o/compact_unwind_encoding.h include/mach-o || die - # missing on <= 10.4 - cp ../../${DYLD}/include/mach-o/dyld_images.h include/mach-o || die - cp ../../${CCTOOLS}/include/mach-o/loader.h include/mach-o || die - # use copies from cctools because they're otherwise hidden in some SDK - cp ../../${CCTOOLS}/include/mach-o/arm/reloc.h include/mach-o/arm || die - # provide all required CPU_TYPEs on all platforms - cp ../../${CCTOOLS}/include/mach/machine.h include/mach/machine.h - # add alias for newer identifiers, because ld64 uses both but cctools - # header only defines the older - epatch "${S}"/ld64-236.3-missing-cputypes.patch - - # mimic OS X Leopard-style Availability.h macros for libunwind.h on - # older systems - [[ ${CHOST} == *darwin* && ${CHOST#*-darwin} -le 8 ]] && \ - echo "#define __OSX_AVAILABLE_STARTING(x,y) " > include/Availability.h - - local VER_STR="\"@(#)PROGRAM:ld PROJECT:${LD64} (Gentoo ${PN}-${PVR})\\n\"" - echo "char ldVersionString[] = ${VER_STR};" > version.cpp - - epatch "${S}"/ld64-123.2-debug-backtrace.patch - if [[ ${CHOST} == powerpc*-darwin* ]] ; then - epatch "${S}"/ld64-123.2-darwin8-no-mlong-branch-warning.patch - epatch "${S}"/ld64-127.2-thread_state.patch - fi - - cd "${S}"/${CCTOOLS} - epatch "${S}"/${PN}-4.5-as.patch - epatch "${S}"/${PN}-5.1-as-dir.patch - epatch "${S}"/${PN}-5.1-ranlib.patch - epatch "${S}"/${PN}-3.1.1-libtool-ranlib.patch - epatch "${S}"/${PN}-3.1.1-no-headers.patch - epatch "${S}"/${PN}-4.0-no-oss-dir.patch - epatch "${S}"/cctools-839-intel-retf.patch - epatch "${S}"/${PN}-5.1-extraneous-includes.patch - #epatch "${S}"/${PN}-5.1-otool-stdc.patch - epatch "${S}"/${PN}-5.1-constant-types.patch - epatch "${S}"/${PN}-5.1-strnlen.patch - epatch "${S}"/${PN}-5.1-ppc.patch - epatch "${S}"/${PN}-5.1-thread-state-redefined.patch - epatch "${S}"/${PN}-5.1-makefile-target-warning.patch - epatch "${S}"/${PN}-7.0-lto-prefix.patch - epatch "${S}"/${PN}-7.0-clang-as.patch - cp ../${LD64}/src/other/prune_trie.h include/mach-o/ || die - - # do not build profileable libstuff to save compile time - sed -i -e "/^all:/s, profile , ," libstuff/Makefile - - # cctools version is provided to make via RC_ProjectSourceVersion which - # generates and compiles it as apple_version[] into libstuff. From - # there it's picked up by the individual tools. Since - # RC_ProjectSourceVersion is also used as library version, we can't - # just append our local version info. So we hack the libstuff Makefile - # to include our Gentoo version. - sed -i -e "/cctools-.*(RC_ProjectSourceVersion).*OFILE_DIR/s,Version),Version) (Gentoo ${PN}-${PVR})," \ - libstuff/Makefile - - # clean up test suite - cd "${S}"/${LD64}/unit-tests/test-cases - local c - - # we don't have llvm - ((++c)); rm -rf llvm-integration; - - # we don't have dtrace - ((++c)); rm -rf dtrace-static-probes-coalescing; - ((++c)); rm -rf dtrace-static-probes; - - # a file is missing - ((++c)); rm -rf eh-coalescing-r - - # we don't do universal binaries - ((++c)); rm -rf blank-stubs; - - # looks like a problem with apple's result-filter.pl - ((++c)); rm -rf implicit-common3; - ((++c)); rm -rf order_file-ans; - - # TODO no idea what goes wrong here - ((++c)); rm -rf dwarf-debug-notes; - - einfo "Deleted $c tests that were bound to fail" - - cd "${S}" - ebegin "cleaning Makefiles from unwanted CFLAGS" - find . -name "Makefile" -print0 | xargs -0 sed \ - -i \ - -e 's/ -g / /g' \ - -e 's/^G =.*$/G =/' \ - -e 's/^OFLAG =.*$/OFLAG =/' \ - -e 's/install -c -s/install/g' - eend $? -} - -src_configure() { - export CTARGET=${CTARGET:-${CHOST}} - if [[ ${CTARGET} == ${CHOST} ]] ; then - if [[ ${CATEGORY} == cross-* ]] ; then - export CTARGET=${CATEGORY#cross-} - fi - fi - - LIBPATH=/usr/$(get_libdir)/binutils/${CTARGET}/${PV} - INCPATH=${LIBPATH}/include - DATAPATH=/usr/share/binutils-data/${CTARGET}/${PV} - if is_cross ; then - BINPATH=/usr/${CHOST}/${CTARGET}/binutils-bin/${PV} - else - BINPATH=/usr/${CTARGET}/binutils-bin/${PV} - fi - - # CPPFLAGS only affects ld64, cctools don't use 'em (which currently is - # what we want) - append-cppflags -DNDEBUG - - # Block API and thus snapshots supported on >= 10.6 - [[ ${CHOST} == *darwin* && ${CHOST#*-darwin} -ge 10 ]] && \ - append-cppflags -DSUPPORT_SNAPSHOTS - - CCTOOLS_OFLAG= - if [[ ${CHOST} == *darwin* && ${CHOST#*-darwin} -le 8 ]] ; then - # cctools expect to use UNIX03 struct member names. - # This is default on > 10.4. Activate it on <= 10.4 by defining - # __DARWIN_UNIX03 explicitly. - CCTOOLS_OFLAG="-D__DARWIN_UNIX03=1" - fi - - # if compiling with USE multitarget, extract all the known arches from - # create_configure and pass them back to it - creco=${LD64}/src/create_configure - ARCHS_TO_SUPPORT="" - if use multitarget ; then - ARCHS_TO_SUPPORT="$(grep KNOWN_ARCHS= $creco | \ - cut -d\" -f2 | tr ',' ' ')" - fi - - # Create configure.h for ld64 with SUPPORT_ARCH_ defines in it. - DERIVED_FILE_DIR=${LD64}/src \ - RC_SUPPORTED_ARCHS="$ARCHS_TO_SUPPORT" \ - $creco - - # do not depend on MachOFileAbstraction.hpp to define - # SUPPORT_ARCH_arm_any because that's not included by every file where - # our ppc/arm-optional patch uses it, ld.hpp in particular - grep "SUPPORT_ARCH_armv[0-9]" ${LD64}/src/configure.h >/dev/null && \ - echo "#define SUPPORT_ARCH_arm_any 1" >> ${LD64}/src/configure.h -} - -compile_ld64() { - einfo "building ${LD64}" - cd "${S}"/${LD64}/src - emake || die "emake failed for ld64" - use test && emake build_test -} - -compile_cctools() { - einfo "building ${CCTOOLS}" - cd "${S}"/${CCTOOLS} - # -j1 because it fails too often with weird errors - # Suppress running dsymutil because it will warn about missing debug - # info which is expected when compiling without -g as we normally do. - # This might need some more thought if anyone ever wanted to build us - # for debugging with Apple's tools. - emake \ - LIB_PRUNETRIE="-L../../${LD64}/src -lprunetrie" \ - EFITOOLS= \ - COMMON_SUBDIRS='libstuff ar misc otool' \ - SUBDIRS_32= \ - LEGACY= \ - RC_ProjectSourceVersion=${CCTOOLS_VERSION} \ - RC_CFLAGS="${CFLAGS}" \ - OFLAG="${CCTOOLS_OFLAG}" \ - DSYMUTIL=": disabled: dsymutil" \ - -j1 \ - || die "emake failed for the cctools" - cd "${S}"/${CCTOOLS}/as - emake \ - BUILD_OBSOLETE_ARCH= \ - RC_ProjectSourceVersion=${CCTOOLS_VERSION} \ - RC_CFLAGS="-DASLIBEXECDIR=\"\\\"${EPREFIX}${LIBPATH}/\\\"\" -DCLANGDIR=\"\\\"${EPREFIX}/usr/bin/\\\"\" ${CFLAGS}" \ - OFLAG="${CCTOOLS_OFLAG}" \ - DSYMUTIL=": disabled: dsymutil" \ - || die "emake failed for as" -} - -src_compile() { - compile_ld64 - compile_cctools -} - -install_ld64() { - exeinto ${BINPATH} - doexe "${S}"/${LD64}/src/{ld64,rebase,dyldinfo,unwinddump,ObjectDump} - dosym ld64 ${BINPATH}/ld - insinto ${DATAPATH}/man/man1 - doins "${S}"/${LD64}/doc/man/man1/{ld,ld64,rebase}.1 -} - -install_cctools() { - cd "${S}"/${CCTOOLS} - emake install_all_but_headers \ - EFITOOLS= \ - COMMON_SUBDIRS='ar misc otool' \ - SUBDIRS_32= \ - DSTROOT=\"${D}\" \ - BINDIR=\"${EPREFIX}\"${BINPATH} \ - LOCBINDIR=\"${EPREFIX}\"${BINPATH} \ - USRBINDIR=\"${EPREFIX}\"${BINPATH} \ - LOCLIBDIR=\"${EPREFIX}\"${LIBPATH} \ - MANDIR=\"${EPREFIX}\"${DATAPATH}/man/ - cd "${S}"/${CCTOOLS}/as - emake install \ - BUILD_OBSOLETE_ARCH= \ - DSTROOT=\"${D}\" \ - USRBINDIR=\"${EPREFIX}\"${BINPATH} \ - LIBDIR=\"${EPREFIX}\"${LIBPATH} \ - LOCLIBDIR=\"${EPREFIX}\"${LIBPATH} - - cd "${ED}"${BINPATH} - insinto ${DATAPATH}/man/man1 - local skips manpage - # ar brings an up-to-date manpage with it - skips=( ar ) - for bin in *; do - for skip in ${skips[@]}; do - if [[ ${bin} == ${skip} ]]; then - continue 2; - fi - done - manpage=${S}/${CCTOOLS}/man/${bin}.1 - if [[ -f "${manpage}" ]]; then - doins "${manpage}" - fi - done - insinto ${DATAPATH}/man/man5 - doins "${S}"/${CCTOOLS}/man/*.5 -} - -src_test() { - if ! [ "${EPREFIX}"/usr/bin/clang ] ; then - einfo "Test suite only works properly with clang - please install" - return - fi - - einfo "Running unit tests" - cd "${S}"/${LD64}/unit-tests/test-cases - # provide the new ld as a symlink to clang so that -ccc-install-dir - # will pick it up - ln -sfn ../../src/ld64 ld - # use our arch command because the System's will report i386 even for an - # x86_64 prefix - perl ../bin/make-recursive.pl \ - BUILT_PRODUCTS_DIR="${S}"/${LD64}/src \ - ARCH="$(arch)" \ - LD="${S}"/${LD64}/src/ld64 \ - CC="${CC} -ccc-install-dir $PWD" \ - CXX="${CXX} -ccc-install-dir $PWD" \ - OTOOL="${S}"/${CCTOOLS}/otool/otool.NEW \ - | perl ../bin/result-filter.pl -} - -src_install() { - install_ld64 - install_cctools - - cd "${S}" - insinto /etc/env.d/binutils - cat <<-EOF > env.d - TARGET="${CHOST}" - VER="${PV}" - FAKE_TARGETS="${CHOST}" - EOF - newins env.d ${CHOST}-${PV} -} - -pkg_postinst() { - binutils-config ${CHOST}-${PV} -} diff --git a/sys-devel/binutils-apple/binutils-apple-7.1-r1.ebuild b/sys-devel/binutils-apple/binutils-apple-7.1-r1.ebuild index 6ee67d9bd04f..9bf30b1f105c 100644 --- a/sys-devel/binutils-apple/binutils-apple-7.1-r1.ebuild +++ b/sys-devel/binutils-apple/binutils-apple-7.1-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2018 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI="5" @@ -20,8 +20,8 @@ SRC_URI="http://www.opensource.apple.com/tarballs/ld64/${LD64}.tar.gz https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-4.3-r1.tar.bz2 https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-5.1-r2.tar.bz2 https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-6.1-r1.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-6.3-r1.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-7.0-r2.tar.bz2" + https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-6.3-r2.tar.bz2 + https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-7.0-r3.tar.bz2" LICENSE="APSL-2" KEYWORDS="~ppc-macos ~x64-macos ~x86-macos" diff --git a/sys-devel/binutils-apple/binutils-apple-7.1.ebuild b/sys-devel/binutils-apple/binutils-apple-7.1.ebuild deleted file mode 100644 index ed6be55fb9a3..000000000000 --- a/sys-devel/binutils-apple/binutils-apple-7.1.ebuild +++ /dev/null @@ -1,366 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="5" - -inherit eutils flag-o-matic toolchain-funcs - -LD64=ld64-253.6 -CCTOOLS_VERSION=877.7 -CCTOOLS=cctools-${CCTOOLS_VERSION} -LIBUNWIND=libunwind-35.3 -DYLD=dyld-360.17 - -DESCRIPTION="Darwin assembler as(1) and static linker ld(1), Xcode Tools ${PV}" -HOMEPAGE="http://www.opensource.apple.com/darwinsource/" -SRC_URI="http://www.opensource.apple.com/tarballs/ld64/${LD64}.tar.gz - http://www.opensource.apple.com/tarballs/cctools/${CCTOOLS}.tar.gz - http://www.opensource.apple.com/tarballs/dyld/${DYLD}.tar.gz - http://www.opensource.apple.com/tarballs/libunwind/${LIBUNWIND}.tar.gz - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-4.3-r1.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-5.1-r2.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-6.1-r1.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-6.3-r1.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-7.0-r1.tar.bz2" - -LICENSE="APSL-2" -KEYWORDS="~ppc-macos ~x64-macos ~x86-macos" -IUSE="test multitarget" - -# ld64 can now only be compiled using llvm and libc++ since it massivley uses -# C++11 language fatures. *But additionally* the as driver now defaults to -# calling clang as the assembler on many platforms. This can be disabled using -# -Wa,-Q but since it's default we make llvm a static runtime dependency. - -# Also, llvm lto and disassembler interfaces are now widely used in cctools. -# Since we cannot compile with gcc any more and every llvm since 3.4 has -# provided those interfaces, we no longer support disabling them. That -# indirectly makes xar a static runtime dependency. -RDEPEND="sys-devel/binutils-config - app-arch/xar - sys-devel/llvm:* - sys-libs/libcxx" -DEPEND="${RDEPEND} - test? ( >=dev-lang/perl-5.8.8 )" - -SLOT="7" - -S=${WORKDIR} - -is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } - -src_prepare() { - if use multitarget ; then - ewarn "You have enabled support for non-standard target architectures" - ewarn "using USE=multitarget. This includes experimental support for" - ewarn "ppc and ppc64 which is a community forward-port from the last" - ewarn "version of ld64 to officially support PPC." - - if [[ ${CHOST} == powerpc*-darwin* ]] ; then - ewarn "HERE BE DRAGONS! Your system seems to be PPC which means that" - ewarn "the actual usability of your Gentoo programs will depend on the" - ewarn "above-mentioned experimental PPC support in the linker. Be" - ewarn "sure to keep a known-to-work version like ${PN}-3.2.6 around!" - fi - fi - - cd "${S}"/${LD64}/src - cp "${S}"/ld64-136-compile_stubs.h ld/compile_stubs.h - cp "${S}"/ld64-253.3-Makefile-2 Makefile - - epatch "${S}"/ld64-241.9-extraneous-includes.patch - epatch "${S}"/ld64-241.9-osatomic.patch - epatch "${S}"/ld64-236.3-crashreporter.patch - epatch "${S}"/ld64-253.3-nosnapshots.patch - epatch "${S}"/ld64-253.3-ppc.patch - epatch "${S}"/ld64-236.3-constant-types-2.patch - epatch "${S}"/ld64-241.9-register-names.patch - epatch "${S}"/ld64-241.9-get-comm-align.patch - epatch "${S}"/ld64-241.9-cc_md5.patch - epatch "${S}"/ld64-253.3-make_pair.patch - epatch "${S}"/ld64-253.3-delete-warning.patch - - # provide missing headers from libunwind and dyld - mkdir -p include/{mach,mach-o/arm} || die - # never present because it's private - cp ../../${DYLD}/include/mach-o/dyld_priv.h include/mach-o || die - # missing on <= 10.5 - cp ../../${LIBUNWIND}/include/libunwind.h include/ || die - cp ../../${LIBUNWIND}/include/mach-o/compact_unwind_encoding.h include/mach-o || die - # missing on <= 10.4 - cp ../../${DYLD}/include/mach-o/dyld_images.h include/mach-o || die - cp ../../${CCTOOLS}/include/mach-o/loader.h include/mach-o || die - # use copies from cctools because they're otherwise hidden in some SDK - cp ../../${CCTOOLS}/include/mach-o/arm/reloc.h include/mach-o/arm || die - # provide all required CPU_TYPEs on all platforms - cp ../../${CCTOOLS}/include/mach/machine.h include/mach/machine.h - # add alias for newer identifiers, because ld64 uses both but cctools - # header only defines the older - epatch "${S}"/ld64-236.3-missing-cputypes.patch - - # mimic OS X Leopard-style Availability.h macros for libunwind.h on - # older systems - [[ ${CHOST} == *darwin* && ${CHOST#*-darwin} -le 8 ]] && \ - echo "#define __OSX_AVAILABLE_STARTING(x,y) " > include/Availability.h - - local VER_STR="\"@(#)PROGRAM:ld PROJECT:${LD64} (Gentoo ${PN}-${PVR})\\n\"" - echo "char ldVersionString[] = ${VER_STR};" > version.cpp - - epatch "${S}"/ld64-123.2-debug-backtrace.patch - if [[ ${CHOST} == powerpc*-darwin* ]] ; then - epatch "${S}"/ld64-123.2-darwin8-no-mlong-branch-warning.patch - epatch "${S}"/ld64-127.2-thread_state.patch - fi - - cd "${S}"/${CCTOOLS} - epatch "${S}"/${PN}-4.5-as.patch - epatch "${S}"/${PN}-5.1-as-dir.patch - epatch "${S}"/${PN}-5.1-ranlib.patch - epatch "${S}"/${PN}-3.1.1-libtool-ranlib.patch - epatch "${S}"/${PN}-3.1.1-no-headers.patch - epatch "${S}"/${PN}-4.0-no-oss-dir.patch - epatch "${S}"/cctools-839-intel-retf.patch - epatch "${S}"/${PN}-5.1-extraneous-includes.patch - #epatch "${S}"/${PN}-5.1-otool-stdc.patch - epatch "${S}"/${PN}-5.1-constant-types.patch - epatch "${S}"/${PN}-5.1-strnlen.patch - epatch "${S}"/${PN}-5.1-ppc.patch - epatch "${S}"/${PN}-5.1-thread-state-redefined.patch - epatch "${S}"/${PN}-5.1-makefile-target-warning.patch - epatch "${S}"/${PN}-7.0-lto-prefix.patch - epatch "${S}"/${PN}-7.0-clang-as.patch - cp ../${LD64}/src/other/prune_trie.h include/mach-o/ || die - - # do not build profileable libstuff to save compile time - sed -i -e "/^all:/s, profile , ," libstuff/Makefile - - # cctools version is provided to make via RC_ProjectSourceVersion which - # generates and compiles it as apple_version[] into libstuff. From - # there it's picked up by the individual tools. Since - # RC_ProjectSourceVersion is also used as library version, we can't - # just append our local version info. So we hack the libstuff Makefile - # to include our Gentoo version. - sed -i -e "/cctools-.*(RC_ProjectSourceVersion).*OFILE_DIR/s,Version),Version) (Gentoo ${PN}-${PVR})," \ - libstuff/Makefile - - # clean up test suite - cd "${S}"/${LD64}/unit-tests/test-cases - local c - - # we don't have llvm - ((++c)); rm -rf llvm-integration; - - # we don't have dtrace - ((++c)); rm -rf dtrace-static-probes-coalescing; - ((++c)); rm -rf dtrace-static-probes; - - # a file is missing - ((++c)); rm -rf eh-coalescing-r - - # we don't do universal binaries - ((++c)); rm -rf blank-stubs; - - # looks like a problem with apple's result-filter.pl - ((++c)); rm -rf implicit-common3; - ((++c)); rm -rf order_file-ans; - - # TODO no idea what goes wrong here - ((++c)); rm -rf dwarf-debug-notes; - - einfo "Deleted $c tests that were bound to fail" - - cd "${S}" - ebegin "cleaning Makefiles from unwanted CFLAGS" - find . -name "Makefile" -print0 | xargs -0 sed \ - -i \ - -e 's/ -g / /g' \ - -e 's/^G =.*$/G =/' \ - -e 's/^OFLAG =.*$/OFLAG =/' \ - -e 's/install -c -s/install/g' - eend $? -} - -src_configure() { - # CPPFLAGS only affects ld64, cctools don't use 'em (which currently is - # what we want) - append-cppflags -DNDEBUG - - export CTARGET=${CTARGET:-${CHOST}} - if [[ ${CTARGET} == ${CHOST} ]] ; then - if [[ ${CATEGORY} == cross-* ]] ; then - export CTARGET=${CATEGORY#cross-} - fi - fi - - LIBPATH=/usr/$(get_libdir)/binutils/${CTARGET}/${PV} - INCPATH=${LIBPATH}/include - DATAPATH=/usr/share/binutils-data/${CTARGET}/${PV} - if is_cross ; then - BINPATH=/usr/${CHOST}/${CTARGET}/binutils-bin/${PV} - else - BINPATH=/usr/${CTARGET}/binutils-bin/${PV} - fi - - # Block API and thus snapshots supported on >= 10.6 - [[ ${CHOST} == *darwin* && ${CHOST#*-darwin} -ge 10 ]] && \ - append-cppflags -DSUPPORT_SNAPSHOTS - - CCTOOLS_OFLAG= - if [[ ${CHOST} == *darwin* && ${CHOST#*-darwin} -le 8 ]] ; then - # cctools expect to use UNIX03 struct member names. - # This is default on > 10.4. Activate it on <= 10.4 by defining - # __DARWIN_UNIX03 explicitly. - CCTOOLS_OFLAG="-D__DARWIN_UNIX03=1" - fi - - # if compiling with USE multitarget, extract all the known arches from - # create_configure and pass them back to it - creco=${LD64}/src/create_configure - ARCHS_TO_SUPPORT="" - if use multitarget ; then - ARCHS_TO_SUPPORT="$(grep KNOWN_ARCHS= $creco | \ - cut -d\" -f2 | tr ',' ' ')" - fi - - # Create configure.h for ld64 with SUPPORT_ARCH_ defines in it. - DERIVED_FILE_DIR=${LD64}/src \ - RC_SUPPORTED_ARCHS="$ARCHS_TO_SUPPORT" \ - $creco - - # do not depend on MachOFileAbstraction.hpp to define - # SUPPORT_ARCH_arm_any because that's not included by every file where - # our ppc/arm-optional patch uses it, ld.hpp in particular - grep "SUPPORT_ARCH_armv[0-9]" ${LD64}/src/configure.h >/dev/null && \ - echo "#define SUPPORT_ARCH_arm_any 1" >> ${LD64}/src/configure.h -} - -compile_ld64() { - einfo "building ${LD64}" - cd "${S}"/${LD64}/src - emake || die "emake failed for ld64" - use test && emake build_test -} - -compile_cctools() { - einfo "building ${CCTOOLS}" - cd "${S}"/${CCTOOLS} - # -j1 because it fails too often with weird errors - # Suppress running dsymutil because it will warn about missing debug - # info which is expected when compiling without -g as we normally do. - # This might need some more thought if anyone ever wanted to build us - # for debugging with Apple's tools. - emake \ - LIB_PRUNETRIE="-L../../${LD64}/src -lprunetrie" \ - EFITOOLS= \ - COMMON_SUBDIRS='libstuff ar misc otool' \ - SUBDIRS_32= \ - LEGACY= \ - RC_ProjectSourceVersion=${CCTOOLS_VERSION} \ - RC_CFLAGS="${CFLAGS}" \ - OFLAG="${CCTOOLS_OFLAG}" \ - DSYMUTIL=": disabled: dsymutil" \ - -j1 \ - || die "emake failed for the cctools" - cd "${S}"/${CCTOOLS}/as - emake \ - BUILD_OBSOLETE_ARCH= \ - RC_ProjectSourceVersion=${CCTOOLS_VERSION} \ - RC_CFLAGS="-DASLIBEXECDIR=\"\\\"${EPREFIX}${LIBPATH}/\\\"\" -DCLANGDIR=\"\\\"${EPREFIX}/usr/bin/\\\"\" ${CFLAGS}" \ - OFLAG="${CCTOOLS_OFLAG}" \ - DSYMUTIL=": disabled: dsymutil" \ - || die "emake failed for as" -} - -src_compile() { - compile_ld64 - compile_cctools -} - -install_ld64() { - exeinto ${BINPATH} - doexe "${S}"/${LD64}/src/{ld64,rebase,dyldinfo,unwinddump,ObjectDump} - dosym ld64 ${BINPATH}/ld - insinto ${DATAPATH}/man/man1 - doins "${S}"/${LD64}/doc/man/man1/{ld,ld64,rebase}.1 -} - -install_cctools() { - cd "${S}"/${CCTOOLS} - emake install_all_but_headers \ - EFITOOLS= \ - COMMON_SUBDIRS='ar misc otool' \ - SUBDIRS_32= \ - DSTROOT=\"${D}\" \ - BINDIR=\"${EPREFIX}\"${BINPATH} \ - LOCBINDIR=\"${EPREFIX}\"${BINPATH} \ - USRBINDIR=\"${EPREFIX}\"${BINPATH} \ - LOCLIBDIR=\"${EPREFIX}\"${LIBPATH} \ - MANDIR=\"${EPREFIX}\"${DATAPATH}/man/ - cd "${S}"/${CCTOOLS}/as - emake install \ - BUILD_OBSOLETE_ARCH= \ - DSTROOT=\"${D}\" \ - USRBINDIR=\"${EPREFIX}\"${BINPATH} \ - LIBDIR=\"${EPREFIX}\"${LIBPATH} \ - LOCLIBDIR=\"${EPREFIX}\"${LIBPATH} - - cd "${ED}"${BINPATH} - insinto ${DATAPATH}/man/man1 - local skips manpage - # ar brings an up-to-date manpage with it - skips=( ar ) - for bin in *; do - for skip in ${skips[@]}; do - if [[ ${bin} == ${skip} ]]; then - continue 2; - fi - done - manpage=${S}/${CCTOOLS}/man/${bin}.1 - if [[ -f "${manpage}" ]]; then - doins "${manpage}" - fi - done - insinto ${DATAPATH}/man/man5 - doins "${S}"/${CCTOOLS}/man/*.5 -} - -src_test() { - if ! [ "${EPREFIX}"/usr/bin/clang ] ; then - einfo "Test suite only works properly with clang - please install" - return - fi - - einfo "Running unit tests" - cd "${S}"/${LD64}/unit-tests/test-cases - # provide the new ld as a symlink to clang so that -ccc-install-dir - # will pick it up - ln -sfn ../../src/ld64 ld - # use our arch command because the System's will report i386 even for an - # x86_64 prefix - perl ../bin/make-recursive.pl \ - BUILT_PRODUCTS_DIR="${S}"/${LD64}/src \ - ARCH="$(arch)" \ - LD="${S}"/${LD64}/src/ld64 \ - CC="${CC} -ccc-install-dir $PWD" \ - CXX="${CXX} -ccc-install-dir $PWD" \ - OTOOL="${S}"/${CCTOOLS}/otool/otool.NEW \ - | perl ../bin/result-filter.pl -} - -src_install() { - install_ld64 - install_cctools - - cd "${S}" - insinto /etc/env.d/binutils - cat <<-EOF > env.d - TARGET="${CHOST}" - VER="${PV}" - FAKE_TARGETS="${CHOST}" - EOF - newins env.d ${CHOST}-${PV} -} - -pkg_postinst() { - binutils-config ${CHOST}-${PV} -} diff --git a/sys-devel/binutils-apple/binutils-apple-7.2-r1.ebuild b/sys-devel/binutils-apple/binutils-apple-7.2-r1.ebuild index 8cae70ffc663..7bf3b8b52ade 100644 --- a/sys-devel/binutils-apple/binutils-apple-7.2-r1.ebuild +++ b/sys-devel/binutils-apple/binutils-apple-7.2-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2018 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI="5" @@ -20,9 +20,9 @@ SRC_URI="http://www.opensource.apple.com/tarballs/ld64/${LD64}.tar.gz https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-4.3-r1.tar.bz2 https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-5.1-r2.tar.bz2 https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-6.1-r1.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-6.3-r1.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-7.0-r2.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-7.2-r0.tar.bz2" + https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-6.3-r2.tar.bz2 + https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-7.0-r3.tar.bz2 + https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-7.2-r1.tar.bz2" LICENSE="APSL-2" KEYWORDS="~ppc-macos ~x64-macos ~x86-macos" diff --git a/sys-devel/binutils-apple/binutils-apple-7.2.ebuild b/sys-devel/binutils-apple/binutils-apple-7.2.ebuild deleted file mode 100644 index 4f76f80df25a..000000000000 --- a/sys-devel/binutils-apple/binutils-apple-7.2.ebuild +++ /dev/null @@ -1,366 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="5" - -inherit eutils flag-o-matic toolchain-funcs - -LD64=ld64-253.9 -CCTOOLS_VERSION=877.8 -CCTOOLS=cctools-${CCTOOLS_VERSION} -LIBUNWIND=libunwind-35.3 -DYLD=dyld-360.18 - -DESCRIPTION="Darwin assembler as(1) and static linker ld(1), Xcode Tools ${PV}" -HOMEPAGE="http://www.opensource.apple.com/darwinsource/" -SRC_URI="http://www.opensource.apple.com/tarballs/ld64/${LD64}.tar.gz - http://www.opensource.apple.com/tarballs/cctools/${CCTOOLS}.tar.gz - http://www.opensource.apple.com/tarballs/dyld/${DYLD}.tar.gz - http://www.opensource.apple.com/tarballs/libunwind/${LIBUNWIND}.tar.gz - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-4.3-r1.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-5.1-r2.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-6.1-r1.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-6.3-r1.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-7.0-r1.tar.bz2" - -LICENSE="APSL-2" -KEYWORDS="~ppc-macos ~x64-macos ~x86-macos" -IUSE="test multitarget" - -# ld64 can now only be compiled using llvm and libc++ since it massivley uses -# C++11 language fatures. *But additionally* the as driver now defaults to -# calling clang as the assembler on many platforms. This can be disabled using -# -Wa,-Q but since it's default we make llvm a static runtime dependency. - -# Also, llvm lto and disassembler interfaces are now widely used in cctools. -# Since we cannot compile with gcc any more and every llvm since 3.4 has -# provided those interfaces, we no longer support disabling them. That -# indirectly makes xar a static runtime dependency. -RDEPEND="sys-devel/binutils-config - app-arch/xar - sys-devel/llvm:* - sys-libs/libcxx" -DEPEND="${RDEPEND} - test? ( >=dev-lang/perl-5.8.8 )" - -SLOT="7" - -S=${WORKDIR} - -is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } - -src_prepare() { - if use multitarget ; then - ewarn "You have enabled support for non-standard target architectures" - ewarn "using USE=multitarget. This includes experimental support for" - ewarn "ppc and ppc64 which is a community forward-port from the last" - ewarn "version of ld64 to officially support PPC." - - if [[ ${CHOST} == powerpc*-darwin* ]] ; then - ewarn "HERE BE DRAGONS! Your system seems to be PPC which means that" - ewarn "the actual usability of your Gentoo programs will depend on the" - ewarn "above-mentioned experimental PPC support in the linker. Be" - ewarn "sure to keep a known-to-work version like ${PN}-3.2.6 around!" - fi - fi - - cd "${S}"/${LD64}/src - cp "${S}"/ld64-136-compile_stubs.h ld/compile_stubs.h - cp "${S}"/ld64-253.3-Makefile-2 Makefile - - epatch "${S}"/ld64-241.9-extraneous-includes.patch - epatch "${S}"/ld64-241.9-osatomic.patch - epatch "${S}"/ld64-236.3-crashreporter.patch - epatch "${S}"/ld64-253.3-nosnapshots.patch - epatch "${S}"/ld64-253.3-ppc.patch - epatch "${S}"/ld64-236.3-constant-types-2.patch - epatch "${S}"/ld64-241.9-register-names.patch - epatch "${S}"/ld64-241.9-get-comm-align.patch - epatch "${S}"/ld64-241.9-cc_md5.patch - epatch "${S}"/ld64-253.3-make_pair.patch - epatch "${S}"/ld64-253.3-delete-warning.patch - - # provide missing headers from libunwind and dyld - mkdir -p include/{mach,mach-o/arm} || die - # never present because it's private - cp ../../${DYLD}/include/mach-o/dyld_priv.h include/mach-o || die - # missing on <= 10.5 - cp ../../${LIBUNWIND}/include/libunwind.h include/ || die - cp ../../${LIBUNWIND}/include/mach-o/compact_unwind_encoding.h include/mach-o || die - # missing on <= 10.4 - cp ../../${DYLD}/include/mach-o/dyld_images.h include/mach-o || die - cp ../../${CCTOOLS}/include/mach-o/loader.h include/mach-o || die - # use copies from cctools because they're otherwise hidden in some SDK - cp ../../${CCTOOLS}/include/mach-o/arm/reloc.h include/mach-o/arm || die - # provide all required CPU_TYPEs on all platforms - cp ../../${CCTOOLS}/include/mach/machine.h include/mach/machine.h - # add alias for newer identifiers, because ld64 uses both but cctools - # header only defines the older - epatch "${S}"/ld64-236.3-missing-cputypes.patch - - # mimic OS X Leopard-style Availability.h macros for libunwind.h on - # older systems - [[ ${CHOST} == *darwin* && ${CHOST#*-darwin} -le 8 ]] && \ - echo "#define __OSX_AVAILABLE_STARTING(x,y) " > include/Availability.h - - local VER_STR="\"@(#)PROGRAM:ld PROJECT:${LD64} (Gentoo ${PN}-${PVR})\\n\"" - echo "char ldVersionString[] = ${VER_STR};" > version.cpp - - epatch "${S}"/ld64-123.2-debug-backtrace.patch - if [[ ${CHOST} == powerpc*-darwin* ]] ; then - epatch "${S}"/ld64-123.2-darwin8-no-mlong-branch-warning.patch - epatch "${S}"/ld64-127.2-thread_state.patch - fi - - cd "${S}"/${CCTOOLS} - epatch "${S}"/${PN}-4.5-as.patch - epatch "${S}"/${PN}-5.1-as-dir.patch - epatch "${S}"/${PN}-5.1-ranlib.patch - epatch "${S}"/${PN}-3.1.1-libtool-ranlib.patch - epatch "${S}"/${PN}-3.1.1-no-headers.patch - epatch "${S}"/${PN}-4.0-no-oss-dir.patch - epatch "${S}"/cctools-839-intel-retf.patch - epatch "${S}"/${PN}-5.1-extraneous-includes.patch - #epatch "${S}"/${PN}-5.1-otool-stdc.patch - epatch "${S}"/${PN}-5.1-constant-types.patch - epatch "${S}"/${PN}-5.1-strnlen.patch - epatch "${S}"/${PN}-5.1-ppc.patch - epatch "${S}"/${PN}-5.1-thread-state-redefined.patch - epatch "${S}"/${PN}-5.1-makefile-target-warning.patch - epatch "${S}"/${PN}-7.0-lto-prefix.patch - epatch "${S}"/${PN}-7.0-clang-as.patch - cp ../${LD64}/src/other/prune_trie.h include/mach-o/ || die - - # do not build profileable libstuff to save compile time - sed -i -e "/^all:/s, profile , ," libstuff/Makefile - - # cctools version is provided to make via RC_ProjectSourceVersion which - # generates and compiles it as apple_version[] into libstuff. From - # there it's picked up by the individual tools. Since - # RC_ProjectSourceVersion is also used as library version, we can't - # just append our local version info. So we hack the libstuff Makefile - # to include our Gentoo version. - sed -i -e "/cctools-.*(RC_ProjectSourceVersion).*OFILE_DIR/s,Version),Version) (Gentoo ${PN}-${PVR})," \ - libstuff/Makefile - - # clean up test suite - cd "${S}"/${LD64}/unit-tests/test-cases - local c - - # we don't have llvm - ((++c)); rm -rf llvm-integration; - - # we don't have dtrace - ((++c)); rm -rf dtrace-static-probes-coalescing; - ((++c)); rm -rf dtrace-static-probes; - - # a file is missing - ((++c)); rm -rf eh-coalescing-r - - # we don't do universal binaries - ((++c)); rm -rf blank-stubs; - - # looks like a problem with apple's result-filter.pl - ((++c)); rm -rf implicit-common3; - ((++c)); rm -rf order_file-ans; - - # TODO no idea what goes wrong here - ((++c)); rm -rf dwarf-debug-notes; - - einfo "Deleted $c tests that were bound to fail" - - cd "${S}" - ebegin "cleaning Makefiles from unwanted CFLAGS" - find . -name "Makefile" -print0 | xargs -0 sed \ - -i \ - -e 's/ -g / /g' \ - -e 's/^G =.*$/G =/' \ - -e 's/^OFLAG =.*$/OFLAG =/' \ - -e 's/install -c -s/install/g' - eend $? -} - -src_configure() { - # CPPFLAGS only affects ld64, cctools don't use 'em (which currently is - # what we want) - append-cppflags -DNDEBUG - - export CTARGET=${CTARGET:-${CHOST}} - if [[ ${CTARGET} == ${CHOST} ]] ; then - if [[ ${CATEGORY} == cross-* ]] ; then - export CTARGET=${CATEGORY#cross-} - fi - fi - - LIBPATH=/usr/$(get_libdir)/binutils/${CTARGET}/${PV} - INCPATH=${LIBPATH}/include - DATAPATH=/usr/share/binutils-data/${CTARGET}/${PV} - if is_cross ; then - BINPATH=/usr/${CHOST}/${CTARGET}/binutils-bin/${PV} - else - BINPATH=/usr/${CTARGET}/binutils-bin/${PV} - fi - - # Block API and thus snapshots supported on >= 10.6 - [[ ${CHOST} == *darwin* && ${CHOST#*-darwin} -ge 10 ]] && \ - append-cppflags -DSUPPORT_SNAPSHOTS - - CCTOOLS_OFLAG= - if [[ ${CHOST} == *darwin* && ${CHOST#*-darwin} -le 8 ]] ; then - # cctools expect to use UNIX03 struct member names. - # This is default on > 10.4. Activate it on <= 10.4 by defining - # __DARWIN_UNIX03 explicitly. - CCTOOLS_OFLAG="-D__DARWIN_UNIX03=1" - fi - - # if compiling with USE multitarget, extract all the known arches from - # create_configure and pass them back to it - creco=${LD64}/src/create_configure - ARCHS_TO_SUPPORT="" - if use multitarget ; then - ARCHS_TO_SUPPORT="$(grep KNOWN_ARCHS= $creco | \ - cut -d\" -f2 | tr ',' ' ')" - fi - - # Create configure.h for ld64 with SUPPORT_ARCH_ defines in it. - DERIVED_FILE_DIR=${LD64}/src \ - RC_SUPPORTED_ARCHS="$ARCHS_TO_SUPPORT" \ - $creco - - # do not depend on MachOFileAbstraction.hpp to define - # SUPPORT_ARCH_arm_any because that's not included by every file where - # our ppc/arm-optional patch uses it, ld.hpp in particular - grep "SUPPORT_ARCH_armv[0-9]" ${LD64}/src/configure.h >/dev/null && \ - echo "#define SUPPORT_ARCH_arm_any 1" >> ${LD64}/src/configure.h -} - -compile_ld64() { - einfo "building ${LD64}" - cd "${S}"/${LD64}/src - emake || die "emake failed for ld64" - use test && emake build_test -} - -compile_cctools() { - einfo "building ${CCTOOLS}" - cd "${S}"/${CCTOOLS} - # -j1 because it fails too often with weird errors - # Suppress running dsymutil because it will warn about missing debug - # info which is expected when compiling without -g as we normally do. - # This might need some more thought if anyone ever wanted to build us - # for debugging with Apple's tools. - emake \ - LIB_PRUNETRIE="-L../../${LD64}/src -lprunetrie" \ - EFITOOLS= \ - COMMON_SUBDIRS='libstuff ar misc otool' \ - SUBDIRS_32= \ - LEGACY= \ - RC_ProjectSourceVersion=${CCTOOLS_VERSION} \ - RC_CFLAGS="${CFLAGS}" \ - OFLAG="${CCTOOLS_OFLAG}" \ - DSYMUTIL=": disabled: dsymutil" \ - -j1 \ - || die "emake failed for the cctools" - cd "${S}"/${CCTOOLS}/as - emake \ - BUILD_OBSOLETE_ARCH= \ - RC_ProjectSourceVersion=${CCTOOLS_VERSION} \ - RC_CFLAGS="-DASLIBEXECDIR=\"\\\"${EPREFIX}${LIBPATH}/\\\"\" -DCLANGDIR=\"\\\"${EPREFIX}/usr/bin/\\\"\" ${CFLAGS}" \ - OFLAG="${CCTOOLS_OFLAG}" \ - DSYMUTIL=": disabled: dsymutil" \ - || die "emake failed for as" -} - -src_compile() { - compile_ld64 - compile_cctools -} - -install_ld64() { - exeinto ${BINPATH} - doexe "${S}"/${LD64}/src/{ld64,rebase,dyldinfo,unwinddump,ObjectDump} - dosym ld64 ${BINPATH}/ld - insinto ${DATAPATH}/man/man1 - doins "${S}"/${LD64}/doc/man/man1/{ld,ld64,rebase}.1 -} - -install_cctools() { - cd "${S}"/${CCTOOLS} - emake install_all_but_headers \ - EFITOOLS= \ - COMMON_SUBDIRS='ar misc otool' \ - SUBDIRS_32= \ - DSTROOT=\"${D}\" \ - BINDIR=\"${EPREFIX}\"${BINPATH} \ - LOCBINDIR=\"${EPREFIX}\"${BINPATH} \ - USRBINDIR=\"${EPREFIX}\"${BINPATH} \ - LOCLIBDIR=\"${EPREFIX}\"${LIBPATH} \ - MANDIR=\"${EPREFIX}\"${DATAPATH}/man/ - cd "${S}"/${CCTOOLS}/as - emake install \ - BUILD_OBSOLETE_ARCH= \ - DSTROOT=\"${D}\" \ - USRBINDIR=\"${EPREFIX}\"${BINPATH} \ - LIBDIR=\"${EPREFIX}\"${LIBPATH} \ - LOCLIBDIR=\"${EPREFIX}\"${LIBPATH} - - cd "${ED}"${BINPATH} - insinto ${DATAPATH}/man/man1 - local skips manpage - # ar brings an up-to-date manpage with it - skips=( ar ) - for bin in *; do - for skip in ${skips[@]}; do - if [[ ${bin} == ${skip} ]]; then - continue 2; - fi - done - manpage=${S}/${CCTOOLS}/man/${bin}.1 - if [[ -f "${manpage}" ]]; then - doins "${manpage}" - fi - done - insinto ${DATAPATH}/man/man5 - doins "${S}"/${CCTOOLS}/man/*.5 -} - -src_test() { - if ! [ "${EPREFIX}"/usr/bin/clang ] ; then - einfo "Test suite only works properly with clang - please install" - return - fi - - einfo "Running unit tests" - cd "${S}"/${LD64}/unit-tests/test-cases - # provide the new ld as a symlink to clang so that -ccc-install-dir - # will pick it up - ln -sfn ../../src/ld64 ld - # use our arch command because the System's will report i386 even for an - # x86_64 prefix - perl ../bin/make-recursive.pl \ - BUILT_PRODUCTS_DIR="${S}"/${LD64}/src \ - ARCH="$(arch)" \ - LD="${S}"/${LD64}/src/ld64 \ - CC="${CC} -ccc-install-dir $PWD" \ - CXX="${CXX} -ccc-install-dir $PWD" \ - OTOOL="${S}"/${CCTOOLS}/otool/otool.NEW \ - | perl ../bin/result-filter.pl -} - -src_install() { - install_ld64 - install_cctools - - cd "${S}" - insinto /etc/env.d/binutils - cat <<-EOF > env.d - TARGET="${CHOST}" - VER="${PV}" - FAKE_TARGETS="${CHOST}" - EOF - newins env.d ${CHOST}-${PV} -} - -pkg_postinst() { - binutils-config ${CHOST}-${PV} -} diff --git a/sys-devel/binutils-apple/binutils-apple-7.3.1.ebuild b/sys-devel/binutils-apple/binutils-apple-7.3.1.ebuild index 1fc16db7730a..78efc1276def 100644 --- a/sys-devel/binutils-apple/binutils-apple-7.3.1.ebuild +++ b/sys-devel/binutils-apple/binutils-apple-7.3.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2018 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI="5" @@ -20,10 +20,10 @@ SRC_URI="http://www.opensource.apple.com/tarballs/ld64/${LD64}.tar.gz https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-4.3-r1.tar.bz2 https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-5.1-r2.tar.bz2 https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-6.1-r1.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-6.3-r1.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-7.0-r2.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-7.2-r0.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-7.3-r1.tar.bz2" + https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-6.3-r2.tar.bz2 + https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-7.0-r3.tar.bz2 + https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-7.2-r1.tar.bz2 + https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-7.3-r2.tar.bz2" LICENSE="APSL-2" KEYWORDS="~ppc-macos ~x64-macos ~x86-macos" @@ -70,7 +70,7 @@ src_prepare() { epatch "${S}"/ld64-241.9-osatomic.patch epatch "${S}"/ld64-236.3-crashreporter.patch epatch "${S}"/ld64-264.3.101-nosnapshots.patch - epatch "${S}"/ld64-264.3.101-ppc.patch + epatch "${S}"/ld64-264.3.102-ppc.patch epatch "${S}"/ld64-264.3.101-constant-types.patch epatch "${S}"/ld64-241.9-register-names.patch epatch "${S}"/ld64-241.9-get-comm-align.patch diff --git a/sys-devel/binutils-apple/binutils-apple-7.3.ebuild b/sys-devel/binutils-apple/binutils-apple-7.3.ebuild deleted file mode 100644 index 853dba37052f..000000000000 --- a/sys-devel/binutils-apple/binutils-apple-7.3.ebuild +++ /dev/null @@ -1,386 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="5" - -inherit eutils flag-o-matic toolchain-funcs - -LD64=ld64-264.3.101 -CCTOOLS_VERSION=886 -CCTOOLS=cctools-${CCTOOLS_VERSION} -LIBUNWIND=libunwind-35.3 -DYLD=dyld-360.18 - -DESCRIPTION="Darwin assembler as(1) and static linker ld(1), Xcode Tools ${PV}" -HOMEPAGE="http://www.opensource.apple.com/darwinsource/" -SRC_URI="http://www.opensource.apple.com/tarballs/ld64/${LD64}.tar.gz - http://www.opensource.apple.com/tarballs/cctools/${CCTOOLS}.tar.gz - http://www.opensource.apple.com/tarballs/dyld/${DYLD}.tar.gz - http://www.opensource.apple.com/tarballs/libunwind/${LIBUNWIND}.tar.gz - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-4.3-r1.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-5.1-r2.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-6.1-r1.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-6.3-r1.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-7.0-r2.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-7.2-r0.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-7.3-r0.tar.bz2" - -LICENSE="APSL-2" -KEYWORDS="~ppc-macos ~x64-macos ~x86-macos" -IUSE="lto test multitarget" - -# ld64 can now only be compiled using llvm and libc++ since it massivley uses -# C++11 language fatures. *But additionally* the as driver now defaults to -# calling clang as the assembler on many platforms. This can be disabled using -# -Wa,-Q but since it's default we make llvm a static runtime dependency. -RDEPEND="sys-devel/binutils-config - lto? ( app-arch/xar ) - sys-devel/llvm:* - sys-libs/libcxx" -DEPEND="${RDEPEND} - test? ( >=dev-lang/perl-5.8.8 )" - -SLOT="7" - -S=${WORKDIR} - -is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } - -src_prepare() { - if use multitarget ; then - ewarn "You have enabled support for non-standard target architectures" - ewarn "using USE=multitarget. This includes experimental support for" - ewarn "ppc and ppc64 which is a community forward-port from the last" - ewarn "version of ld64 to officially support PPC." - - if [[ ${CHOST} == powerpc*-darwin* ]] ; then - ewarn "HERE BE DRAGONS! Your system seems to be PPC which means that" - ewarn "the actual usability of your Gentoo programs will depend on the" - ewarn "above-mentioned experimental PPC support in the linker. Be" - ewarn "sure to keep a known-to-work version like ${PN}-3.2.6 around!" - fi - fi - - cd "${S}"/${LD64}/src - cp "${S}"/ld64-136-compile_stubs.h ld/compile_stubs.h - cp "${S}"/ld64-264.3.101-Makefile Makefile - - epatch "${S}"/ld64-264.3.101-nolto.patch - epatch "${S}"/ld64-241.9-extraneous-includes.patch - epatch "${S}"/ld64-241.9-osatomic.patch - epatch "${S}"/ld64-236.3-crashreporter.patch - epatch "${S}"/ld64-264.3.101-nosnapshots.patch - epatch "${S}"/ld64-264.3.101-ppc.patch - epatch "${S}"/ld64-264.3.101-constant-types.patch - epatch "${S}"/ld64-241.9-register-names.patch - epatch "${S}"/ld64-241.9-get-comm-align.patch - epatch "${S}"/ld64-241.9-cc_md5.patch - - # provide missing headers from libunwind and dyld - mkdir -p include/{mach,mach-o/arm} || die - # never present because it's private - cp ../../${DYLD}/include/mach-o/dyld_priv.h include/mach-o || die - # missing on <= 10.5 - cp ../../${LIBUNWIND}/include/libunwind.h include/ || die - cp ../../${LIBUNWIND}/include/mach-o/compact_unwind_encoding.h include/mach-o || die - # missing on <= 10.4 - cp ../../${DYLD}/include/mach-o/dyld_images.h include/mach-o || die - cp ../../${CCTOOLS}/include/mach-o/loader.h include/mach-o || die - # use copies from cctools because they're otherwise hidden in some SDK - cp ../../${CCTOOLS}/include/mach-o/arm/reloc.h include/mach-o/arm || die - # provide all required CPU_TYPEs on all platforms - cp ../../${CCTOOLS}/include/mach/machine.h include/mach/machine.h - # add alias for newer identifiers, because ld64 uses both but cctools - # header only defines the older - epatch "${S}"/ld64-236.3-missing-cputypes.patch - - # mimic OS X Leopard-style Availability.h macros for libunwind.h on - # older systems - [[ ${CHOST} == *darwin* && ${CHOST#*-darwin} -le 8 ]] && \ - echo "#define __OSX_AVAILABLE_STARTING(x,y) " > include/Availability.h - - local VER_STR="\"@(#)PROGRAM:ld PROJECT:${LD64} (Gentoo ${PN}-${PVR})\\n\"" - echo "char ldVersionString[] = ${VER_STR};" > version.cpp - - epatch "${S}"/ld64-123.2-debug-backtrace.patch - if [[ ${CHOST} == powerpc*-darwin* ]] ; then - epatch "${S}"/ld64-123.2-darwin8-no-mlong-branch-warning.patch - epatch "${S}"/ld64-127.2-thread_state.patch - fi - - cd "${S}"/${CCTOOLS} - epatch "${S}"/${PN}-4.5-as.patch - epatch "${S}"/${PN}-5.1-as-dir.patch - epatch "${S}"/${PN}-5.1-ranlib.patch - epatch "${S}"/${PN}-3.1.1-libtool-ranlib.patch - epatch "${S}"/${PN}-3.1.1-no-headers.patch - epatch "${S}"/${PN}-4.0-no-oss-dir.patch - epatch "${S}"/cctools-839-intel-retf.patch - epatch "${S}"/${PN}-5.1-extraneous-includes.patch - #epatch "${S}"/${PN}-5.1-otool-stdc.patch - epatch "${S}"/${PN}-5.1-constant-types.patch - epatch "${S}"/${PN}-5.1-strnlen.patch - epatch "${S}"/${PN}-5.1-ppc.patch - epatch "${S}"/${PN}-5.1-thread-state-redefined.patch - epatch "${S}"/${PN}-7.3-make-j.patch - epatch "${S}"/${PN}-7.0-lto-prefix-2.patch - epatch "${S}"/${PN}-7.0-clang-as.patch - epatch "${S}"/${PN}-7.3-nolto.patch - epatch "${S}"/${PN}-7.3-nollvm.patch - epatch "${S}"/${PN}-7.3-no-developertools-dir.patch - cp ../${LD64}/src/other/prune_trie.h include/mach-o/ || die - - # do not build profileable libstuff to save compile time - sed -i -e "/^all:/s, profile , ," libstuff/Makefile - - # cctools version is provided to make via RC_ProjectSourceVersion which - # generates and compiles it as apple_version[] into libstuff. From - # there it's picked up by the individual tools. Since - # RC_ProjectSourceVersion is also used as library version, we can't - # just append our local version info. So we hack the libstuff Makefile - # to include our Gentoo version. - sed -i -e "/cctools-.*(RC_ProjectSourceVersion).*OFILE_DIR/s,Version),Version) (Gentoo ${PN}-${PVR})," \ - libstuff/Makefile - - # clean up test suite - cd "${S}"/${LD64}/unit-tests/test-cases - local c - - # we don't have llvm - ((++c)); rm -rf llvm-integration; - - # we don't have dtrace - ((++c)); rm -rf dtrace-static-probes-coalescing; - ((++c)); rm -rf dtrace-static-probes; - - # a file is missing - ((++c)); rm -rf eh-coalescing-r - - # we don't do universal binaries - ((++c)); rm -rf blank-stubs; - - # looks like a problem with apple's result-filter.pl - ((++c)); rm -rf implicit-common3; - ((++c)); rm -rf order_file-ans; - - # TODO no idea what goes wrong here - ((++c)); rm -rf dwarf-debug-notes; - - einfo "Deleted $c tests that were bound to fail" - - cd "${S}" - ebegin "cleaning Makefiles from unwanted CFLAGS" - find . -name "Makefile" -print0 | xargs -0 sed \ - -i \ - -e 's/ -g / /g' \ - -e 's/^G =.*$/G =/' \ - -e 's/^OFLAG =.*$/OFLAG =/' \ - -e 's/install -c -s/install/g' - eend $? -} - -src_configure() { - ENABLE_LTO=0 - use lto && ENABLE_LTO=1 - - export CTARGET=${CTARGET:-${CHOST}} - if [[ ${CTARGET} == ${CHOST} ]] ; then - if [[ ${CATEGORY} == cross-* ]] ; then - export CTARGET=${CATEGORY#cross-} - fi - fi - - LIBPATH=/usr/$(get_libdir)/binutils/${CTARGET}/${PV} - INCPATH=${LIBPATH}/include - DATAPATH=/usr/share/binutils-data/${CTARGET}/${PV} - if is_cross ; then - BINPATH=/usr/${CHOST}/${CTARGET}/binutils-bin/${PV} - else - BINPATH=/usr/${CTARGET}/binutils-bin/${PV} - fi - - # CPPFLAGS only affects ld64, cctools don't use 'em (which currently is - # what we want) - append-cppflags -DNDEBUG - - # Block API and thus snapshots supported on >= 10.6 - [[ ${CHOST} == *darwin* && ${CHOST#*-darwin} -ge 10 ]] && \ - append-cppflags -DSUPPORT_SNAPSHOTS - - CCTOOLS_OFLAG= - if [[ ${CHOST} == *darwin* && ${CHOST#*-darwin} -le 8 ]] ; then - # cctools expect to use UNIX03 struct member names. - # This is default on > 10.4. Activate it on <= 10.4 by defining - # __DARWIN_UNIX03 explicitly. - CCTOOLS_OFLAG="-D__DARWIN_UNIX03=1" - fi - - # if compiling with USE multitarget, extract all the known arches from - # create_configure and pass them back to it - creco=${LD64}/src/create_configure - ARCHS_TO_SUPPORT="" - if use multitarget ; then - ARCHS_TO_SUPPORT="$(grep KNOWN_ARCHS= $creco | \ - cut -d\" -f2 | tr ',' ' ')" - fi - - # Create configure.h for ld64 with SUPPORT_ARCH_ defines in it. - DERIVED_FILE_DIR=${LD64}/src \ - RC_SUPPORTED_ARCHS="$ARCHS_TO_SUPPORT" \ - $creco - - # do not depend on MachOFileAbstraction.hpp to define - # SUPPORT_ARCH_arm_any because that's not included by every file where - # our ppc/arm-optional patch uses it, ld.hpp in particular - grep "SUPPORT_ARCH_armv[0-9]" ${LD64}/src/configure.h >/dev/null && \ - echo "#define SUPPORT_ARCH_arm_any 1" >> ${LD64}/src/configure.h -} - -compile_ld64() { - einfo "building ${LD64}" - cd "${S}"/${LD64}/src - emake \ - LTO=${ENABLE_LTO} \ - || die "emake failed for ld64" - use test && emake build_test -} - -compile_cctools() { - einfo "building ${CCTOOLS}" - cd "${S}"/${CCTOOLS} - # Suppress running dsymutil because it will warn about missing debug - # info which is expected when compiling without -g as we normally do. - # This might need some more thought if anyone ever wanted to build us - # for debugging with Apple's tools. - emake \ - LIB_PRUNETRIE="-L../../${LD64}/src -lprunetrie" \ - EFITOOLS= \ - LTO="${ENABLE_LTO}" \ - LTO_LIBDIR=../../../lib \ - COMMON_SUBDIRS='libstuff ar misc otool' \ - SUBDIRS_32= \ - LEGACY= \ - RC_ProjectSourceVersion=${CCTOOLS_VERSION} \ - RC_CFLAGS="${CFLAGS}" \ - OFLAG="${CCTOOLS_OFLAG}" \ - DSYMUTIL=": disabled: dsymutil" \ - || die "emake failed for the cctools" - cd "${S}"/${CCTOOLS}/as - emake \ - BUILD_OBSOLETE_ARCH= \ - RC_ProjectSourceVersion=${CCTOOLS_VERSION} \ - RC_CFLAGS="-DASLIBEXECDIR=\"\\\"${EPREFIX}${LIBPATH}/\\\"\" -DCLANGDIR=\"\\\"${EPREFIX}/usr/bin/\\\"\" ${CFLAGS}" \ - OFLAG="${CCTOOLS_OFLAG}" \ - DSYMUTIL=": disabled: dsymutil" \ - || die "emake failed for as" -} - -src_compile() { - compile_ld64 - compile_cctools -} - -install_ld64() { - exeinto ${BINPATH} - doexe "${S}"/${LD64}/src/{ld64,rebase,dyldinfo,unwinddump,ObjectDump} - dosym ld64 ${BINPATH}/ld - insinto ${DATAPATH}/man/man1 - doins "${S}"/${LD64}/doc/man/man1/{ld,ld64,rebase}.1 -} - -install_cctools() { - cd "${S}"/${CCTOOLS} - emake install_all_but_headers \ - EFITOOLS= \ - COMMON_SUBDIRS='ar misc otool' \ - SUBDIRS_32= \ - DSTROOT=\"${D}\" \ - BINDIR=\"${EPREFIX}\"${BINPATH} \ - LOCBINDIR=\"${EPREFIX}\"${BINPATH} \ - USRBINDIR=\"${EPREFIX}\"${BINPATH} \ - LOCLIBDIR=\"${EPREFIX}\"${LIBPATH} \ - MANDIR=\"${EPREFIX}\"${DATAPATH}/man/ - cd "${S}"/${CCTOOLS}/as - emake install \ - BUILD_OBSOLETE_ARCH= \ - DSTROOT=\"${D}\" \ - USRBINDIR=\"${EPREFIX}\"${BINPATH} \ - LIBDIR=\"${EPREFIX}\"${LIBPATH} \ - LOCLIBDIR=\"${EPREFIX}\"${LIBPATH} - - # upstream is starting to replace classic binutils with llvm-integrated - # ones. nm and size are now symlinks to llvm-{nm,size} while the classic - # version is preserved as {nm,size}-classic. (BTW: otool is a symlink to - # otool-classic for now but a wrapper llvm-otool that is calling - # llvm-objdump is present already.) - # Since our binutils do not live in the same directory as the llvm - # installation, we have to rewrite the symlinks to the llvm tools. - # This also means, that these tools still appear to be versioned via - # binutils-config but actually always run the currently installed llvm - # tool. - for tool in nm size ; do - # ${EPREFIX}/usr/x86_64-apple-darwin15/binutils-bin/7.3/$tool - # -> ${EPREFIX}/bin/llvm-$tool - ln -sfn ../../../bin/llvm-$tool "${D}/${EPREFIX}/${BINPATH}/$tool" - done - - cd "${ED}"${BINPATH} - insinto ${DATAPATH}/man/man1 - local skips manpage - # ar brings an up-to-date manpage with it - skips=( ar ) - for bin in *; do - for skip in ${skips[@]}; do - if [[ ${bin} == ${skip} ]]; then - continue 2; - fi - done - manpage=${S}/${CCTOOLS}/man/${bin}.1 - if [[ -f "${manpage}" ]]; then - doins "${manpage}" - fi - done - insinto ${DATAPATH}/man/man5 - doins "${S}"/${CCTOOLS}/man/*.5 -} - -src_test() { - if ! [ "${EPREFIX}"/usr/bin/clang ] ; then - einfo "Test suite only works properly with clang - please install" - return - fi - - einfo "Running unit tests" - cd "${S}"/${LD64}/unit-tests/test-cases - # provide the new ld as a symlink to clang so that -ccc-install-dir - # will pick it up - ln -sfn ../../src/ld64 ld - # use our arch command because the System's will report i386 even for an - # x86_64 prefix - perl ../bin/make-recursive.pl \ - BUILT_PRODUCTS_DIR="${S}"/${LD64}/src \ - ARCH="$(arch)" \ - LD="${S}"/${LD64}/src/ld64 \ - CC="${CC} -ccc-install-dir $PWD" \ - CXX="${CXX} -ccc-install-dir $PWD" \ - OTOOL="${S}"/${CCTOOLS}/otool/otool.NEW \ - | perl ../bin/result-filter.pl -} - -src_install() { - install_ld64 - install_cctools - - cd "${S}" - insinto /etc/env.d/binutils - cat <<-EOF > env.d - TARGET="${CHOST}" - VER="${PV}" - FAKE_TARGETS="${CHOST}" - EOF - newins env.d ${CHOST}-${PV} -} - -pkg_postinst() { - binutils-config ${CHOST}-${PV} -} diff --git a/sys-devel/binutils-apple/binutils-apple-8.1.ebuild b/sys-devel/binutils-apple/binutils-apple-8.1.ebuild index 32405f72fca1..69ff01d148f8 100644 --- a/sys-devel/binutils-apple/binutils-apple-8.1.ebuild +++ b/sys-devel/binutils-apple/binutils-apple-8.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2018 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI="6" @@ -17,9 +17,9 @@ SRC_URI="http://www.opensource.apple.com/tarballs/ld64/${LD64}.tar.gz http://www.opensource.apple.com/tarballs/dyld/${DYLD}.tar.gz https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-4.3-r1.tar.bz2 https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-5.1-r2.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-7.0-r2.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-7.3-r1.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-8.2-r0.tar.bz2" + https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-7.0-r3.tar.bz2 + https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-7.3-r2.tar.bz2 + https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-8.2-r1.tar.bz2" LICENSE="APSL-2" KEYWORDS="~x64-macos ~x86-macos" diff --git a/sys-devel/binutils-apple/binutils-apple-8.2.1-r1.ebuild b/sys-devel/binutils-apple/binutils-apple-8.2.1-r1.ebuild index 781aff39edf2..c664dedee156 100644 --- a/sys-devel/binutils-apple/binutils-apple-8.2.1-r1.ebuild +++ b/sys-devel/binutils-apple/binutils-apple-8.2.1-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2018 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI="6" @@ -17,7 +17,7 @@ SRC_URI="http://www.opensource.apple.com/tarballs/ld64/${LD64}.tar.gz http://www.opensource.apple.com/tarballs/dyld/${DYLD}.tar.gz https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-4.3-r1.tar.bz2 https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-5.1-r2.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-7.3-r1.tar.bz2 + https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-7.3-r2.tar.bz2 https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-8.2-r1.tar.bz2" LICENSE="APSL-2" diff --git a/sys-devel/binutils-apple/binutils-apple-8.2.1.ebuild b/sys-devel/binutils-apple/binutils-apple-8.2.1.ebuild deleted file mode 100644 index 11fae8119966..000000000000 --- a/sys-devel/binutils-apple/binutils-apple-8.2.1.ebuild +++ /dev/null @@ -1,334 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" - -inherit eutils flag-o-matic toolchain-funcs - -LD64=ld64-274.2 -CCTOOLS_VERSION=895 -CCTOOLS=cctools-${CCTOOLS_VERSION} -DYLD=dyld-421.2 - -DESCRIPTION="Darwin assembler as(1) and static linker ld(1), Xcode Tools ${PV}" -HOMEPAGE="http://www.opensource.apple.com/darwinsource/" -SRC_URI="http://www.opensource.apple.com/tarballs/ld64/${LD64}.tar.gz - http://www.opensource.apple.com/tarballs/cctools/${CCTOOLS}.tar.gz - http://www.opensource.apple.com/tarballs/dyld/${DYLD}.tar.gz - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-4.3-r1.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-5.1-r2.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-7.0-r2.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-7.3-r1.tar.bz2 - https://dev.gentoo.org/~grobian/distfiles/${PN}-patches-8.2-r0.tar.bz2" - -LICENSE="APSL-2" -KEYWORDS="~x64-macos ~x86-macos" -IUSE="lto tapi classic test" - -# ld64 can now only be compiled using llvm and libc++ since it massively uses -# C++11 language features. *But additionally* the as driver now defaults to -# calling clang as the assembler on many platforms. This can be disabled using -# -Wa,-Q but since it's default we make llvm a static runtime dependency. -RDEPEND="sys-devel/binutils-config - lto? ( app-arch/xar ) - tapi? ( sys-libs/tapi ) - sys-devel/llvm:* - sys-libs/libcxx" -DEPEND="${RDEPEND} - test? ( >=dev-lang/perl-5.8.8 )" - -SLOT="8" - -S=${WORKDIR} - -is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } - -src_prepare() { - cd "${S}"/${LD64}/src - cp "${S}"/ld64-136-compile_stubs.h ld/compile_stubs.h - cp "${S}"/ld64-274.1-Makefile Makefile - - epatch "${S}"/ld64-274.1-nolto.patch - epatch "${S}"/ld64-236.3-crashreporter.patch - epatch "${S}"/ld64-264.3.102-bitcode-case.patch - epatch "${S}"/ld64-274.1-unknown-fixup.patch - epatch "${S}"/ld64-274.1-notapi.patch - - # workound llvm-3.9.{0,1} issue - # https://bugs.gentoo.org/show_bug.cgi?id=603580 - # https://groups.google.com/forum/#!topic/llvm-dev/JY6nuKE__sU - # http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20160829/169553.html - sed -i -e '/COMPILE_TIME_ASSERT/d' ld/parsers/libunwind/*.hpp || die - - # provide missing headers from libunwind and dyld - mkdir -p include/{mach,mach-o/arm} || die - # never present because it's private - cp ../../${DYLD}/include/mach-o/dyld_priv.h include/mach-o || die - # use copies from cctools because they're otherwise hidden in some SDK - cp ../../${CCTOOLS}/include/mach-o/arm/reloc.h include/mach-o/arm || die - # provide all required CPU_TYPEs on all platforms - cp ../../${CCTOOLS}/include/mach/machine.h include/mach/machine.h - # add alias for newer identifiers, because ld64 uses both but cctools - # header only defines the older - epatch "${S}"/ld64-236.3-missing-cputypes.patch - - local VER_STR="\"@(#)PROGRAM:ld PROJECT:${LD64} (Gentoo ${PN}-${PVR})\\n\"" - echo "char ldVersionString[] = ${VER_STR};" > version.cpp - - epatch "${S}"/ld64-123.2-debug-backtrace.patch - - cd "${S}"/${CCTOOLS} - epatch "${S}"/${PN}-4.5-as.patch - epatch "${S}"/${PN}-5.1-as-dir.patch - epatch "${S}"/${PN}-5.1-ranlib.patch - epatch "${S}"/${PN}-3.1.1-libtool-ranlib.patch - epatch "${S}"/${PN}-3.1.1-no-headers.patch - epatch "${S}"/${PN}-4.0-no-oss-dir.patch - epatch "${S}"/cctools-839-intel-retf.patch - epatch "${S}"/${PN}-5.1-extraneous-includes.patch - epatch "${S}"/${PN}-5.1-strnlen.patch - epatch "${S}"/${PN}-7.3-make-j.patch - epatch "${S}"/${PN}-7.0-lto-prefix-2.patch - epatch "${S}"/${PN}-7.0-clang-as.patch - epatch "${S}"/${PN}-8.1-nolto.patch - epatch "${S}"/${PN}-7.3-nollvm.patch - epatch "${S}"/${PN}-7.3-no-developertools-dir.patch - epatch "${S}"/${PN}-8.1-llvm-tools.patch - cp ../${LD64}/src/other/prune_trie.h include/mach-o/ || die - - # do not build profileable libstuff to save compile time - sed -i -e "/^all:/s, profile , ," libstuff/Makefile - - # cctools version is provided to make via RC_ProjectSourceVersion which - # generates and compiles it as apple_version[] into libstuff. From - # there it's picked up by the individual tools. Since - # RC_ProjectSourceVersion is also used as library version, we can't - # just append our local version info. So we hack the libstuff Makefile - # to include our Gentoo version. - sed -i -e "/cctools-.*(RC_ProjectSourceVersion).*OFILE_DIR/s,Version),Version) (Gentoo ${PN}-${PVR})," \ - libstuff/Makefile - - eapply_user - - # clean up test suite - cd "${S}"/${LD64}/unit-tests/test-cases - local c - - # we don't have llvm - ((++c)); rm -rf llvm-integration; - - # we don't have dtrace - ((++c)); rm -rf dtrace-static-probes-coalescing; - ((++c)); rm -rf dtrace-static-probes; - - # a file is missing - ((++c)); rm -rf eh-coalescing-r - - # we don't do universal binaries - ((++c)); rm -rf blank-stubs; - - # looks like a problem with apple's result-filter.pl - ((++c)); rm -rf implicit-common3; - ((++c)); rm -rf order_file-ans; - - # TODO no idea what goes wrong here - ((++c)); rm -rf dwarf-debug-notes; - - einfo "Deleted $c tests that were bound to fail" - - cd "${S}" - ebegin "cleaning Makefiles from unwanted CFLAGS" - find . -name "Makefile" -print0 | xargs -0 sed \ - -i \ - -e 's/ -g / /g' \ - -e 's/^G =.*$/G =/' \ - -e 's/^OFLAG =.*$/OFLAG =/' \ - -e 's/install -c -s/install/g' - eend $? -} - -src_configure() { - ENABLE_LTO=0 - use lto && ENABLE_LTO=1 - - export CTARGET=${CTARGET:-${CHOST}} - if [[ ${CTARGET} == ${CHOST} ]] ; then - if [[ ${CATEGORY} == cross-* ]] ; then - export CTARGET=${CATEGORY#cross-} - fi - fi - - LIBPATH=/usr/$(get_libdir)/binutils/${CTARGET}/${PV} - INCPATH=${LIBPATH}/include - DATAPATH=/usr/share/binutils-data/${CTARGET}/${PV} - if is_cross ; then - BINPATH=/usr/${CHOST}/${CTARGET}/binutils-bin/${PV} - else - BINPATH=/usr/${CTARGET}/binutils-bin/${PV} - fi - - # CPPFLAGS only affects ld64, cctools don't use 'em (which currently is - # what we want) - append-cppflags -DNDEBUG - - # Create configure.h for ld64 with SUPPORT_ARCH_ defines in it. - DERIVED_FILE_DIR=${LD64}/src \ - ${LD64}/src/create_configure -} - -compile_ld64() { - einfo "building ${LD64}" - cd "${S}"/${LD64}/src - emake \ - LTO=${ENABLE_LTO} \ - TAPI=$(use tapi && echo 1 || echo 0) \ - || die "emake failed for ld64" - use test && emake build_test -} - -compile_cctools() { - einfo "building ${CCTOOLS}" - cd "${S}"/${CCTOOLS} - # Suppress running dsymutil because it will warn about missing debug - # info which is expected when compiling without -g as we normally do. - # This might need some more thought if anyone ever wanted to build us - # for debugging with Apple's tools. - emake \ - LIB_PRUNETRIE="-L../../${LD64}/src -lprunetrie" \ - EFITOOLS= \ - LTO="${ENABLE_LTO}" \ - LTO_LIBDIR=../../../lib \ - COMMON_SUBDIRS='libstuff ar misc otool' \ - SUBDIRS_32= \ - LEGACY= \ - RC_ProjectSourceVersion=${CCTOOLS_VERSION} \ - RC_CFLAGS="${CFLAGS}" \ - OFLAG="${CCTOOLS_OFLAG}" \ - DSYMUTIL=": disabled: dsymutil" \ - || die "emake failed for the cctools" - cd "${S}"/${CCTOOLS}/as - emake \ - BUILD_OBSOLETE_ARCH= \ - RC_ProjectSourceVersion=${CCTOOLS_VERSION} \ - RC_CFLAGS="-DASLIBEXECDIR=\"\\\"${EPREFIX}${LIBPATH}/\\\"\" -DCLANGDIR=\"\\\"${EPREFIX}/usr/bin/\\\"\" ${CFLAGS}" \ - OFLAG="${CCTOOLS_OFLAG}" \ - DSYMUTIL=": disabled: dsymutil" \ - || die "emake failed for as" -} - -src_compile() { - compile_ld64 - compile_cctools -} - -install_ld64() { - exeinto ${BINPATH} - doexe "${S}"/${LD64}/src/{ld64,rebase,dyldinfo,unwinddump,ObjectDump} - dosym ld64 ${BINPATH}/ld - insinto ${DATAPATH}/man/man1 - doins "${S}"/${LD64}/doc/man/man1/{ld,ld64,rebase}.1 -} - -install_cctools() { - cd "${S}"/${CCTOOLS} - emake install_all_but_headers \ - EFITOOLS= \ - COMMON_SUBDIRS='ar misc otool' \ - SUBDIRS_32= \ - DSTROOT=\"${D}\" \ - BINDIR=\"${EPREFIX}\"${BINPATH} \ - LOCBINDIR=\"${EPREFIX}\"${BINPATH} \ - USRBINDIR=\"${EPREFIX}\"${BINPATH} \ - LOCLIBDIR=\"${EPREFIX}\"${LIBPATH} \ - MANDIR=\"${EPREFIX}\"${DATAPATH}/man/ - cd "${S}"/${CCTOOLS}/as - emake install \ - BUILD_OBSOLETE_ARCH= \ - DSTROOT=\"${D}\" \ - USRBINDIR=\"${EPREFIX}\"${BINPATH} \ - LIBDIR=\"${EPREFIX}\"${LIBPATH} \ - LOCLIBDIR=\"${EPREFIX}\"${LIBPATH} - - # upstream is starting to replace classic binutils with llvm-integrated - # ones. nm and size are now symlinks to llvm-{nm,size} while the classic - # version is preserved as {nm,size}-classic. - # Since our binutils do not live in the same directory as the llvm - # installation, we have to rewrite the symlinks to the llvm tools. - # This also means, that these tools still appear to be versioned via - # binutils-config but actually always run the currently installed llvm - # tool. - budir=${D}/${EPREFIX}/${BINPATH} - for tool in nm size ; do - # ${EPREFIX}/usr/x86_64-apple-darwin15/binutils-bin/7.3/$tool - # -> ${EPREFIX}/bin/llvm-$tool - use classic && \ - ln -sfn ${tool}-classic "${budir}/${tool}" || \ - ln -sfn ../../../bin/llvm-${tool} "${budir}/${tool}" - done - - # Also, otool is now based on llvm-objdump. But a small wrapper installed - # as llvm-otool remains, providing command line compatibility. - use classic && \ - ln -sfn otool-classic "${budir}/otool" || \ - ln -sfn llvm-otool "${budir}/otool" - - cd "${ED}"${BINPATH} - insinto ${DATAPATH}/man/man1 - local skips manpage - # ar brings an up-to-date manpage with it - skips=( ar ) - for bin in *; do - for skip in ${skips[@]}; do - if [[ ${bin} == ${skip} ]]; then - continue 2; - fi - done - manpage=${S}/${CCTOOLS}/man/${bin}.1 - if [[ -f "${manpage}" ]]; then - doins "${manpage}" - fi - done - insinto ${DATAPATH}/man/man5 - doins "${S}"/${CCTOOLS}/man/*.5 -} - -src_test() { - if ! [ "${EPREFIX}"/usr/bin/clang ] ; then - einfo "Test suite only works properly with clang - please install" - return - fi - - einfo "Running unit tests" - cd "${S}"/${LD64}/unit-tests/test-cases - # provide the new ld as a symlink to clang so that -ccc-install-dir - # will pick it up - ln -sfn ../../src/ld64 ld - # use our arch command because the System's will report i386 even for an - # x86_64 prefix - perl ../bin/make-recursive.pl \ - BUILT_PRODUCTS_DIR="${S}"/${LD64}/src \ - ARCH="$(arch)" \ - LD="${S}"/${LD64}/src/ld64 \ - CC="${CC} -ccc-install-dir $PWD" \ - CXX="${CXX} -ccc-install-dir $PWD" \ - OTOOL="${S}"/${CCTOOLS}/otool/otool.NEW \ - | perl ../bin/result-filter.pl -} - -src_install() { - install_ld64 - install_cctools - - cd "${S}" - insinto /etc/env.d/binutils - cat <<-EOF > env.d - TARGET="${CHOST}" - VER="${PV}" - FAKE_TARGETS="${CHOST}" - EOF - newins env.d ${CHOST}-${PV} -} - -pkg_postinst() { - binutils-config ${CHOST}-${PV} -} -- cgit v1.2.3