diff options
| author | Bernard Spil <brnrd@freebsd.org> | 2022-07-11 13:51:30 +0000 |
|---|---|---|
| committer | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2022-07-11 13:51:30 +0000 |
| commit | 4c2fddeb7f59dbb8a861e425784a4a02fc11e40b (patch) | |
| tree | 0bbe62383fb2d38b544415ed32f3e144aa31797b | |
| parent | abdcd078dbe68039080d8b9c31e530c23cca3dac (diff) | |
| download | ports-4c2fddeb7f59dbb8a861e425784a4a02fc11e40b.tar.gz ports-4c2fddeb7f59dbb8a861e425784a4a02fc11e40b.zip | |
lang/python37: Fix build with LibreSSL 3.5.*
PR: 264000
| -rw-r--r-- | lang/python37/files/patch-libressl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lang/python37/files/patch-libressl b/lang/python37/files/patch-libressl new file mode 100644 index 000000000000..30b46f470050 --- /dev/null +++ b/lang/python37/files/patch-libressl @@ -0,0 +1,13 @@ +Fix build with LibreSSL 3.5.* + +--- Modules/_hashopenssl.c.orig 2022-03-16 13:27:21 UTC ++++ Modules/_hashopenssl.c +@@ -42,7 +42,7 @@ module _hashlib + #define HASH_OBJ_CONSTRUCTOR 0 + #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 |
