summaryrefslogtreecommitdiff
path: root/pkg/python/patch
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2020-10-06 01:01:42 -0700
committerMichael Forney <mforney@mforney.org>2020-10-06 01:01:42 -0700
commit69b04f3be77e25e10f1e11b15d862d0cbe707c4d (patch)
tree30e9bf8242e5b8b1d91bee365b284827aab23476 /pkg/python/patch
parentce189763b6be8651daead037f020988e456a0ae7 (diff)
python: Update to 3.9.0
Diffstat (limited to 'pkg/python/patch')
-rw-r--r--pkg/python/patch/0001-Fix-build-with-libressl.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkg/python/patch/0001-Fix-build-with-libressl.patch b/pkg/python/patch/0001-Fix-build-with-libressl.patch
new file mode 100644
index 00000000..2a7a5803
--- /dev/null
+++ b/pkg/python/patch/0001-Fix-build-with-libressl.patch
@@ -0,0 +1,25 @@
+From c10df94443a1193da36af080993d64942b272be4 Mon Sep 17 00:00:00 2001
+From: Michael Forney <mforney@mforney.org>
+Date: Tue, 6 Oct 2020 00:58:09 -0700
+Subject: [PATCH] Fix build with libressl
+
+---
+ Modules/_hashopenssl.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Modules/_hashopenssl.c b/Modules/_hashopenssl.c
+index adc8653773..c40a3ff705 100644
+--- a/Modules/_hashopenssl.c
++++ b/Modules/_hashopenssl.c
+@@ -32,7 +32,7 @@
+ # error "OPENSSL_THREADS is not defined, Python requires thread-safe OpenSSL"
+ #endif
+
+-#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER)
++#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL)
+ /* OpenSSL < 1.1.0 */
+ #define EVP_MD_CTX_new EVP_MD_CTX_create
+ #define EVP_MD_CTX_free EVP_MD_CTX_destroy
+--
+2.28.0
+