From edcf1d7d57b44e838648ae0695afd23a43275fb7 Mon Sep 17 00:00:00 2001 From: Wen Heping Date: Sun, 6 Apr 2025 00:05:12 -0400 Subject: lang/python313: add What's new: https://docs.python.org/3/whatsnew/3.13.html Most notably, introduce free-threaded mode. As this mode changes the ABI, the entire distribution lives in a separate hierarchy, and thus a new child port (lang/python313t) and FLAVOR (py313t) are introduced. Co-authored-by: vishwin PR: 274671 Differential Revision: https://reviews.freebsd.org/D49680 --- .../files/libressl/patch-Modules___hashopenssl.c | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 lang/python313/files/libressl/patch-Modules___hashopenssl.c (limited to 'lang/python313/files/libressl/patch-Modules___hashopenssl.c') diff --git a/lang/python313/files/libressl/patch-Modules___hashopenssl.c b/lang/python313/files/libressl/patch-Modules___hashopenssl.c new file mode 100644 index 000000000000..405141320e47 --- /dev/null +++ b/lang/python313/files/libressl/patch-Modules___hashopenssl.c @@ -0,0 +1,26 @@ +--- Modules/_hashopenssl.c.orig 2025-02-04 14:51:09 UTC ++++ Modules/_hashopenssl.c +@@ -44,7 +44,9 @@ + + #define MUNCH_SIZE INT_MAX + ++#ifndef LIBRESSL_VERSION_NUMBER + #define PY_OPENSSL_HAS_SCRYPT 1 ++#endif + #if defined(NID_sha3_224) && defined(NID_sha3_256) && defined(NID_sha3_384) && defined(NID_sha3_512) + #define PY_OPENSSL_HAS_SHA3 1 + #endif +@@ -918,9 +920,12 @@ py_evp_fromname(PyObject *module, const char *digestna + goto exit; + } + ++#ifdef PY_OPENSSL_HAS_SHAKE + if ((EVP_MD_flags(digest) & EVP_MD_FLAG_XOF) == EVP_MD_FLAG_XOF) { + type = get_hashlib_state(module)->EVPXOFtype; +- } else { ++ } else ++#endif ++ { + type = get_hashlib_state(module)->EVPtype; + } + -- cgit v1.2.3