Gentoo Archives: gentoo-commits

From: Jason Donenfeld <zx2c4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cryptography/files/, dev-python/cryptography/
Date: Tue, 01 Mar 2016 19:35:59
Message-Id: 1456860954.fe3faddb9bf793b16a104bc5f0d304f14e8cf057.zx2c4@gentoo
1 commit: fe3faddb9bf793b16a104bc5f0d304f14e8cf057
2 Author: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 1 19:35:34 2016 +0000
4 Commit: Jason Donenfeld <zx2c4 <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 1 19:35:54 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe3faddb
7
8 dev-python/cryptography: work with openssl 1.0.2g
9
10 Signed-off-by: Jason A. Donenfeld <zx2c4 <AT> gentoo.org>
11
12 dev-python/cryptography/cryptography-1.2.2.ebuild | 2 ++
13 .../files/cryptography-1.2.2-openssl-1.0.2g-mem_buf.patch | 12 ++++++++++++
14 2 files changed, 14 insertions(+)
15
16 diff --git a/dev-python/cryptography/cryptography-1.2.2.ebuild b/dev-python/cryptography/cryptography-1.2.2.ebuild
17 index ae9dbd1..af7e5a1 100644
18 --- a/dev-python/cryptography/cryptography-1.2.2.ebuild
19 +++ b/dev-python/cryptography/cryptography-1.2.2.ebuild
20 @@ -43,6 +43,8 @@ DEPEND="${RDEPEND}
21
22 DOCS=( AUTHORS.rst CONTRIBUTING.rst README.rst )
23
24 +PATCHES=( "${FILESDIR}/${PN}-1.2.2-openssl-1.0.2g-mem_buf.patch" )
25 +
26 python_test() {
27 py.test -v -v -x || die "Tests fail with ${EPYTHON}"
28 }
29
30 diff --git a/dev-python/cryptography/files/cryptography-1.2.2-openssl-1.0.2g-mem_buf.patch b/dev-python/cryptography/files/cryptography-1.2.2-openssl-1.0.2g-mem_buf.patch
31 new file mode 100644
32 index 0000000..64d270b
33 --- /dev/null
34 +++ b/dev-python/cryptography/files/cryptography-1.2.2-openssl-1.0.2g-mem_buf.patch
35 @@ -0,0 +1,12 @@
36 +diff -ru cryptography-1.2.2/src/_cffi_src/openssl/bio.py cryptography-1.2.2-fixed/src/_cffi_src/openssl/bio.py
37 +--- cryptography-1.2.2/src/_cffi_src/openssl/bio.py 2016-01-29 20:26:11.000000000 +0100
38 ++++ cryptography-1.2.2-fixed/src/_cffi_src/openssl/bio.py 2016-03-01 20:32:25.172776288 +0100
39 +@@ -99,7 +99,7 @@
40 + BIO *BIO_next(BIO *);
41 + BIO *BIO_find_type(BIO *, int);
42 + BIO_METHOD *BIO_s_mem(void);
43 +-BIO *BIO_new_mem_buf(void *, int);
44 ++BIO *BIO_new_mem_buf(const void *, int);
45 + BIO_METHOD *BIO_s_file(void);
46 + BIO *BIO_new_file(const char *, const char *);
47 + BIO *BIO_new_fp(FILE *, int);