diff --git a/lang/python313/files/patch-Modules___blake2_blake2s__impl.c b/lang/python313/files/patch-Modules___blake2_blake2s__impl.c new file mode 100644 index 000000000000..101877f1ae87 --- /dev/null +++ b/lang/python313/files/patch-Modules___blake2_blake2s__impl.c @@ -0,0 +1,14 @@ +--- Modules/_blake2/blake2s_impl.c.orig 2025-10-14 13:52:31 UTC ++++ Modules/_blake2/blake2s_impl.c +@@ -103,10 +103,10 @@ py_blake2s_new_impl(PyTypeObject *type, PyObject *data + { + BLAKE2sObject *self = NULL; + PyObject *data; ++ Py_buffer buf; + if (_Py_hashlib_data_argument(&data, data_obj, string) < 0) { + return NULL; + } +- Py_buffer buf; + + self = new_BLAKE2sObject(type); + if (self == NULL) { diff --git a/lang/python313t/Makefile b/lang/python313t/Makefile index a16ecd23a074..9a16a021860d 100644 --- a/lang/python313t/Makefile +++ b/lang/python313t/Makefile @@ -1,16 +1,8 @@ CONFIGURE_ARGS+= --disable-gil THREADFLAG= t MASTERDIR= ${.CURDIR}/../python313 CONFLICTS_INSTALL= python313 .include "${MASTERDIR}/Makefile" - -# blake2s_impl is regenerated -# regen requires at least 3.10, but JIT requires at least 3.11 -.if ${PYTHON_DEFAULT:S/t$//} == 3.13 || ${PYTHON_DEFAULT:S/t$//} < 3.11 -BUILD_DEPENDS+= python3.12:lang/python312 -.else -BUILD_DEPENDS+= python${PYTHON_DEFAULT}:lang/python${PYTHON_DEFAULT:S/.//g} -.endif