diff options
Diffstat (limited to 'sys-fs/mac-fdisk')
-rw-r--r-- | sys-fs/mac-fdisk/Manifest | 3 | ||||
-rw-r--r-- | sys-fs/mac-fdisk/files/mac-fdisk-0.1_p16-ppc-inline.patch | 21 | ||||
-rw-r--r-- | sys-fs/mac-fdisk/mac-fdisk-0.1_p16.ebuild | 4 |
3 files changed, 26 insertions, 2 deletions
diff --git a/sys-fs/mac-fdisk/Manifest b/sys-fs/mac-fdisk/Manifest index 136601513592..e186dd163d7a 100644 --- a/sys-fs/mac-fdisk/Manifest +++ b/sys-fs/mac-fdisk/Manifest @@ -2,11 +2,12 @@ AUX big_pt.patch 1404 BLAKE2B 71fc2242a8b9a4c37b50a234acab2b013bc6ebb6308b552682 AUX largerthan2gb.patch 272 BLAKE2B 7bbd9b0fd817430d956d96d89c12b996d8ceec8f06654227e39f9b52d9f78b433a0520d9b5794ffaab9a0ab0452a92f94e1418e683749832bf9d43b29ce9322a SHA512 b5988eb6aa64324421398461396b0fdd0b55d7643094c042bea7264ec0f9913e8a793f3f550c15928419e697a14f2932f483c4b98a54618af99b35aa7ceae757 AUX mac-fdisk-0.1-headers.patch 2050 BLAKE2B d375f6e4eb9ec940957771047413de4e8b3a99340630804926a24fc0104acde175c6332d06eab6f709d96974c81a3e834408fe8e42be4a1d917e136caca87a00 SHA512 7d16300c02b293de87101e3ef83a8b7778d15123c261d562f0129704b74d0c3d7ca18730c52d37b599ff57c0b70dacd41aeefe99cf235aea4abd4b569e3d601e AUX mac-fdisk-0.1-r6-ppc64.patch 13664 BLAKE2B f0dcdb916fb9f6d07f8696613fbac8953e407dfb4bdc5f218d0a67c4b6dfc67fc0049add4a59806ed0ce513412c4b9d8b2a06ba1c4a305f533fa04c5a715d96b SHA512 8ad99f6f205d7f4ced33c1da93a76b4329c24c85e85ea5f0fda579002d1e7282c5764cdec37c7a7c99e4f198d34259a382ed37cead60b8307a7779806142d49b +AUX mac-fdisk-0.1_p16-ppc-inline.patch 863 BLAKE2B 3af665308ee82c2854047a5a80749122e02a3ab75370ff03e1f0322f54977ac9722f81a1a53cf918e0400bf9bc9bd03e9f31732574a22533e9f956eecbe54420 SHA512 40e213b1f0234195eb14450fe9fb326de2401552747af15eb743c0fbedd5f94aebe41245ad6f892a0aa34b6041cad2728530b7c6290731375b4dfe06c0e0102c AUX mac-fdisk-0.1_p16-ppc64.patch 12912 BLAKE2B 39b808d7e69e1ce705e6b8e231a1f0db559863fb2f80cd15bf9a3971c87e4a6c0a06e85dc3726489a4f82493aa7e85da1597c101ea1eed174bd58d3615167d9d SHA512 e521009d628934fe3925085c941d2bb3fba9c3322ccaaa6dd650ecbc6b990056f9bf186adb3a645dc8593efdb44611b69a7b6bf4e87d262870bbb515581e0ef3 AUX mac-fdisk-amd64.patch 5154 BLAKE2B c8bbc117df448bc4c1181d9c172bc78dd5b1fd021184be73ecdc41568fcaf73e1daec8183d43f355b4bba876a0399f3dfd2c05173d7c9fee6d8d95068f141633 SHA512 241576f64dd334f98e8c9cb9e0b17b6366e208f2d0af47ddb4659cf2d8e25ca8f44a84d1f7fa2e5f6215f4be42668f43f034074ac981a0d87ca8483505a3623c DIST mac-fdisk_0.1-13.diff.gz 19615 BLAKE2B 75f81f5adcac44803e581b0959a13e27cb588fb7220c19e2ea07f8784af4eae2b1f39c3e268a0bbed8765fc3d430805b2ef13f87cb7810d1e0a758b1d9c751a3 SHA512 adc34f20e73ae91c39acb073f70f0041a4a0726985fc5e5de34ae433996b3f719ca4193cce51efc6599ba1773ad63fee045a8d72b6bd8a036c188d762626fe57 DIST mac-fdisk_0.1-16.diff.gz 19896 BLAKE2B 9383a22fb02f44d23802dd57acdf3e956c68aad17927030395f03c0422237fb6420430277b3bd512b8267ce0e36dee7b19355820fb5005db646bc21748221ced SHA512 deb44217afae097594e14dea6cd128f6cb1e8ed6e62e646d2aa311508ea27d164c94187e8eb1f1d018ee6044346f6785770981a655b6ad536dbbce550df13359 DIST mac-fdisk_0.1.orig.tar.gz 55817 BLAKE2B d193be6b06be562bcb3297300dc009ac28adba41ea5d7c1a5bc0d16b8f9ec8275e1ad015c9bc529c3aafd12cbd9012e1af7baef7259ce0c8cef4d6dc62986dec SHA512 1263e60a18111162f5ef439b5f9615cef9de94e7836cb998782a6e6d3bcf92a69e49566b33c7330bdea05de5e6ca83f7920c6707f342ce515440160695f07120 EBUILD mac-fdisk-0.1-r7.ebuild 1348 BLAKE2B a0b4d9462e7c45a0cf57c1cd8652a5f3ca42a1d9e50f3c601bcb93e99caa666c34a6567bc34b68b4d0c3395934b34394eb70dff13f7d66efac8d40fd8b7ec83e SHA512 4ef48d9a3ef95d08ac60313c40fd7cfbbb41d42940065cebf1961d7705e4510a25ac5eca7732f948692d6bd861ffd019dd436aa55a7dcdf353c0d5dbc2164988 -EBUILD mac-fdisk-0.1_p16.ebuild 1239 BLAKE2B 084b93ee70e4b374b5af24c57f78cdaf03d8247ef57a60bd2235fe0770e5533e5e76f4fc69a13f8dad5f3fbd67399d26690795bc3c1733eca1752cf529a19b3b SHA512 f26c8731ea781eee50c6d08425a812f91128aaf1e5ec1527f793b6ce11acee91420e0ddcd47e2c1785fe06d0e3cfe2c7b7469e00fd9436b99baa66fffe22def1 +EBUILD mac-fdisk-0.1_p16.ebuild 1293 BLAKE2B 61dec1a06762c62770735430b474d39007c9832ffa566e43e9f7771ebb7be67d28b53b87954884345acb0f541fa917db8ea652eaf623cc316dc3cd986bf97419 SHA512 e0b81a76399e70dce7ba67490fe5767d7e98f1417fcbad9593710a7dbd77850fdeee9efdcf67c0b01322003a882eb1af10cc38cf343e87e6e0765243d4115330 MISC metadata.xml 259 BLAKE2B 04ac80e5edbb7a409e8b0c9d856a3af1bcc59c70211fe4b10938eabce6f9f7fbf37ef80fdc3c53a86071d1d416a2159e8292d89b1ffe83213383137032df6f6e SHA512 ca71b1781806d20022c238e5b5d10f9154c78e0fa51f2603de34c48ecbe4cbc2c3190cf046526840546743644c691ee7fe51e31a4617b01bb7602dde803c1538 diff --git a/sys-fs/mac-fdisk/files/mac-fdisk-0.1_p16-ppc-inline.patch b/sys-fs/mac-fdisk/files/mac-fdisk-0.1_p16-ppc-inline.patch new file mode 100644 index 000000000000..032c68d96378 --- /dev/null +++ b/sys-fs/mac-fdisk/files/mac-fdisk-0.1_p16-ppc-inline.patch @@ -0,0 +1,21 @@ +on gcc-7.3.0 build failed as: + # CFLAGS="-mcpu=powerpc -Os -pipe" emerge -v1 sys-fs/mac-fdisk + cc fdisk.o fdisklabel.o -o fdisk + fdisk.o: In function `check_consistency': + fdisk.c:(.text+0x64): undefined reference to `__swap32' + fdisk.c:(.text+0x70): undefined reference to `__swap32' + +Avoid exporting inline symbols and workaround build failure. +--- a/fdisk.c ++++ b/fdisk.c +@@ -247,8 +247,8 @@ char read_char(char *mesg); + jmp_buf listingbuf; + +-inline unsigned short __swap16(unsigned short x) { ++static inline unsigned short __swap16(unsigned short x) { + return (((__u16)(x) & 0xFF) << 8) | (((__u16)(x) & 0xFF00) >> 8); + } +-inline __u32 __swap32(__u32 x) { ++static inline __u32 __swap32(__u32 x) { + return (((__u32)(x) & 0xFF) << 24) | (((__u32)(x) & 0xFF00) << 8) | (((__u32)(x) & 0xFF0000) >> 8) | (((__u32)(x) & 0xFF000000) >> 24); + } diff --git a/sys-fs/mac-fdisk/mac-fdisk-0.1_p16.ebuild b/sys-fs/mac-fdisk/mac-fdisk-0.1_p16.ebuild index 19b9fff8a39e..32ae45a56014 100644 --- a/sys-fs/mac-fdisk/mac-fdisk-0.1_p16.ebuild +++ b/sys-fs/mac-fdisk/mac-fdisk-0.1_p16.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=5 @@ -34,6 +34,8 @@ src_prepare() { ### Note that >=2TB disks may not work due to limitations of the Mac ### Partition Table structure, this needs to be investigated epatch "${FILESDIR}"/big_pt.patch + + epatch "${FILESDIR}"/${PN}-0.1_p16-ppc-inline.patch } src_compile() { |