commit: e9ae64be1a3c3564e2f58ada29f889d8c9ed7c2b
parent 3f7f393525babe2c0f3a0bc0530c52a5b1aa0aa2
Author: Michael Forney <mforney@mforney.org>
Date: Thu, 22 Mar 2018 23:48:24 -0700
python: Fix build with libressl-2.7.0
Diffstat:
2 files changed, 26 insertions(+), 1 deletion(-)
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
@@ -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
@@ -1 +1 @@
-6
+7