Date: Mon, 11 Jul 2022 13:54:37 GMT From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 19051b3d996c - main - lang/python39: Fix build with LibreSSL 3.5.* Message-ID: <202207111354.26BDsb4j014165@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=19051b3d996c9ec8dc2d43d925bb54b9a2116a21 commit 19051b3d996c9ec8dc2d43d925bb54b9a2116a21 Author: Bernard Spil <brnrd@freebsd.org> AuthorDate: 2022-07-11 13:51:31 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2022-07-11 13:51:31 +0000 lang/python39: Fix build with LibreSSL 3.5.* PR: 264000 --- lang/python39/files/patch-libressl | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lang/python39/files/patch-libressl b/lang/python39/files/patch-libressl new file mode 100644 index 000000000000..045765a4fed5 --- /dev/null +++ b/lang/python39/files/patch-libressl @@ -0,0 +1,13 @@ +Fix build with LibreSSL 3.5.* + +--- Modules/_hashopenssl.c.orig 2022-05-17 11:12:56 UTC ++++ Modules/_hashopenssl.c +@@ -43,7 +43,7 @@ + # error "OPENSSL_THREADS is not defined, Python requires thread-safe OpenSSL" + #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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202207111354.26BDsb4j014165>