1 |
commit: 5d716d5d68f836022655aafc3086d4c2abfa4542 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Dec 27 12:52:58 2021 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 27 12:57:48 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d716d5d |
7 |
|
8 |
dev-libs/libgcrypt-1.9.4: fix compilation for ppc-macos |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
12 |
|
13 |
dev-libs/libgcrypt/files/libgcrypt-powerpc-darwin.patch | 16 ++++++++++++++++ |
14 |
dev-libs/libgcrypt/libgcrypt-1.9.4.ebuild | 1 + |
15 |
2 files changed, 17 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/libgcrypt/files/libgcrypt-powerpc-darwin.patch b/dev-libs/libgcrypt/files/libgcrypt-powerpc-darwin.patch |
18 |
new file mode 100644 |
19 |
index 000000000000..f1c7cf9e9500 |
20 |
--- /dev/null |
21 |
+++ b/dev-libs/libgcrypt/files/libgcrypt-powerpc-darwin.patch |
22 |
@@ -0,0 +1,16 @@ |
23 |
+Drop guard for CPU detection, configure won't get this wrong, and this |
24 |
+check fails on some PPC platforms where these guards aren't set (due to |
25 |
+different kernel/libc). |
26 |
+ |
27 |
+--- a/src/hwf-ppc.c |
28 |
++++ b/src/hwf-ppc.c |
29 |
+@@ -33,9 +33,6 @@ |
30 |
+ #include "g10lib.h" |
31 |
+ #include "hwf-common.h" |
32 |
+ |
33 |
+-#if !defined (__powerpc__) && !defined (__powerpc64__) |
34 |
+-# error Module build for wrong CPU. |
35 |
+-#endif |
36 |
+ |
37 |
+ |
38 |
+ #if defined(HAVE_SYS_AUXV_H) && defined(HAVE_ELF_AUX_INFO) && \ |
39 |
|
40 |
diff --git a/dev-libs/libgcrypt/libgcrypt-1.9.4.ebuild b/dev-libs/libgcrypt/libgcrypt-1.9.4.ebuild |
41 |
index 584154b6ff2d..544ba718baee 100644 |
42 |
--- a/dev-libs/libgcrypt/libgcrypt-1.9.4.ebuild |
43 |
+++ b/dev-libs/libgcrypt/libgcrypt-1.9.4.ebuild |
44 |
@@ -20,6 +20,7 @@ BDEPEND="doc? ( virtual/texi2dvi )" |
45 |
|
46 |
PATCHES=( |
47 |
"${FILESDIR}"/${PN}-multilib-syspath.patch |
48 |
+ "${FILESDIR}"/${PN}-powerpc-darwin.patch |
49 |
) |
50 |
|
51 |
MULTILIB_CHOST_TOOLS=( |