summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2021-12-27 13:52:58 +0100
committerFabian Groffen <grobian@gentoo.org>2021-12-27 13:57:48 +0100
commit5d716d5d68f836022655aafc3086d4c2abfa4542 (patch)
treef62f14255edd89fbec7548cd0a9a6023d44f0808 /dev-libs/libgcrypt
parentwww-client/opera: remove old (diff)
downloadgentoo-5d716d5d68f836022655aafc3086d4c2abfa4542.tar.gz
gentoo-5d716d5d68f836022655aafc3086d4c2abfa4542.tar.bz2
gentoo-5d716d5d68f836022655aafc3086d4c2abfa4542.zip
dev-libs/libgcrypt-1.9.4: fix compilation for ppc-macos
Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'dev-libs/libgcrypt')
-rw-r--r--dev-libs/libgcrypt/files/libgcrypt-powerpc-darwin.patch16
-rw-r--r--dev-libs/libgcrypt/libgcrypt-1.9.4.ebuild1
2 files changed, 17 insertions, 0 deletions
diff --git a/dev-libs/libgcrypt/files/libgcrypt-powerpc-darwin.patch b/dev-libs/libgcrypt/files/libgcrypt-powerpc-darwin.patch
new file mode 100644
index 000000000000..f1c7cf9e9500
--- /dev/null
+++ b/dev-libs/libgcrypt/files/libgcrypt-powerpc-darwin.patch
@@ -0,0 +1,16 @@
+Drop guard for CPU detection, configure won't get this wrong, and this
+check fails on some PPC platforms where these guards aren't set (due to
+different kernel/libc).
+
+--- a/src/hwf-ppc.c
++++ b/src/hwf-ppc.c
+@@ -33,9 +33,6 @@
+ #include "g10lib.h"
+ #include "hwf-common.h"
+
+-#if !defined (__powerpc__) && !defined (__powerpc64__)
+-# error Module build for wrong CPU.
+-#endif
+
+
+ #if defined(HAVE_SYS_AUXV_H) && defined(HAVE_ELF_AUX_INFO) && \
diff --git a/dev-libs/libgcrypt/libgcrypt-1.9.4.ebuild b/dev-libs/libgcrypt/libgcrypt-1.9.4.ebuild
index 584154b6ff2d..544ba718baee 100644
--- a/dev-libs/libgcrypt/libgcrypt-1.9.4.ebuild
+++ b/dev-libs/libgcrypt/libgcrypt-1.9.4.ebuild
@@ -20,6 +20,7 @@ BDEPEND="doc? ( virtual/texi2dvi )"
PATCHES=(
"${FILESDIR}"/${PN}-multilib-syspath.patch
+ "${FILESDIR}"/${PN}-powerpc-darwin.patch
)
MULTILIB_CHOST_TOOLS=(