1 |
commit: ae822c6a643103428de23fa18fa0be867983cbcd |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 11 18:55:06 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 11 18:58:09 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae822c6a |
7 |
|
8 |
dev-lang/ghc: add powerpc64le binary for ghc-8.6.5 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/654034 |
11 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
12 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
13 |
|
14 |
dev-lang/ghc/Manifest | 1 + |
15 |
dev-lang/ghc/ghc-8.6.5.ebuild | 19 ++++++++++++++----- |
16 |
2 files changed, 15 insertions(+), 5 deletions(-) |
17 |
|
18 |
diff --git a/dev-lang/ghc/Manifest b/dev-lang/ghc/Manifest |
19 |
index c599d04a592..f3999afb3a1 100644 |
20 |
--- a/dev-lang/ghc/Manifest |
21 |
+++ b/dev-lang/ghc/Manifest |
22 |
@@ -48,6 +48,7 @@ DIST ghc-bin-8.4.3-x86_64-pc-linux-gnu.tbz2 117537996 BLAKE2B 2be0102fcc0f1fef5a |
23 |
DIST ghc-bin-8.6.4-i686-pc-linux-gnu.tbz2 121639881 BLAKE2B 51d223b654ff23bbdd594801f4ec92b016a58b952ba98007abb56c1c4b184a672e51eb9847b42160febcc4ada0f28f18325cc27f8a025dd9fcf656e3bab73918 SHA512 6b58b080c5fb18ea7b76632b4b48726af61b52d8829f57a2ddd55e6bc109c1fe1a133d2a0ca974a168ffee0013a6dfdc4922577bad01c50a42dad8b9db70e061 |
24 |
DIST ghc-bin-8.6.4-x86_64-pc-linux-gnu.tbz2 121695747 BLAKE2B 39c745f5f9946bbae622e09bbdabdde4d62eec472fe14e693f37cba6b93ff66e4e56f66df8f0f073686339d252dce71f79f4c2aaef620c3dffbc26a67b1119c3 SHA512 c60bac50e7879bda1d6dcc7c1f12fdac915b18c3ebbfcfad575b2b01fcb57a487496ce7935f7ee4ae934162209ab66370fbcc8a4f021628e5f9a2aa7ef95e119 |
25 |
DIST ghc-bin-8.6.5-i686-pc-linux-gnu.tbz2 121938050 BLAKE2B 17b6d15af21390e28a025505da76d39a2f8656f74c88a81fc75e7c8e799e54171c0d964d8a977c01576603a781c139b5363ea79eeaa2252622913d2a08a79f0e SHA512 9eb33b4670ee15f53c988885a119f3ef7be896ddcb318019628cdd04e21ec0c61876e08466d9d10d6cb1e16d89cd318e0ba42f0f0ae512f48590fe87483739cd |
26 |
+DIST ghc-bin-8.6.5-powerpc64le-unknown-linux-gnu.tbz2 173549697 BLAKE2B 296bf4e0745f56dfefc3ffc96b4e492ddbfd8bcbbc28a8bc9b3172c616d0e7da1081834384ab69e387808331b607104f015632d59963a87f4e257f290ff286c3 SHA512 81261614a7939adb0ffad3657cd33588ff729bb1e3a7dd228cf869afc1f21b74cb4dce6369a4c4cdc9f45f8d8ae64f25d71cd0f2dc34f36d3022afc149538a78 |
27 |
DIST ghc-bin-8.6.5-x86_64-pc-linux-gnu.tbz2 121728723 BLAKE2B 6620b2a116b5696dd2d776350a43251c093e117338a4407ae8c41ae27763a4614d7e761b2684b90aa9317dafe7cb67481a6bc141c812d335d5231724ae3db2a7 SHA512 69681eab137f6713339f8912d0d92f6af865630053bcd7a32cb8a31e01628e969951db976533196794fe39e0e57f0fcd8778d9fc9fed4f4231e965b9a603dd8e |
28 |
DIST ghc-bin-8.8.1-i686-pc-linux-gnu.tbz2 120789855 BLAKE2B 386f37696d956078fad5cad50cbf5b9d9d7765615a1d9cc91a376fb5394648afe8ca956e24ef210f2ff0e51f339b63b16a50f6dc35f30babf019aa57de50b27b SHA512 193c29889693befba863d3c5a26d38d8182bb7e1932b61115dc0a21b6582f818b05db144a9fae5aee06af2044ea59f884825cf1081b62a1c67feb3041d184d3a |
29 |
DIST ghc-bin-8.8.1-powerpc64le-unknown-linux-gnu.tbz2 173653088 BLAKE2B 6c29777b596b35fee8e3a17f965e6a21dc40dc2387988f55d4ca5fef0ea9677b558ed210054216a6578b93fbf844df9e407770df184f707f8203f846f4929d2d SHA512 d338b8912c1632410c43a0df75ce69f961924a7c51049a3ac27c22f7c6cfc07388815813713d594fc38b721127df80b65f72b1b0cc6fbf0e10fa15970b8b6f46 |
30 |
|
31 |
diff --git a/dev-lang/ghc/ghc-8.6.5.ebuild b/dev-lang/ghc/ghc-8.6.5.ebuild |
32 |
index 63cc1241c21..01a7fa8dbb3 100644 |
33 |
--- a/dev-lang/ghc/ghc-8.6.5.ebuild |
34 |
+++ b/dev-lang/ghc/ghc-8.6.5.ebuild |
35 |
@@ -1,4 +1,4 @@ |
36 |
-# Copyright 1999-2019 Gentoo Authors |
37 |
+# Copyright 1999-2020 Gentoo Authors |
38 |
# Distributed under the terms of the GNU General Public License v2 |
39 |
|
40 |
EAPI=6 |
41 |
@@ -30,7 +30,7 @@ BIN_PV=${PV} |
42 |
arch_binaries="$arch_binaries amd64? ( https://slyfox.uni.cx/~slyfox/distfiles/ghc-bin-${PV}-x86_64-pc-linux-gnu.tbz2 )" |
43 |
#arch_binaries="$arch_binaries ia64? ( https://slyfox.uni.cx/~slyfox/distfiles/ghc-bin-${PV}-ia64-fixed-fiw.tbz2 )" |
44 |
#arch_binaries="$arch_binaries ppc? ( https://slyfox.uni.cx/~slyfox/distfiles/ghc-bin-${PV}-ppc.tbz2 )" |
45 |
-#arch_binaries="$arch_binaries ppc64? ( https://slyfox.uni.cx/~slyfox/distfiles/ghc-bin-${PV}-ppc64.tbz2 )" |
46 |
+arch_binaries="$arch_binaries ppc64? ( !big-endian? ( https://slyfox.uni.cx/~slyfox/distfiles/ghc-bin-${PV}-powerpc64le-unknown-linux-gnu.tbz2 ) )" |
47 |
#arch_binaries="$arch_binaries sparc? ( https://slyfox.uni.cx/~slyfox/distfiles/ghc-bin-${PV}-sparc.tbz2 )" |
48 |
arch_binaries="$arch_binaries x86? ( https://slyfox.uni.cx/~slyfox/distfiles/ghc-bin-${PV}-i686-pc-linux-gnu.tbz2 )" |
49 |
|
50 |
@@ -46,7 +46,10 @@ yet_binary() { |
51 |
amd64) return 0 ;; |
52 |
#ia64) return 0 ;; |
53 |
#ppc) return 0 ;; |
54 |
- #ppc64) return 0 ;; |
55 |
+ ppc64) |
56 |
+ use big-endian && return 1 |
57 |
+ return 0 |
58 |
+ ;; |
59 |
#sparc) return 0 ;; |
60 |
x86) return 0 ;; |
61 |
*) return 1 ;; |
62 |
@@ -73,7 +76,7 @@ LICENSE="BSD" |
63 |
SLOT="0/${PV}" |
64 |
# to be rekeyworded when most of revdeps are updated |
65 |
#KEYWORDS="~amd64 ~x86" |
66 |
-IUSE="doc ghcbootstrap ghcmakebinary +gmp profile test" |
67 |
+IUSE="big-endian doc elfutils ghcbootstrap ghcmakebinary +gmp numa profile test" |
68 |
RESTRICT="!test? ( test )" |
69 |
IUSE+=" binary" |
70 |
|
71 |
@@ -81,7 +84,9 @@ RDEPEND=" |
72 |
>=dev-lang/perl-5.6.1 |
73 |
dev-libs/gmp:0= |
74 |
sys-libs/ncurses:0=[unicode] |
75 |
+ elfutils? ( dev-libs/elfutils ) |
76 |
!ghcmakebinary? ( virtual/libffi:= ) |
77 |
+ numa? ( sys-process/numactl ) |
78 |
" |
79 |
|
80 |
# This set of dependencies is needed to run |
81 |
@@ -484,6 +489,7 @@ src_prepare() { |
82 |
eapply "${FILESDIR}"/${PN}-7.8.3-prim-lm.patch |
83 |
eapply "${FILESDIR}"/${PN}-8.0.2-no-relax-everywhere.patch |
84 |
eapply "${FILESDIR}"/${PN}-8.4.2-allow-cross-bootstrap.patch |
85 |
+ eapply "${FILESDIR}"/${PN}-8.6.5-numa.patch |
86 |
|
87 |
# a bunch of crosscompiler patches |
88 |
# needs newer version: |
89 |
@@ -632,7 +638,10 @@ src_configure() { |
90 |
einfo "Final mk/build.mk:" |
91 |
cat mk/build.mk || die |
92 |
|
93 |
- econf ${econf_args[@]} --enable-bootstrap-with-devel-snapshot |
94 |
+ econf ${econf_args[@]} \ |
95 |
+ --enable-bootstrap-with-devel-snapshot \ |
96 |
+ $(use elfutils && echo --enable-dwarf-unwind) \ |
97 |
+ $(use_enable numa) |
98 |
|
99 |
if [[ ${PV} == *9999* ]]; then |
100 |
GHC_PV="$(grep 'S\[\"PACKAGE_VERSION\"\]' config.status | sed -e 's@^.*=\"\(.*\)\"@\1@')" |