summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2018-03-22 23:48:24 -0700
committerMichael Forney <mforney@mforney.org>2018-03-23 21:09:56 -0700
commite9ae64be1a3c3564e2f58ada29f889d8c9ed7c2b (patch)
tree2a90f18b017f58c7806faac67efe06a1e1f83c91 /pkg
parent3f7f393525babe2c0f3a0bc0530c52a5b1aa0aa2 (diff)
python: Fix build with libressl-2.7.0
Diffstat (limited to 'pkg')
-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