diff --git a/lang/python/python3-version.mk b/lang/python/python3-version.mk index 219fe23a31..3e10ca97de 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:=7 +PYTHON3_VERSION_MICRO:=10 PYTHON3_VERSION:=$(PYTHON3_VERSION_MAJOR).$(PYTHON3_VERSION_MINOR) PYTHON3_PIP_PKG_RELEASE:=1 -PYTHON3_PIP_VERSION:=26.2.1 +PYTHON3_PIP_VERSION:=26.2.2 diff --git a/lang/python/python3/Makefile b/lang/python/python3/Makefile index 7e07cd69ec..258a5685a2 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:=2 +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:=3b48dac8fb59f62eaa67ac83c1eb12bda1b7a08406dd286e252c11a66be27f81 +PKG_HASH:=de414a57119abef52784d8993e341d53aed635fc2b05c2607d9f98a2c5b72032 PKG_MAINTAINER:=Alexandru Ardelean PKG_LICENSE:=Python-2.0.1 0BSD diff --git a/lang/python/python3/patches/003-do-not-run-compileall.patch b/lang/python/python3/patches/003-do-not-run-compileall.patch index e33322ff72..c64443c670 100644 --- a/lang/python/python3/patches/003-do-not-run-compileall.patch +++ b/lang/python/python3/patches/003-do-not-run-compileall.patch @@ -5,7 +5,7 @@ Subject: [PATCH] Do not run compileall --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -2819,6 +2819,7 @@ libinstall: all $(srcdir)/Modules/xxmodu +@@ -2828,6 +2828,7 @@ libinstall: all $(srcdir)/Modules/xxmodu echo "Applying app store compliance patch"; \ patch --force --reject-file "$(abs_builddir)/app-store-compliance.rej" --strip 2 --directory "$(DESTDIR)$(LIBDEST)" --input "$(abs_srcdir)/$(APP_STORE_COMPLIANCE_PATCH)" || true ; \ fi @@ -13,7 +13,7 @@ Subject: [PATCH] Do not run compileall @ # Build PYC files for the 3 optimization levels (0, 1, 2) -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ $(PYTHON_FOR_BUILD) -Wi $(DESTDIR)$(LIBDEST)/compileall.py \ -@@ -2829,6 +2830,7 @@ libinstall: all $(srcdir)/Modules/xxmodu +@@ -2838,6 +2839,7 @@ libinstall: all $(srcdir)/Modules/xxmodu $(PYTHON_FOR_BUILD) -Wi $(DESTDIR)$(LIBDEST)/compileall.py \ -o 0 -o 1 -o 2 $(COMPILEALL_OPTS) -d $(LIBDEST)/site-packages -f \ -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages diff --git a/lang/python/python3/patches/009-don-t-run-profile-task-during-cross-build.patch b/lang/python/python3/patches/009-don-t-run-profile-task-during-cross-build.patch index 8878ef5d01..a9427877b9 100644 --- a/lang/python/python3/patches/009-don-t-run-profile-task-during-cross-build.patch +++ b/lang/python/python3/patches/009-don-t-run-profile-task-during-cross-build.patch @@ -5,7 +5,7 @@ Subject: [PATCH] Do not run profile task during cross build --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -856,6 +856,7 @@ profile-gen-stamp: profile-clean-stamp +@@ -859,6 +859,7 @@ profile-gen-stamp: profile-clean-stamp # Run task with profile generation build to create profile information. profile-run-stamp: @@ -13,7 +13,7 @@ Subject: [PATCH] Do not run profile task during cross build @echo "Running code to generate profile data (this can take a while):" # First, we need to create a clean build with profile generation # enabled. -@@ -869,6 +870,7 @@ profile-run-stamp: +@@ -872,6 +873,7 @@ profile-run-stamp: # This is an expensive target to build and it does not have proper # makefile dependency information. So, we create a "stamp" file # to record its completion and avoid re-running it. @@ -23,7 +23,7 @@ Subject: [PATCH] Do not run profile task during cross build # Compile Python binary with profile guided optimization. --- a/configure.ac +++ b/configure.ac -@@ -1862,7 +1862,7 @@ fi +@@ -1872,7 +1872,7 @@ fi AC_ARG_VAR([PROFILE_TASK], [Python args for PGO generation task]) AC_MSG_CHECKING([PROFILE_TASK]) diff --git a/lang/python/python3/patches/025-choose-python-config-version.patch b/lang/python/python3/patches/025-choose-python-config-version.patch index 00c7d7b5ca..b14c229d2b 100644 --- a/lang/python/python3/patches/025-choose-python-config-version.patch +++ b/lang/python/python3/patches/025-choose-python-config-version.patch @@ -5,7 +5,7 @@ Subject: [PATCH] Choose python-config version --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -2845,7 +2845,7 @@ python-config: $(srcdir)/Misc/python-con +@@ -2854,7 +2854,7 @@ python-config: $(srcdir)/Misc/python-con @ # On Darwin, always use the python version of the script, the shell @ # version doesn't use the compiler customizations that are provided @ # in python (_osx_support.py). diff --git a/lang/python/python3/patches/026-openssl-feature-flags.patch b/lang/python/python3/patches/026-openssl-feature-flags.patch index e501294158..e84fd34c07 100644 --- a/lang/python/python3/patches/026-openssl-feature-flags.patch +++ b/lang/python/python3/patches/026-openssl-feature-flags.patch @@ -1,3 +1,8 @@ +From 02eb5c100c8462823ea19df6af637be97570ccdb Mon Sep 17 00:00:00 2001 +From: Jeffery To +Date: Mon, 22 May 2023 23:26:19 +0800 +Subject: [PATCH] Fix hashlib module not compiled for host Python + --- a/Modules/_hashopenssl.c +++ b/Modules/_hashopenssl.c @@ -44,7 +44,9 @@ @@ -10,7 +15,7 @@ #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 ch +@@ -981,11 +983,15 @@ _hashlib_HASH(PyObject *module, const ch goto exit; } 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 736c8fb4d6..04e52a6d2e 100644 --- a/lang/python/python3/patches/027-fix-host-build-libressl.patch +++ b/lang/python/python3/patches/027-fix-host-build-libressl.patch @@ -5,7 +5,7 @@ Subject: [PATCH] Fix host build with LibreSSL --- a/Modules/_ssl.c +++ b/Modules/_ssl.c -@@ -75,7 +75,10 @@ +@@ -76,7 +76,10 @@ # error "OPENSSL_THREADS is not defined, Python requires thread-safe OpenSSL" #endif @@ -17,7 +17,7 @@ Subject: [PATCH] Fix host build with LibreSSL struct py_ssl_error_code { const char *mnemonic; -@@ -4905,7 +4908,11 @@ _ssl__SSLContext_cert_store_stats_impl(P +@@ -4991,7 +4994,11 @@ _ssl__SSLContext_cert_store_stats_impl(P int x509 = 0, crl = 0, ca = 0, i; store = SSL_CTX_get_cert_store(self->ctx); @@ -29,7 +29,7 @@ Subject: [PATCH] Fix host build with LibreSSL if (objs == NULL) { PyErr_SetString(PyExc_MemoryError, "failed to query cert store"); return NULL; -@@ -4961,7 +4968,11 @@ _ssl__SSLContext_get_ca_certs_impl(PySSL +@@ -5047,7 +5054,11 @@ _ssl__SSLContext_get_ca_certs_impl(PySSL } store = SSL_CTX_get_cert_store(self->ctx);