summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2017-02-02 18:42:29 +0100
committerMike Gilbert <floppym@gentoo.org>2017-02-02 15:06:34 -0500
commitfa940322b14d81e123340b34ccdd5a407facc0ab (patch)
treeb12605a41569d7f3b2d97b16b54c815bd3d4b374 /net-libs/neon
parentnet-irc/kvirc: Version bump (20170202154736). (diff)
downloadgentoo-fa940322b14d81e123340b34ccdd5a407facc0ab.tar.gz
gentoo-fa940322b14d81e123340b34ccdd5a407facc0ab.tar.bz2
gentoo-fa940322b14d81e123340b34ccdd5a407facc0ab.zip
net-libs/neon: Fix compatibility with LibreSSL (bug #607812).
Diffstat (limited to 'net-libs/neon')
-rw-r--r--net-libs/neon/neon-0.30.2.ebuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/net-libs/neon/neon-0.30.2.ebuild b/net-libs/neon/neon-0.30.2.ebuild
index f80cf70e59e0..f63b661705b5 100644
--- a/net-libs/neon/neon-0.30.2.ebuild
+++ b/net-libs/neon/neon-0.30.2.ebuild
@@ -43,6 +43,11 @@ src_prepare() {
# Use CHOST-prefixed version of xml2-config for cross-compilation.
sed -e "s/AC_CHECK_PROG(XML2_CONFIG,/AC_CHECK_TOOL(XML2_CONFIG,/" -i macros/neon-xml-parser.m4 || die "sed failed"
+ # Use OpenSSL <1.1 compatibility code with LibreSSL.
+ # Functions EVP_PKEY_up_ref(), EVP_PKEY_get0_RSA(), RSA_meth_get0_app_data(), RSA_meth_new(), RSA_meth_free(),
+ # RSA_meth_set_priv_enc(), RSA_meth_set0_app_data() are not implemented in LibreSSL 2.5.1.
+ sed -e "s/#if OPENSSL_VERSION_NUMBER < 0x10100000L/& || defined(LIBRESSL_VERSION_NUMBER)/" -i src/ne_openssl.c src/ne_pkcs11.c || die "sed failed"
+
eapply_user
AT_M4DIR="macros" eautoreconf