summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2020-11-27 11:41:48 +0100
committerFabian Groffen <grobian@gentoo.org>2020-11-27 11:47:29 +0100
commit68b4cf5165984f54c02e6bcec103cd3c3a3eb9bd (patch)
treea7c666ac6eb16ea49bb90de50427640015ca3899 /net-libs/gnutls
parentapp-portage/nattka: Bump to 0.2.11 (diff)
downloadgentoo-68b4cf5165984f54c02e6bcec103cd3c3a3eb9bd.tar.gz
gentoo-68b4cf5165984f54c02e6bcec103cd3c3a3eb9bd.tar.bz2
gentoo-68b4cf5165984f54c02e6bcec103cd3c3a3eb9bd.zip
net-libs/gnutls-3.6.15: add compilation fix for macOS
Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'net-libs/gnutls')
-rw-r--r--net-libs/gnutls/gnutls-3.6.15.ebuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/net-libs/gnutls/gnutls-3.6.15.ebuild b/net-libs/gnutls/gnutls-3.6.15.ebuild
index 5fabb1a30dc5..b0da1cec679a 100644
--- a/net-libs/gnutls/gnutls-3.6.15.ebuild
+++ b/net-libs/gnutls/gnutls-3.6.15.ebuild
@@ -74,6 +74,11 @@ src_prepare() {
rm src/$(basename ${file} .c).{c,h} || die
done
+ # don't try to use system certificate store on macOS, it is
+ # confusingly ignoring our ca-certificates and more importantly
+ # fails to compile in certain configurations
+ sed -i -e 's/__APPLE__/__NO_APPLE__/' lib/system/certs.c || die
+
# Use sane .so versioning on FreeBSD.
elibtoolize
}