summaryrefslogtreecommitdiff
path: root/pkg/python
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/python')
-rw-r--r--pkg/python/patch/0001-Fix-build-with-libressl-2.7.0.patch25
-rw-r--r--pkg/python/rev2
2 files changed, 26 insertions, 1 deletions
diff --git a/pkg/python/patch/0001-Fix-build-with-libressl-2.7.0.patch b/pkg/python/patch/0001-Fix-build-with-libressl-2.7.0.patch
new file mode 100644
index 00000000..71c256a1
--- /dev/null
+++ b/pkg/python/patch/0001-Fix-build-with-libressl-2.7.0.patch
@@ -0,0 +1,25 @@
+From ce8a3ec6f269d0d44ecf83669b5567ca9c934bc4 Mon Sep 17 00:00:00 2001
+From: Michael Forney <mforney@mforney.org>
+Date: Thu, 22 Mar 2018 23:42:12 -0700
+Subject: [PATCH] Fix build with libressl-2.7.0
+
+---
+ Modules/_ssl.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Modules/_ssl.c b/Modules/_ssl.c
+index df8c6a7d96..0e18cd887f 100644
+--- a/Modules/_ssl.c
++++ b/Modules/_ssl.c
+@@ -99,7 +99,7 @@ struct py_ssl_library_code {
+ /* Include generated data (error codes) */
+ #include "_ssl_data.h"
+
+-#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && !defined(LIBRESSL_VERSION_NUMBER)
++#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && (!defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER >= 0x2070000fL)
+ # define OPENSSL_VERSION_1_1 1
+ #endif
+
+--
+2.16.3
+
diff --git a/pkg/python/rev b/pkg/python/rev
index 1e8b3149..7f8f011e 100644
--- a/pkg/python/rev
+++ b/pkg/python/rev
@@ -1 +1 @@
-6
+7