diff options
author | Stefan Strogin <steils@gentoo.org> | 2020-12-02 14:23:52 +0200 |
---|---|---|
committer | Stefan Strogin <steils@gentoo.org> | 2020-12-02 14:25:42 +0200 |
commit | ed217e133fe9313a47ef34da94239693ce72440c (patch) | |
tree | e699259623684189009385b414bc91fc6e349359 /dev-python/pyopenssl | |
parent | x11-misc/grub2-theme-preview: 2.1.0 (diff) | |
download | gentoo-ed217e133fe9313a47ef34da94239693ce72440c.tar.gz gentoo-ed217e133fe9313a47ef34da94239693ce72440c.tar.bz2 gentoo-ed217e133fe9313a47ef34da94239693ce72440c.zip |
dev-python/pyopenssl: add patch for LibreSSL
Closes: https://bugs.gentoo.org/757738
Package-Manager: Portage-3.0.11, Repoman-3.0.2
Signed-off-by: Stefan Strogin <steils@gentoo.org>
Diffstat (limited to 'dev-python/pyopenssl')
-rw-r--r-- | dev-python/pyopenssl/files/pyopenssl-20.0.0-libressl.patch | 30 | ||||
-rw-r--r-- | dev-python/pyopenssl/pyopenssl-20.0.0-r1.ebuild (renamed from dev-python/pyopenssl/pyopenssl-20.0.0.ebuild) | 2 |
2 files changed, 32 insertions, 0 deletions
diff --git a/dev-python/pyopenssl/files/pyopenssl-20.0.0-libressl.patch b/dev-python/pyopenssl/files/pyopenssl-20.0.0-libressl.patch new file mode 100644 index 000000000000..6e9c7847fcea --- /dev/null +++ b/dev-python/pyopenssl/files/pyopenssl-20.0.0-libressl.patch @@ -0,0 +1,30 @@ +From ecbd275386e5608f0f90d3536506d7f50026ffe6 Mon Sep 17 00:00:00 2001 +From: "Nathaniel J. Smith" <njs@pobox.com> +Date: Thu, 1 Aug 2019 21:23:51 -0700 +Subject: [PATCH] Support openssl <1.1.1 + +Upstream-Status: Inappropriate +[https://github.com/pyca/pyopenssl/pull/861/commits/ecbd275386e5608f0f90d3536506d7f50026ffe6 +was accepted in 19.1.0 but later removed since the upstream dropped +support of OpenSSL <1.1.1] +Signed-off-by: Stefan Strogin <steils@gentoo.org> +--- + src/OpenSSL/SSL.py | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/src/OpenSSL/SSL.py b/src/OpenSSL/SSL.py +index 6f785fc4..55211511 100644 +--- a/src/OpenSSL/SSL.py ++++ b/src/OpenSSL/SSL.py +@@ -140,7 +140,10 @@ class _buffer(object): + OP_NO_TLSv1 = _lib.SSL_OP_NO_TLSv1 + OP_NO_TLSv1_1 = _lib.SSL_OP_NO_TLSv1_1 + OP_NO_TLSv1_2 = _lib.SSL_OP_NO_TLSv1_2 +-OP_NO_TLSv1_3 = _lib.SSL_OP_NO_TLSv1_3 ++try: ++ OP_NO_TLSv1_3 = _lib.SSL_OP_NO_TLSv1_3 ++except AttributeError: ++ pass + + MODE_RELEASE_BUFFERS = _lib.SSL_MODE_RELEASE_BUFFERS + diff --git a/dev-python/pyopenssl/pyopenssl-20.0.0.ebuild b/dev-python/pyopenssl/pyopenssl-20.0.0-r1.ebuild index b09f1b1bdec6..0e4a096a48ac 100644 --- a/dev-python/pyopenssl/pyopenssl-20.0.0.ebuild +++ b/dev-python/pyopenssl/pyopenssl-20.0.0-r1.ebuild @@ -37,6 +37,8 @@ DEPEND="${RDEPEND} >=dev-python/pytest-3.0.1[${PYTHON_USEDEP}] )" +PATCHES=( "${FILESDIR}"/${P}-libressl.patch ) + distutils_enable_sphinx doc \ dev-python/sphinx_rtd_theme |