diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 16:24:49 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 16:24:49 -0500 |
| commit | a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7 (patch) | |
| tree | 0c52bbae1c242fbc296bd650fcd1167685f81492 /dev-lang/python/files | |
| parent | bfd9c39e4712ebdb442d4ca0673061faed1e70e1 (diff) | |
| download | baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.gz baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.xz baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.zip | |
Adding metadata
Diffstat (limited to 'dev-lang/python/files')
21 files changed, 0 insertions, 669 deletions
diff --git a/dev-lang/python/files/Makefile_pre.patch b/dev-lang/python/files/Makefile_pre.patch deleted file mode 100644 index 009c16e73127..000000000000 --- a/dev-lang/python/files/Makefile_pre.patch +++ /dev/null @@ -1,23 +0,0 @@ -Index: Makefile.pre.in ---- Makefile.pre.in.orig -+++ Makefile.pre.in -@@ -99,8 +99,8 @@ PY_CFLAGS_NODIST=$(CONFIGURE_CFLAGS_NODIST) $(CFLAGS_N - # Both CPPFLAGS and LDFLAGS need to contain the shell's value for setup.py to - # be able to build extension modules using the directories specified in the - # environment variables --PY_CPPFLAGS= $(BASECPPFLAGS) -I. -I$(srcdir)/Include $(CONFIGURE_CPPFLAGS) $(CPPFLAGS) --PY_LDFLAGS= $(CONFIGURE_LDFLAGS) $(LDFLAGS) -+PY_CPPFLAGS= $(BASECPPFLAGS) -I. -I$(srcdir)/Include $(CPPFLAGS) -+PY_LDFLAGS= $(LDFLAGS) - PY_LDFLAGS_NODIST=$(CONFIGURE_LDFLAGS_NODIST) $(LDFLAGS_NODIST) - NO_AS_NEEDED= @NO_AS_NEEDED@ - CCSHARED= @CCSHARED@ -@@ -670,7 +670,7 @@ gdbhooks: $(BUILDPYTHON)-gdb.py - - SRC_GDB_HOOKS=$(srcdir)/Tools/gdb/libpython.py - $(BUILDPYTHON)-gdb.py: $(SRC_GDB_HOOKS) -- $(INSTALL_DATA) $(SRC_GDB_HOOKS) $(BUILDPYTHON)-gdb.py -+ cp $(SRC_GDB_HOOKS) $(BUILDPYTHON)-gdb.py - - # This rule is here for OPENSTEP/Rhapsody/MacOSX. It builds a temporary - # minimal framework (not including the Lib directory and such) in the current diff --git a/dev-lang/python/files/Modules_hashopenssl_c.patch b/dev-lang/python/files/Modules_hashopenssl_c.patch deleted file mode 100644 index a0102d005e33..000000000000 --- a/dev-lang/python/files/Modules_hashopenssl_c.patch +++ /dev/null @@ -1,47 +0,0 @@ -Index: Modules/_hashopenssl.c ---- Modules/_hashopenssl.c.orig -+++ Modules/_hashopenssl.c -@@ -45,11 +45,6 @@ - - #define MUNCH_SIZE INT_MAX - --#define PY_OPENSSL_HAS_SCRYPT 1 --#define PY_OPENSSL_HAS_SHA3 1 --#define PY_OPENSSL_HAS_SHAKE 1 --#define PY_OPENSSL_HAS_BLAKE2 1 -- - #if OPENSSL_VERSION_NUMBER >= 0x30000000L - #define PY_EVP_MD EVP_MD - #define PY_EVP_MD_fetch(algorithm, properties) EVP_MD_fetch(NULL, algorithm, properties) -@@ -119,6 +114,7 @@ static const py_hashentry_t py_hashes[] = { - PY_HASH_ENTRY(Py_hash_sha256, "SHA256", SN_sha256, NID_sha256), - PY_HASH_ENTRY(Py_hash_sha384, "SHA384", SN_sha384, NID_sha384), - PY_HASH_ENTRY(Py_hash_sha512, "SHA512", SN_sha512, NID_sha512), -+#if !defined(LIBRESSL_VERSION_NUMBER) - /* truncated sha2 */ - PY_HASH_ENTRY(Py_hash_sha512_224, "SHA512_224", SN_sha512_224, NID_sha512_224), - PY_HASH_ENTRY(Py_hash_sha512_256, "SHA512_256", SN_sha512_256, NID_sha512_256), -@@ -133,6 +129,7 @@ static const py_hashentry_t py_hashes[] = { - /* blake2 digest */ - PY_HASH_ENTRY(Py_hash_blake2s, "blake2s256", SN_blake2s256, NID_blake2s256), - PY_HASH_ENTRY(Py_hash_blake2b, "blake2b512", SN_blake2b512, NID_blake2b512), -+#endif - PY_HASH_ENTRY(NULL, NULL, NULL, 0), - }; - -@@ -873,11 +870,15 @@ py_evp_fromname(PyObject *module, const char *digestna - goto exit; - } - -+#if defined(LIBRESSL_VERSION_NUMBER) -+ type = get_hashlib_state(module)->EVPtype; -+#else - if ((EVP_MD_flags(digest) & EVP_MD_FLAG_XOF) == EVP_MD_FLAG_XOF) { - type = get_hashlib_state(module)->EVPXOFtype; - } else { - type = get_hashlib_state(module)->EVPtype; - } -+#endif - - self = newEVPobject(type); - if (self == NULL) { diff --git a/dev-lang/python/files/configure.patch b/dev-lang/python/files/configure.patch deleted file mode 100644 index a57b669000bc..000000000000 --- a/dev-lang/python/files/configure.patch +++ /dev/null @@ -1,57 +0,0 @@ -#1: Set ports library version -#2: Don't pick up an installed linux/e2fsprogs libuuid.so -#3: llvm-ar (used for LTO) is installed as ar -#4: OpenBSD isn't multi-arch - -Index: configure.ac ---- configure.ac.orig -+++ configure.ac -@@ -126,7 +126,7 @@ VERSION=PYTHON_VERSION - - # Version number of Python's own shared library file. - AC_SUBST(SOVERSION) --SOVERSION=1.0 -+SOVERSION=${LIBpython3.10_VERSION} - - # The later defininition of _XOPEN_SOURCE disables certain features - # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). -@@ -876,6 +876,7 @@ AC_MSG_CHECKING([for multiarch]) - AS_CASE([$ac_sys_system], - [Darwin*], [MULTIARCH=""], - [FreeBSD*], [MULTIARCH=""], -+ [OpenBSD*], [MULTIARCH=""], - [MULTIARCH=$($CC --print-multiarch 2>/dev/null)] - ) - AC_SUBST([MULTIARCH]) -@@ -1380,9 +1381,9 @@ fi], - [AC_MSG_RESULT(no)]) - if test "$Py_LTO" = 'true' ; then - case $CC in -- *clang*) -+ *clang*|cc) - AC_SUBST(LLVM_AR) -- AC_PATH_TOOL(LLVM_AR, llvm-ar, '', ${llvm_path}) -+ AC_PATH_TOOL(LLVM_AR, ar, '', ${llvm_path}) - AC_SUBST(LLVM_AR_FOUND) - if test -n "${LLVM_AR}" -a -x "${LLVM_AR}" - then -@@ -2905,18 +2906,7 @@ AC_CHECK_LIB(dl, dlopen) # Dynamic linking for SunOS/S - AC_CHECK_LIB(dld, shl_load) # Dynamic linking for HP-UX - - # checks for uuid.h location --AC_CHECK_HEADERS([uuid/uuid.h uuid.h]) -- --AC_MSG_CHECKING(for uuid_generate_time_safe) --AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <uuid/uuid.h>]], [[ --#ifndef uuid_generate_time_safe --void *x = uuid_generate_time_safe --#endif --]])], -- [AC_DEFINE(HAVE_UUID_GENERATE_TIME_SAFE, 1, Define if uuid_generate_time_safe() exists.) -- AC_MSG_RESULT(yes)], -- [AC_MSG_RESULT(no)] --) -+AC_CHECK_HEADERS([uuid.h]) - - # check for libuuid from util-linux - save_LIBS=$LIBS diff --git a/dev-lang/python/files/configure_ac.patch b/dev-lang/python/files/configure_ac.patch deleted file mode 100644 index f57ba8a7ed01..000000000000 --- a/dev-lang/python/files/configure_ac.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff -urN Python-3.12.0.orig/configure.ac Python-3.12.0/configure.ac ---- Python-3.12.0.orig/configure.ac 2023-10-16 18:42:40.079345122 +0200 -+++ Python-3.12.0/configure.ac 2023-10-16 18:43:27.662341947 +0200 -@@ -7090,9 +7090,6 @@ - ], [ - OBJ_nid2sn(NID_md5); - OBJ_nid2sn(NID_sha1); -- OBJ_nid2sn(NID_sha3_512); -- OBJ_nid2sn(NID_blake2b512); -- EVP_PBE_scrypt(NULL, 0, NULL, 0, 2, 8, 1, 0, NULL, 0); - ])], [ac_cv_working_openssl_hashlib=yes], [ac_cv_working_openssl_hashlib=no]) - ]) - ]) diff --git a/dev-lang/python/files/hashopenssl-3.10.5-r1.patch b/dev-lang/python/files/hashopenssl-3.10.5-r1.patch deleted file mode 100644 index a0102d005e33..000000000000 --- a/dev-lang/python/files/hashopenssl-3.10.5-r1.patch +++ /dev/null @@ -1,47 +0,0 @@ -Index: Modules/_hashopenssl.c ---- Modules/_hashopenssl.c.orig -+++ Modules/_hashopenssl.c -@@ -45,11 +45,6 @@ - - #define MUNCH_SIZE INT_MAX - --#define PY_OPENSSL_HAS_SCRYPT 1 --#define PY_OPENSSL_HAS_SHA3 1 --#define PY_OPENSSL_HAS_SHAKE 1 --#define PY_OPENSSL_HAS_BLAKE2 1 -- - #if OPENSSL_VERSION_NUMBER >= 0x30000000L - #define PY_EVP_MD EVP_MD - #define PY_EVP_MD_fetch(algorithm, properties) EVP_MD_fetch(NULL, algorithm, properties) -@@ -119,6 +114,7 @@ static const py_hashentry_t py_hashes[] = { - PY_HASH_ENTRY(Py_hash_sha256, "SHA256", SN_sha256, NID_sha256), - PY_HASH_ENTRY(Py_hash_sha384, "SHA384", SN_sha384, NID_sha384), - PY_HASH_ENTRY(Py_hash_sha512, "SHA512", SN_sha512, NID_sha512), -+#if !defined(LIBRESSL_VERSION_NUMBER) - /* truncated sha2 */ - PY_HASH_ENTRY(Py_hash_sha512_224, "SHA512_224", SN_sha512_224, NID_sha512_224), - PY_HASH_ENTRY(Py_hash_sha512_256, "SHA512_256", SN_sha512_256, NID_sha512_256), -@@ -133,6 +129,7 @@ static const py_hashentry_t py_hashes[] = { - /* blake2 digest */ - PY_HASH_ENTRY(Py_hash_blake2s, "blake2s256", SN_blake2s256, NID_blake2s256), - PY_HASH_ENTRY(Py_hash_blake2b, "blake2b512", SN_blake2b512, NID_blake2b512), -+#endif - PY_HASH_ENTRY(NULL, NULL, NULL, 0), - }; - -@@ -873,11 +870,15 @@ py_evp_fromname(PyObject *module, const char *digestna - goto exit; - } - -+#if defined(LIBRESSL_VERSION_NUMBER) -+ type = get_hashlib_state(module)->EVPtype; -+#else - if ((EVP_MD_flags(digest) & EVP_MD_FLAG_XOF) == EVP_MD_FLAG_XOF) { - type = get_hashlib_state(module)->EVPXOFtype; - } else { - type = get_hashlib_state(module)->EVPtype; - } -+#endif - - self = newEVPobject(type); - if (self == NULL) { diff --git a/dev-lang/python/files/hashopenssl-3.11.8.patch b/dev-lang/python/files/hashopenssl-3.11.8.patch deleted file mode 100644 index ca234eb2eb4f..000000000000 --- a/dev-lang/python/files/hashopenssl-3.11.8.patch +++ /dev/null @@ -1,69 +0,0 @@ -LibreSSL has NID_sha3_256 and NID_sha512_256 now, but it's simpler to -handle -stable updates if we keep the patch until 7.4 is out. - -Index: Modules/_hashopenssl.c ---- Modules/_hashopenssl.c.orig -+++ Modules/_hashopenssl.c -@@ -45,10 +45,18 @@ - - #define MUNCH_SIZE INT_MAX - -+#ifdef NID_id_scrypt - #define PY_OPENSSL_HAS_SCRYPT 1 -+#endif -+#ifdef NID_sha3_256 - #define PY_OPENSSL_HAS_SHA3 1 -+#endif -+#ifdef NID_shake256 - #define PY_OPENSSL_HAS_SHAKE 1 -+#endif -+#ifdef NID_blake2s256 - #define PY_OPENSSL_HAS_BLAKE2 1 -+#endif - - #if OPENSSL_VERSION_NUMBER >= 0x30000000L - #define PY_EVP_MD EVP_MD -@@ -120,19 +128,27 @@ static const py_hashentry_t py_hashes[] = { - PY_HASH_ENTRY(Py_hash_sha384, "SHA384", SN_sha384, NID_sha384), - PY_HASH_ENTRY(Py_hash_sha512, "SHA512", SN_sha512, NID_sha512), - /* truncated sha2 */ -+#ifdef NID_sha512_256 - PY_HASH_ENTRY(Py_hash_sha512_224, "SHA512_224", SN_sha512_224, NID_sha512_224), - PY_HASH_ENTRY(Py_hash_sha512_256, "SHA512_256", SN_sha512_256, NID_sha512_256), -+#endif - /* sha3 */ -+#ifdef PY_OPENSSL_HAS_SHA3 - PY_HASH_ENTRY(Py_hash_sha3_224, NULL, SN_sha3_224, NID_sha3_224), - PY_HASH_ENTRY(Py_hash_sha3_256, NULL, SN_sha3_256, NID_sha3_256), - PY_HASH_ENTRY(Py_hash_sha3_384, NULL, SN_sha3_384, NID_sha3_384), - PY_HASH_ENTRY(Py_hash_sha3_512, NULL, SN_sha3_512, NID_sha3_512), -+#endif - /* sha3 shake */ -+#ifdef PY_OPENSSL_HAS_SHAKE - PY_HASH_ENTRY(Py_hash_shake_128, NULL, SN_shake128, NID_shake128), - PY_HASH_ENTRY(Py_hash_shake_256, NULL, SN_shake256, NID_shake256), -+#endif - /* blake2 digest */ -+#ifdef PY_OPENSSL_HAS_BLAKE2 - PY_HASH_ENTRY(Py_hash_blake2s, "blake2s256", SN_blake2s256, NID_blake2s256), - PY_HASH_ENTRY(Py_hash_blake2b, "blake2b512", SN_blake2b512, NID_blake2b512), -+#endif - PY_HASH_ENTRY(NULL, NULL, NULL, 0), - }; - -@@ -874,11 +890,15 @@ py_evp_fromname(PyObject *module, const char *digestna - goto exit; - } - -+#ifndef EVP_MD_FLAG_XOF -+ type = get_hashlib_state(module)->EVPtype; -+#else - if ((EVP_MD_flags(digest) & EVP_MD_FLAG_XOF) == EVP_MD_FLAG_XOF) { - type = get_hashlib_state(module)->EVPXOFtype; - } else { - type = get_hashlib_state(module)->EVPtype; - } -+#endif - - self = newEVPobject(type); - if (self == NULL) { diff --git a/dev-lang/python/files/hashopenssl-3.12.4.patch b/dev-lang/python/files/hashopenssl-3.12.4.patch deleted file mode 100644 index 9824bad805c6..000000000000 --- a/dev-lang/python/files/hashopenssl-3.12.4.patch +++ /dev/null @@ -1,28 +0,0 @@ -diff -urN Python-3.12.4.orig/Modules/_hashopenssl.c Python-3.12.4/Modules/_hashopenssl.c ---- Python-3.12.4.orig/Modules/_hashopenssl.c 2024-06-08 21:13:14.208249467 +0200 -+++ Python-3.12.4/Modules/_hashopenssl.c 2024-06-08 21:57:05.029194044 +0200 -@@ -44,7 +44,6 @@ - - #define MUNCH_SIZE INT_MAX - --#define PY_OPENSSL_HAS_SCRYPT 1 - #if defined(NID_sha3_224) && defined(NID_sha3_256) && defined(NID_sha3_384) && defined(NID_sha3_512) - #define PY_OPENSSL_HAS_SHA3 1 - #endif -@@ -921,12 +920,15 @@ - if (digest == NULL) { - goto exit; - } -- -+#if defined(LIBRESSL_VERSION_NUMBER) -+ type = get_hashlib_state(module)->EVPtype; -+#else - if ((EVP_MD_flags(digest) & EVP_MD_FLAG_XOF) == EVP_MD_FLAG_XOF) { - type = get_hashlib_state(module)->EVPXOFtype; - } else { - type = get_hashlib_state(module)->EVPtype; - } -+#endif - - self = newEVPobject(type); - if (self == NULL) { diff --git a/dev-lang/python/files/hashopenssl-3.5.0.patch b/dev-lang/python/files/hashopenssl-3.5.0.patch deleted file mode 100644 index a59644375945..000000000000 --- a/dev-lang/python/files/hashopenssl-3.5.0.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -urN Python-2.7.18.orig/Modules/_hashopenssl.c Python-2.7.18/Modules/_hashopenssl.c ---- Python-2.7.18.orig/Modules/_hashopenssl.c 2022-04-10 11:43:51.038101901 +0200 -+++ Python-2.7.18/Modules/_hashopenssl.c 2022-04-10 12:07:53.422071515 +0200 -@@ -60,7 +60,7 @@ - /* OpenSSL < 1.1.0 */ - #define EVP_MD_CTX_new EVP_MD_CTX_create - #define EVP_MD_CTX_free EVP_MD_CTX_destroy --#define HAS_FAST_PKCS5_PBKDF2_HMAC 0 -+#define HAS_FAST_PKCS5_PBKDF2_HMAC 1 - #include <openssl/hmac.h> - #else - /* OpenSSL >= 1.1.0 */ diff --git a/dev-lang/python/files/hashopenssl.patch b/dev-lang/python/files/hashopenssl.patch deleted file mode 100644 index 2ca469a2bf00..000000000000 --- a/dev-lang/python/files/hashopenssl.patch +++ /dev/null @@ -1,15 +0,0 @@ -Index: Modules/_hashopenssl.c ---- Modules/_hashopenssl.c.orig -+++ Modules/_hashopenssl.c -@@ -45,11 +45,6 @@ - - #define MUNCH_SIZE INT_MAX - --#define PY_OPENSSL_HAS_SCRYPT 1 --#define PY_OPENSSL_HAS_SHA3 1 --#define PY_OPENSSL_HAS_SHAKE 1 --#define PY_OPENSSL_HAS_BLAKE2 1 -- - #if OPENSSL_VERSION_NUMBER >= 0x30000000L - #define PY_EVP_MD EVP_MD - #define PY_EVP_MD_fetch(algorithm, properties) EVP_MD_fetch(NULL, algorithm, properties) diff --git a/dev-lang/python/files/patch-Modules__ssl_c b/dev-lang/python/files/patch-Modules__ssl_c deleted file mode 100644 index 53adf4457336..000000000000 --- a/dev-lang/python/files/patch-Modules__ssl_c +++ /dev/null @@ -1,12 +0,0 @@ -Index: Modules/_ssl.c ---- Modules/_ssl.c.orig -+++ Modules/_ssl.c -@@ -4541,7 +4541,7 @@ set_sni_callback(PySSLContext *self, PyObject *arg, vo - return 0; - } - --#if OPENSSL_VERSION_NUMBER < 0x30300000L -+#if OPENSSL_VERSION_NUMBER < 0x30300000L && !defined(LIBRESSL_VERSION_NUMBER) - static X509_OBJECT *x509_object_dup(const X509_OBJECT *obj) - { - int ok; diff --git a/dev-lang/python/files/pydoc.conf b/dev-lang/python/files/pydoc.conf deleted file mode 100644 index 3c6920cc96c4..000000000000 --- a/dev-lang/python/files/pydoc.conf +++ /dev/null @@ -1,6 +0,0 @@ -# /etc/init.d/pydoc.conf - -# This file contains the configuration for pydoc's internal webserver. - -# Default port for Python's pydoc server. -@PYDOC_PORT_VARIABLE@="7464" diff --git a/dev-lang/python/files/pydoc.init b/dev-lang/python/files/pydoc.init deleted file mode 100644 index f8e05636da4e..000000000000 --- a/dev-lang/python/files/pydoc.init +++ /dev/null @@ -1,24 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public Licence v2 - -start() { - local pydoc_port="${@PYDOC_PORT_VARIABLE@-${PYDOC_PORT}}" - - if [ -z "${pydoc_port}" ]; then - eerror "Port not set" - return 1 - fi - - ebegin "Starting pydoc server on port ${pydoc_port}" - start-stop-daemon --start --background --make-pidfile \ - --pidfile /var/run/@PYDOC@.pid \ - --exec /usr/bin/@PYDOC@ -- -p "${pydoc_port}" - eend $? -} - -stop() { - ebegin "Stopping pydoc server" - start-stop-daemon --stop --quiet --pidfile /var/run/@PYDOC@.pid - eend $? -} diff --git a/dev-lang/python/files/python-3.13.4-libressl.patch b/dev-lang/python/files/python-3.13.4-libressl.patch deleted file mode 100644 index 7ec7128c7ad6..000000000000 --- a/dev-lang/python/files/python-3.13.4-libressl.patch +++ /dev/null @@ -1,28 +0,0 @@ ---- a/Modules/_hashopenssl.c.orig -+++ b/Modules/_hashopenssl.c -@@ -44,7 +44,9 @@ - - #define MUNCH_SIZE INT_MAX - -+#ifdef NID_id_scrypt - #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 -@@ -922,11 +924,15 @@ py_evp_fromname(PyObject *module, const char *digestname, PyObject *data_obj, - goto exit; - } - -+#ifndef EVP_MD_FLAG_XOF -+ type = get_hashlib_state(module)->EVPtype; -+#else - if ((EVP_MD_flags(digest) & EVP_MD_FLAG_XOF) == EVP_MD_FLAG_XOF) { - type = get_hashlib_state(module)->EVPXOFtype; - } else { - type = get_hashlib_state(module)->EVPtype; - } -+#endif - - self = newEVPobject(type); - if (self == NULL) { diff --git a/dev-lang/python/files/python-3.14.0-libressl.patch b/dev-lang/python/files/python-3.14.0-libressl.patch deleted file mode 100644 index d8c4f8b0e5f4..000000000000 --- a/dev-lang/python/files/python-3.14.0-libressl.patch +++ /dev/null @@ -1,51 +0,0 @@ ---- a/Modules/_hashopenssl.c -+++ b/Modules/_hashopenssl.c -@@ -44,7 +44,9 @@ - - #define MUNCH_SIZE INT_MAX - -+#ifdef NID_id_scrypt - #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 -@@ -963,11 +965,15 @@ _hashlib_HASH(PyObject *module, const char *digestname, PyObject *data_obj, - goto exit; - } - -+#ifndef EVP_MD_FLAG_XOF -+ type = get_hashlib_state(module)->EVPtype; -+#else - if ((EVP_MD_flags(digest) & EVP_MD_FLAG_XOF) == EVP_MD_FLAG_XOF) { - type = get_hashlib_state(module)->EVPXOFtype; - } else { - type = get_hashlib_state(module)->EVPtype; - } -+#endif - - self = newEVPobject(type); - if (self == NULL) { ---- a/Modules/_ssl.c -+++ b/Modules/_ssl.c -@@ -907,7 +907,7 @@ newPySSLSocket(PySSLContext *sslctx, PySocketSockObject *sock, - } - - /* bpo43522 and OpenSSL < 1.1.1l: copy hostflags manually */ --#if OPENSSL_VERSION < 0x101010cf -+#if OPENSSL_VERSION_NUMBER < 0x101010cf - X509_VERIFY_PARAM *ssl_verification_params = SSL_get0_param(self->ssl); - X509_VERIFY_PARAM *ssl_ctx_verification_params = SSL_CTX_get0_param(ctx); - -@@ -3859,7 +3859,11 @@ _ssl__SSLContext__host_flags_get_impl(PySSLContext *self) - unsigned int host_flags; - - ssl_verification_params = SSL_CTX_get0_param(self->ctx); -+#ifdef LIBRESSL_VERSION_NUMBER -+ host_flags = 0; -+#else - host_flags = X509_VERIFY_PARAM_get_hostflags(ssl_verification_params); -+#endif - return PyLong_FromUnsignedLong(host_flags); - } - diff --git a/dev-lang/python/files/python-3.14.2-libressl.patch b/dev-lang/python/files/python-3.14.2-libressl.patch deleted file mode 100644 index edf5e4b79ddd..000000000000 --- a/dev-lang/python/files/python-3.14.2-libressl.patch +++ /dev/null @@ -1,45 +0,0 @@ -diff '--color=auto' -urN Python-3.14.2.orig/Modules/_hashopenssl.c Python-3.14.2/Modules/_hashopenssl.c ---- Python-3.14.2.orig/Modules/_hashopenssl.c 2025-12-07 22:18:06.285001985 +0100 -+++ Python-3.14.2/Modules/_hashopenssl.c 2025-12-07 22:29:16.814061909 +0100 -@@ -44,7 +44,9 @@ - - #define MUNCH_SIZE INT_MAX - -+#ifdef NID_id_scrypt - #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 -@@ -963,11 +965,15 @@ - goto exit; - } - -+#ifndef EVP_MD_FLAG_XOF -+ type = get_hashlib_state(module)->EVPtype; -+#else - if ((EVP_MD_flags(digest) & EVP_MD_FLAG_XOF) == EVP_MD_FLAG_XOF) { - type = get_hashlib_state(module)->EVPXOFtype; - } else { - type = get_hashlib_state(module)->EVPtype; - } -+#endif - - self = newEVPobject(type); - if (self == NULL) { -diff '--color=auto' -urN Python-3.14.2.orig/Modules/_ssl.c Python-3.14.2/Modules/_ssl.c ---- Python-3.14.2.orig/Modules/_ssl.c 2025-12-07 22:18:06.288255867 +0100 -+++ Python-3.14.2/Modules/_ssl.c 2025-12-07 22:30:22.406002732 +0100 -@@ -3873,7 +3873,12 @@ - unsigned int host_flags; - - ssl_verification_params = SSL_CTX_get0_param(self->ctx); -+#ifdef LIBRESSL_VERSION_NUMBER -+ host_flags = 0; -+#else - host_flags = X509_VERIFY_PARAM_get_hostflags(ssl_verification_params); -+#endif -+ - return PyLong_FromUnsignedLong(host_flags); - } - diff --git a/dev-lang/python/files/python-3.9.9-r1-libressl.patch b/dev-lang/python/files/python-3.9.9-r1-libressl.patch deleted file mode 100644 index 997bc0eb62cc..000000000000 --- a/dev-lang/python/files/python-3.9.9-r1-libressl.patch +++ /dev/null @@ -1,34 +0,0 @@ -$OpenBSD: patch-Modules__hashopenssl_c,v 1.3 2022/01/21 04:25:12 kmos Exp $ - -Index: Modules/_hashopenssl.c ---- a/Modules/_hashopenssl.c -+++ b/Modules/_hashopenssl.c -@@ -43,7 +43,8 @@ - # 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 - -$OpenBSD: patch-Modules__ssl_c,v 1.3 2021/11/18 15:45:28 tb Exp $ - -XXX maybe this can go away now we have auto-init, I'm not sure exactly -what python's lock protects - -Index: Modules/_ssl.c ---- a/Modules/_ssl.c -+++ b/Modules/_ssl.c -@@ -213,6 +213,9 @@ extern const SSL_METHOD *TLSv1_2_method(void); - #if defined(OPENSSL_VERSION_1_1) && !defined(OPENSSL_NO_SSL2) - #define OPENSSL_NO_SSL2 - #endif -+#if defined(LIBRESSL_VERSION_NUMBER) && defined(WITH_THREAD) -+#define HAVE_OPENSSL_CRYPTO_LOCK -+#endif - - #ifndef PY_OPENSSL_1_1_API - /* OpenSSL 1.1 API shims for OpenSSL < 1.1.0 and LibreSSL < 2.7.0 */ diff --git a/dev-lang/python/files/setup.patch b/dev-lang/python/files/setup.patch deleted file mode 100644 index ed117caf9c93..000000000000 --- a/dev-lang/python/files/setup.patch +++ /dev/null @@ -1,31 +0,0 @@ -Index: setup.py ---- setup.py.orig -+++ setup.py -@@ -1151,6 +1151,8 @@ class PyBuildExt(build_ext): - 'termcap'): - readline_libs.append('termcap') - self.add(Extension('readline', ['readline.c'], -+ extra_compile_args=['-nostdinc'], -+ include_dirs=['/usr/include'], - library_dirs=['/usr/lib/termcap'], - extra_link_args=readline_extra_link_args, - libraries=readline_libs)) -@@ -1870,7 +1872,7 @@ class PyBuildExt(build_ext): - uuid_h = sysconfig.get_config_var("HAVE_UUID_H") - uuid_uuid_h = sysconfig.get_config_var("HAVE_UUID_UUID_H") - if uuid_h or uuid_uuid_h: -- if sysconfig.get_config_var("HAVE_LIBUUID"): -+ if sysconfig.get_config_var("HAVE_LIBUUID") and not HOST_PLATFORM.startswith('openbsd'): - uuid_libs = ["uuid"] - else: - uuid_libs = [] -@@ -2116,8 +2118,7 @@ class PyBuildExt(build_ext): - # The versions with dots are used on Unix, and the versions without - # dots on Windows, for detection by cygwin. - tcllib = tklib = tcl_includes = tk_includes = None -- for version in ['8.6', '86', '8.5', '85', '8.4', '84', '8.3', '83', -- '8.2', '82', '8.1', '81', '8.0', '80']: -+ for version in ['85']: - tklib = self.compiler.find_library_file(self.lib_dirs, - 'tk' + version) - tcllib = self.compiler.find_library_file(self.lib_dirs, diff --git a/dev-lang/python/files/ssl-3.10.14.patch b/dev-lang/python/files/ssl-3.10.14.patch deleted file mode 100644 index 1f7dba493334..000000000000 --- a/dev-lang/python/files/ssl-3.10.14.patch +++ /dev/null @@ -1,28 +0,0 @@ -diff -urN Python-3.10.14.orig/Modules/_ssl.c Python-3.10.14/Modules/_ssl.c ---- Python-3.10.14.orig/Modules/_ssl.c 2024-03-21 19:04:50.129880414 +0100 -+++ Python-3.10.14/Modules/_ssl.c 2024-03-21 19:48:07.073067455 +0100 -@@ -4519,7 +4519,7 @@ - return 0; - } - --#if OPENSSL_VERSION_NUMBER < 0x30300000L -+#if OPENSSL_VERSION_NUMBER < 0x30300000L && !defined(LIBRESSL_VERSION_NUMBER) - static X509_OBJECT *x509_object_dup(const X509_OBJECT *obj) - { - int ok; -@@ -4548,6 +4548,7 @@ - } - return ret; - } -+#endif - - static STACK_OF(X509_OBJECT) * - X509_STORE_get1_objects(X509_STORE *store) -@@ -4561,7 +4562,6 @@ - X509_STORE_unlock(store); - return ret; - } --#endif - - PyDoc_STRVAR(PySSLContext_sni_callback_doc, - "Set a callback that will be called when a server name is provided by the SSL/TLS client in the SNI extension.\n\ diff --git a/dev-lang/python/files/ssl-3.12.3-r1.patch b/dev-lang/python/files/ssl-3.12.3-r1.patch deleted file mode 100644 index e54905d9bd96..000000000000 --- a/dev-lang/python/files/ssl-3.12.3-r1.patch +++ /dev/null @@ -1,35 +0,0 @@ -diff -urN Python-3.12.3.orig/Modules/_ssl.c Python-3.12.3/Modules/_ssl.c ---- Python-3.12.3.orig/Modules/_ssl.c 2024-05-24 21:55:04.871846813 +0200 -+++ Python-3.12.3/Modules/_ssl.c 2024-05-24 21:58:24.578833486 +0200 -@@ -4528,6 +4528,7 @@ - return NULL; - } - switch (X509_OBJECT_get_type(obj)) { -+#if !defined(LIBRESSL_VERSION_NUMBER) - case X509_LU_X509: - ok = X509_OBJECT_set1_X509(ret, X509_OBJECT_get0_X509(obj)); - break; -@@ -4536,6 +4537,7 @@ - ok = X509_OBJECT_set1_X509_CRL( - ret, X509_OBJECT_get0_X509_CRL((X509_OBJECT *)obj)); - break; -+#endif - default: - /* We cannot duplicate unrecognized types in a polyfill, but it is - * safe to leave an empty object. The caller will ignore it. */ -@@ -4549,6 +4551,7 @@ - return ret; - } - -+#if !defined(LIBRESSL_VERSION_NUMBER) - static STACK_OF(X509_OBJECT) * - X509_STORE_get1_objects(X509_STORE *store) - { -@@ -4562,6 +4565,7 @@ - return ret; - } - #endif -+#endif - - PyDoc_STRVAR(PySSLContext_sni_callback_doc, - "Set a callback that will be called when a server name is provided by the SSL/TLS client in the SNI extension.\n\ diff --git a/dev-lang/python/files/ssl-3.12.3.patch b/dev-lang/python/files/ssl-3.12.3.patch deleted file mode 100644 index 5f1262b9979b..000000000000 --- a/dev-lang/python/files/ssl-3.12.3.patch +++ /dev/null @@ -1,37 +0,0 @@ -diff -urN Python-3.12.3.orig/Modules/_ssl.c Python-3.12.3/Modules/_ssl.c ---- Python-3.12.3.orig/Modules/_ssl.c 2024-05-22 21:13:21.996396074 +0200 -+++ Python-3.12.3/Modules/_ssl.c 2024-05-22 21:22:40.899410803 +0200 -@@ -4528,6 +4528,7 @@ - return NULL; - } - switch (X509_OBJECT_get_type(obj)) { -+#if !defined(LIBRESSL_VERSION_NUMBER) - case X509_LU_X509: - ok = X509_OBJECT_set1_X509(ret, X509_OBJECT_get0_X509(obj)); - break; -@@ -4536,6 +4537,7 @@ - ok = X509_OBJECT_set1_X509_CRL( - ret, X509_OBJECT_get0_X509_CRL((X509_OBJECT *)obj)); - break; -+#endif - default: - /* We cannot duplicate unrecognized types in a polyfill, but it is - * safe to leave an empty object. The caller will ignore it. */ -@@ -4552,6 +4554,7 @@ - static STACK_OF(X509_OBJECT) * - X509_STORE_get1_objects(X509_STORE *store) - { -+#if !defined(LIBRESSL_VERSION_NUMBER) - STACK_OF(X509_OBJECT) *ret; - if (!X509_STORE_lock(store)) { - return NULL; -@@ -4560,6 +4563,9 @@ - x509_object_dup, X509_OBJECT_free); - X509_STORE_unlock(store); - return ret; -+#else -+ return NULL; -+#endif - } - #endif - diff --git a/dev-lang/python/files/ssl.patch b/dev-lang/python/files/ssl.patch deleted file mode 100644 index 857042df4d84..000000000000 --- a/dev-lang/python/files/ssl.patch +++ /dev/null @@ -1,27 +0,0 @@ -Neuter security level things until LibreSSL supports them. - -Index: Modules/_ssl.c ---- Modules/_ssl.c.orig -+++ Modules/_ssl.c -@@ -169,7 +169,7 @@ extern const SSL_METHOD *TLSv1_2_method(void); - * Based on Hynek's excellent blog post (update 2021-02-11) - * https://hynek.me/articles/hardening-your-web-servers-ssl-ciphers/ - */ -- #define PY_SSL_DEFAULT_CIPHER_STRING "@SECLEVEL=2:ECDH+AESGCM:ECDH+CHACHA20:ECDH+AES:DHE+AES:!aNULL:!eNULL:!aDSS:!SHA1:!AESCCM" -+ #define PY_SSL_DEFAULT_CIPHER_STRING "ECDH+AESGCM:ECDH+CHACHA20:ECDH+AES:DHE+AES:!aNULL:!eNULL:!aDSS:!SHA1:!AESCCM" - #ifndef PY_SSL_MIN_PROTOCOL - #define PY_SSL_MIN_PROTOCOL TLS1_2_VERSION - #endif -@@ -3579,6 +3579,12 @@ set_num_tickets(PySSLContext *self, PyObject *arg, voi - PyDoc_STRVAR(PySSLContext_num_tickets_doc, - "Control the number of TLSv1.3 session tickets"); - #endif /* TLS1_3_VERSION */ -+ -+int -+SSL_CTX_get_security_level(const SSL_CTX *ctx) -+{ -+ return 1; -+} - - static PyObject * - get_security_level(PySSLContext *self, void *c) |
