diff --git a/lang/python/python3-version.mk b/lang/python/python3-version.mk index 92e7789610..ac88200279 100644 --- a/lang/python/python3-version.mk +++ b/lang/python/python3-version.mk @@ -8,9 +8,9 @@ # Note: keep in sync with pip PYTHON3_VERSION_MAJOR:=3 PYTHON3_VERSION_MINOR:=14 -PYTHON3_VERSION_MICRO:=3 +PYTHON3_VERSION_MICRO:=4 PYTHON3_VERSION:=$(PYTHON3_VERSION_MAJOR).$(PYTHON3_VERSION_MINOR) PYTHON3_PIP_PKG_RELEASE:=1 -PYTHON3_PIP_VERSION:=25.3 +PYTHON3_PIP_VERSION:=26.0.1 diff --git a/lang/python/python3/Makefile b/lang/python/python3/Makefile index c44b27dc7b..2d01515a6f 100644 --- a/lang/python/python3/Makefile +++ b/lang/python/python3/Makefile @@ -11,12 +11,12 @@ include $(TOPDIR)/rules.mk include ../python3-version.mk PKG_NAME:=python3 -PKG_RELEASE:=3 +PKG_RELEASE:=1 PKG_VERSION:=$(PYTHON3_VERSION).$(PYTHON3_VERSION_MICRO) PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=https://www.python.org/ftp/python/$(PKG_VERSION) -PKG_HASH:=a97d5549e9ad81fe17159ed02c68774ad5d266c72f8d9a0b5a9c371fe85d902b +PKG_HASH:=d923c51303e38e249136fc1bdf3568d56ecb03214efdef48516176d3d7faaef8 PKG_MAINTAINER:=Alexandru Ardelean PKG_LICENSE:=Python-2.0.1 0BSD @@ -35,7 +35,7 @@ PKG_BUILD_PARALLEL:=1 HOST_BUILD_PARALLEL:=1 # LTO is handled here individually, see --with-lto below # "no-lto" prevents CONFIG_USE_LTO to add additional and interfering flags -PKG_BUILD_FLAGS:=no-lto +PKG_BUILD_FLAGS:=no-mips16 no-lto PKG_BUILD_DIR:=$(BUILD_DIR)/Python-$(PKG_VERSION) HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/Python-$(PKG_VERSION) diff --git a/lang/python/python3/patches/004-do-not-write-bytes-codes.patch b/lang/python/python3/patches/004-do-not-write-bytes-codes.patch index c525ee0810..5258af827b 100644 --- a/lang/python/python3/patches/004-do-not-write-bytes-codes.patch +++ b/lang/python/python3/patches/004-do-not-write-bytes-codes.patch @@ -1,6 +1,6 @@ --- a/Python/initconfig.c +++ b/Python/initconfig.c -@@ -474,7 +474,7 @@ int Py_NoSiteFlag = 0; /* Suppress 'impo +@@ -475,7 +475,7 @@ int Py_NoSiteFlag = 0; /* Suppress 'impo int Py_BytesWarningFlag = 0; /* Warn on str(bytes) and str(buffer) */ int Py_FrozenFlag = 0; /* Needed by getpath.c */ int Py_IgnoreEnvironmentFlag = 0; /* e.g. PYTHONPATH, PYTHONHOME */ diff --git a/lang/python/python3/patches/024-musl-find_library.patch b/lang/python/python3/patches/024-musl-find_library.patch index 959ee52085..c247c6e8a8 100644 --- a/lang/python/python3/patches/024-musl-find_library.patch +++ b/lang/python/python3/patches/024-musl-find_library.patch @@ -5,7 +5,7 @@ https://git.alpinelinux.org/aports/tree/main/python2/musl-find_library.patch --- a/Lib/ctypes/util.py +++ b/Lib/ctypes/util.py -@@ -195,6 +195,8 @@ elif sys.platform == "emscripten": +@@ -201,6 +201,8 @@ elif sys.platform == "emscripten": elif os.name == "posix": # Andreas Degert's find functions, using gcc, /sbin/ldconfig, objdump import re, tempfile @@ -14,7 +14,7 @@ https://git.alpinelinux.org/aports/tree/main/python2/musl-find_library.patch def _is_elf(filename): "Return True if the given file is an ELF file" -@@ -371,6 +373,57 @@ elif os.name == "posix": +@@ -377,6 +379,57 @@ elif os.name == "posix": def find_library(name, is64 = False): return _get_soname(_findLib_crle(name, is64) or _findLib_gcc(name)) diff --git a/lang/python/python3/patches/027-fix-host-build-libressl.patch b/lang/python/python3/patches/027-fix-host-build-libressl.patch index 439dae92a5..07c16dfc45 100644 --- a/lang/python/python3/patches/027-fix-host-build-libressl.patch +++ b/lang/python/python3/patches/027-fix-host-build-libressl.patch @@ -12,7 +12,7 @@ struct py_ssl_error_code { const char *mnemonic; -@@ -4896,7 +4899,11 @@ _ssl__SSLContext_cert_store_stats_impl(P +@@ -4898,7 +4901,11 @@ _ssl__SSLContext_cert_store_stats_impl(P int x509 = 0, crl = 0, ca = 0, i; store = SSL_CTX_get_cert_store(self->ctx); @@ -24,7 +24,7 @@ if (objs == NULL) { PyErr_SetString(PyExc_MemoryError, "failed to query cert store"); return NULL; -@@ -4952,7 +4959,11 @@ _ssl__SSLContext_get_ca_certs_impl(PySSL +@@ -4954,7 +4961,11 @@ _ssl__SSLContext_get_ca_certs_impl(PySSL } store = SSL_CTX_get_cert_store(self->ctx);