python3: update to 3.10.7
authorMichal Vasilek <michal.vasilek@nic.cz>
Mon, 10 Oct 2022 13:39:46 +0000 (15:39 +0200)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Tue, 11 Oct 2022 15:57:17 +0000 (17:57 +0200)
* fixes CVE-2021-28861
* adjust pip and setuptools versions
* refresh patches

Signed-off-by: Michal Vasilek <michal.vasilek@nic.cz>
(cherry picked from commit e9ddc479f9a77b9d173081bbc57cd805b24942d8)

lang/python/python3-version.mk
lang/python/python3/Makefile
lang/python/python3/patches/004-do-not-write-bytes-codes.patch
lang/python/python3/patches/006-do-not-add-multiarch-paths-when-cross-compiling.patch

index fe465472674e3bcbeb6d98004f70d17416203374..d8e72df198e5bdbca10be8fdc1c3720e6b19d6a3 100644 (file)
@@ -8,12 +8,12 @@
 # Note: keep in sync with setuptools & pip
 PYTHON3_VERSION_MAJOR:=3
 PYTHON3_VERSION_MINOR:=10
-PYTHON3_VERSION_MICRO:=5
+PYTHON3_VERSION_MICRO:=7
 
 PYTHON3_VERSION:=$(PYTHON3_VERSION_MAJOR).$(PYTHON3_VERSION_MINOR)
 
 PYTHON3_SETUPTOOLS_PKG_RELEASE:=1
 PYTHON3_PIP_PKG_RELEASE:=1
 
-PYTHON3_SETUPTOOLS_VERSION:=58.1.0
-PYTHON3_PIP_VERSION:=22.0.4
+PYTHON3_SETUPTOOLS_VERSION:=63.2.0
+PYTHON3_PIP_VERSION:=22.2.2
index 7fbc84aa10aa96297280cdecfcbbb8d6912a2d8d..62a7d2a7174a8c423278e6a8db16f457448493ff 100644 (file)
@@ -16,7 +16,7 @@ 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:=8437efd5b106ef0a75aabfbf23d880625120a73a86a22ade4d2e2e68d7b74486
+PKG_HASH:=6eed8415b7516fb2f260906db5d48dd4c06acc0cb24a7d6cc15296a604dcdc48
 
 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
 PKG_LICENSE:=PSF-2.0
index c012d0cb4f259bbfd7ae3fe5cf8e2e8d97a1767b..40b4e5b0c4e83a411ebc06ab6709c1413e4e17fd 100644 (file)
@@ -1,6 +1,6 @@
 --- a/Python/initconfig.c
 +++ b/Python/initconfig.c
-@@ -154,7 +154,7 @@ int Py_NoSiteFlag = 0; /* Suppress 'impo
+@@ -163,7 +163,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 */
index 18ec0de7262969382f325055510af873757828df..a2bb0fba0686ef64b57d6b3ee8ce0c0b757a21da 100644 (file)
@@ -1,6 +1,6 @@
 --- a/setup.py
 +++ b/setup.py
-@@ -832,7 +832,8 @@ class PyBuildExt(build_ext):
+@@ -831,7 +831,8 @@ class PyBuildExt(build_ext):
          # only change this for cross builds for 3.3, issues on Mageia
          if CROSS_COMPILING:
              self.add_cross_compiling_paths()