1 |
commit: bb1d232a1eeb428724c2c8e24335ecc17c4a69b7 |
2 |
Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org> |
3 |
AuthorDate: Sat Sep 28 02:29:13 2019 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 29 02:56:13 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb1d232a |
7 |
|
8 |
net-libs/neon: Fix building with dev-libs/libressl-3.0.0. |
9 |
|
10 |
Fixes: https://bugs.gentoo.org/691796 |
11 |
Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache.Org> |
12 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
13 |
|
14 |
net-libs/neon/neon-0.30.2.ebuild | 10 ++++++---- |
15 |
1 file changed, 6 insertions(+), 4 deletions(-) |
16 |
|
17 |
diff --git a/net-libs/neon/neon-0.30.2.ebuild b/net-libs/neon/neon-0.30.2.ebuild |
18 |
index 506f311c68b..eea871bc8d5 100644 |
19 |
--- a/net-libs/neon/neon-0.30.2.ebuild |
20 |
+++ b/net-libs/neon/neon-0.30.2.ebuild |
21 |
@@ -45,10 +45,12 @@ src_prepare() { |
22 |
# Fix compatibility with OpenSSL >=1.1. |
23 |
sed -e "s/RSA_F_RSA_PRIVATE_ENCRYPT/RSA_F_RSA_OSSL_PRIVATE_ENCRYPT/" -i src/ne_pkcs11.c || die "sed failed" |
24 |
|
25 |
- # Support LibreSSL. |
26 |
- # Functions RSA_meth_get0_app_data() and RSA_meth_set0_app_data() are not implemented in LibreSSL 2.9.1. |
27 |
- sed -e "1202s/#if OPENSSL_VERSION_NUMBER < 0x10100000L/& || defined(LIBRESSL_VERSION_NUMBER)/" -i src/ne_openssl.c || die "sed failed" |
28 |
- sed -e "97a #if defined(LIBRESSL_VERSION_NUMBER)\nstatic void *RSA_meth_get0_app_data(const RSA_METHOD *meth)\n{\n return meth->app_data;\n}\nstatic int RSA_meth_set0_app_data(RSA_METHOD *meth, void *app_data)\n{\n meth->app_data = app_data;\n return 1;\n}\n#endif" -i src/ne_pkcs11.c || die "sed failed" |
29 |
+ if has_version "<dev-libs/libressl-3.0.0"; then |
30 |
+ # Support LibreSSL. |
31 |
+ # Functions RSA_meth_get0_app_data() and RSA_meth_set0_app_data() are not implemented in LibreSSL 2.9.2. |
32 |
+ sed -e "1202s/#if OPENSSL_VERSION_NUMBER < 0x10100000L/& || defined(LIBRESSL_VERSION_NUMBER)/" -i src/ne_openssl.c || die "sed failed" |
33 |
+ sed -e "97a #if defined(LIBRESSL_VERSION_NUMBER)\nstatic void *RSA_meth_get0_app_data(const RSA_METHOD *meth)\n{\n return meth->app_data;\n}\nstatic int RSA_meth_set0_app_data(RSA_METHOD *meth, void *app_data)\n{\n meth->app_data = app_data;\n return 1;\n}\n#endif" -i src/ne_pkcs11.c || die "sed failed" |
34 |
+ fi |
35 |
|
36 |
eapply_user |