Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/freebsd/freebsd-ports.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorFelix Palmen <zirias@FreeBSD.org>2022-10-17 13:27:08 +0300
committerFelix Palmen <zirias@FreeBSD.org>2022-11-04 14:16:39 +0300
commitf8ffeb6090dd3b27d363c693d40975f12dfbd873 (patch)
tree7289ae7f7a9c69d95a20d7f96696f56a7659a42e /lang
parent1f7edad4ceda225d95f13ea187316b3d3b05f8e4 (diff)
lang/python27: Fix build with libressl 3.5
Approved by: python (maintainer, timeout), tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D37047
Diffstat (limited to 'lang')
-rw-r--r--lang/python27/files/patch-Modules___hashopenssl.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/lang/python27/files/patch-Modules___hashopenssl.c b/lang/python27/files/patch-Modules___hashopenssl.c
new file mode 100644
index 000000000000..3ea2cb9e2aea
--- /dev/null
+++ b/lang/python27/files/patch-Modules___hashopenssl.c
@@ -0,0 +1,20 @@
+--- Modules/_hashopenssl.c.orig 2022-10-17 10:25:01 UTC
++++ Modules/_hashopenssl.c
+@@ -56,7 +56,7 @@
+ #define _OPENSSL_SUPPORTS_SHA2
+ #endif
+
+-#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER)
++#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
+ /* OpenSSL < 1.1.0 */
+ #define EVP_MD_CTX_new EVP_MD_CTX_create
+ #define EVP_MD_CTX_free EVP_MD_CTX_destroy
+@@ -901,7 +901,7 @@ init_hashlib(void)
+ {
+ PyObject *m, *openssl_md_meth_names;
+
+-#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER)
++#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
+ /* Load all digest algorithms and initialize cpuid */
+ OPENSSL_add_all_algorithms_noconf();
+ ERR_load_crypto_strings();