1 |
commit: 7cb9bf4b1803801f4670546a08e56a1a2b3b9756 |
2 |
Author: Luca Barbato <lu_zero <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 26 16:43:28 2017 +0000 |
4 |
Commit: Luca Barbato <lu_zero <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 26 16:43:56 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cb9bf4b |
7 |
|
8 |
dev-python/cryptography: Fix libressl support |
9 |
|
10 |
Package-Manager: portage-2.3.3 |
11 |
|
12 |
dev-python/cryptography/cryptography-1.7.2.ebuild | 1 + |
13 |
.../files/cryptography-1.7.2-libressl-2.5.1.patch | 16 ++++++++++++++++ |
14 |
2 files changed, 17 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/cryptography/cryptography-1.7.2.ebuild b/dev-python/cryptography/cryptography-1.7.2.ebuild |
17 |
index c8c7f9b25d..85f516caaf 100644 |
18 |
--- a/dev-python/cryptography/cryptography-1.7.2.ebuild |
19 |
+++ b/dev-python/cryptography/cryptography-1.7.2.ebuild |
20 |
@@ -43,6 +43,7 @@ DEPEND="${RDEPEND} |
21 |
)" |
22 |
|
23 |
DOCS=( AUTHORS.rst CONTRIBUTING.rst README.rst ) |
24 |
+PATCHES=( "${FILESDIR}"/${P}-libressl-2.5.1.patch ) |
25 |
|
26 |
python_test() { |
27 |
distutils_install_for_testing |
28 |
|
29 |
diff --git a/dev-python/cryptography/files/cryptography-1.7.2-libressl-2.5.1.patch b/dev-python/cryptography/files/cryptography-1.7.2-libressl-2.5.1.patch |
30 |
new file mode 100644 |
31 |
index 0000000000..38fce99a5e |
32 |
--- /dev/null |
33 |
+++ b/dev-python/cryptography/files/cryptography-1.7.2-libressl-2.5.1.patch |
34 |
@@ -0,0 +1,16 @@ |
35 |
+diff -urN cryptography-1.7.2.orig/src/_cffi_src/openssl/x509_vfy.py cryptography-1.7.2/src/_cffi_src/openssl/x509_vfy.py |
36 |
+--- cryptography-1.7.2.orig/src/_cffi_src/openssl/x509_vfy.py 2017-01-27 15:09:52.000000000 +0000 |
37 |
++++ cryptography-1.7.2/src/_cffi_src/openssl/x509_vfy.py 2017-02-26 15:15:09.889855740 +0000 |
38 |
+@@ -221,10 +221,12 @@ |
39 |
+ static const long X509_V_ERR_SUITE_B_INVALID_SIGNATURE_ALGORITHM = 0; |
40 |
+ static const long X509_V_ERR_SUITE_B_LOS_NOT_ALLOWED = 0; |
41 |
+ static const long X509_V_ERR_SUITE_B_CANNOT_SIGN_P_384_WITH_P_256 = 0; |
42 |
++#ifndef X509_V_ERR_HOSTNAME_MISMATCH |
43 |
+ static const long X509_V_ERR_HOSTNAME_MISMATCH = 0; |
44 |
+ static const long X509_V_ERR_EMAIL_MISMATCH = 0; |
45 |
+ static const long X509_V_ERR_IP_ADDRESS_MISMATCH = 0; |
46 |
+ #endif |
47 |
++#endif |
48 |
+ |
49 |
+ /* OpenSSL 1.0.2beta2+ verification parameters */ |
50 |
+ #if CRYPTOGRAPHY_OPENSSL_102BETA2_OR_GREATER && \ |