summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3_3.10.18.bb
diff options
context:
space:
mode:
authorPeter Marko <peter.marko@siemens.com>2025-08-09 22:37:35 +0200
committerSteve Sakoman <steve@sakoman.com>2025-08-18 13:18:01 -0700
commite371e6b3a76bfe1d875ca19798e5152af7596927 (patch)
treeef71d4cba3e480202f2b91ee6f6a6b0f820b746c /meta/recipes-devtools/python/python3_3.10.18.bb
parentdc468377e8843b52b1a55d4b0ba30bbc4b40a7a5 (diff)
downloadpoky-e371e6b3a76bfe1d875ca19798e5152af7596927.tar.gz
python3: patch CVE-2025-8194
Pick commit from 3.12 branch mentioned in NVD report. https://nvd.nist.gov/vuln/detail/CVE-2025-8194 (From OE-Core rev: 4ae9daf3d05530952a8b002257dd9afda2e077e4) Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-devtools/python/python3_3.10.18.bb')
-rw-r--r--meta/recipes-devtools/python/python3_3.10.18.bb7
1 files changed, 4 insertions, 3 deletions
diff --git a/meta/recipes-devtools/python/python3_3.10.18.bb b/meta/recipes-devtools/python/python3_3.10.18.bb
index 875b52cde9..89036ff3b8 100644
--- a/meta/recipes-devtools/python/python3_3.10.18.bb
+++ b/meta/recipes-devtools/python/python3_3.10.18.bb
@@ -37,6 +37,7 @@ SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz \
37 file://0001-Avoid-shebang-overflow-on-python-config.py.patch \ 37 file://0001-Avoid-shebang-overflow-on-python-config.py.patch \
38 file://0001-test_storlines-skip-due-to-load-variability.patch \ 38 file://0001-test_storlines-skip-due-to-load-variability.patch \
39 file://0001-gh-107811-tarfile-treat-overflow-in-UID-GID-as-failu.patch \ 39 file://0001-gh-107811-tarfile-treat-overflow-in-UID-GID-as-failu.patch \
40 file://CVE-2025-8194.patch \
40 " 41 "
41 42
42SRC_URI:append:class-native = " \ 43SRC_URI:append:class-native = " \
@@ -170,7 +171,7 @@ do_install:append:class-native() {
170 # when they're only used for python called with -O or -OO. 171 # when they're only used for python called with -O or -OO.
171 #find ${D} -name *opt-*.pyc -delete 172 #find ${D} -name *opt-*.pyc -delete
172 # Remove all pyc files. There are a ton of them and it is probably faster to let 173 # Remove all pyc files. There are a ton of them and it is probably faster to let
173 # python create the ones it wants at runtime rather than manage in the sstate 174 # python create the ones it wants at runtime rather than manage in the sstate
174 # tarballs and sysroot creation. 175 # tarballs and sysroot creation.
175 find ${D} -name *.pyc -delete 176 find ${D} -name *.pyc -delete
176 177
@@ -206,7 +207,7 @@ do_install:append() {
206 rm -f ${D}${libdir}/python${PYTHON_MAJMIN}/test/__pycache__/test_range.cpython* 207 rm -f ${D}${libdir}/python${PYTHON_MAJMIN}/test/__pycache__/test_range.cpython*
207 rm -f ${D}${libdir}/python${PYTHON_MAJMIN}/test/__pycache__/test_xml_etree.cpython* 208 rm -f ${D}${libdir}/python${PYTHON_MAJMIN}/test/__pycache__/test_xml_etree.cpython*
208 209
209 # Similar to the above, we're getting reproducibility issues with 210 # Similar to the above, we're getting reproducibility issues with
210 # /usr/lib/python3.10/__pycache__/traceback.cpython-310.pyc 211 # /usr/lib/python3.10/__pycache__/traceback.cpython-310.pyc
211 # so remove it too 212 # so remove it too
212 rm -f ${D}${libdir}/python${PYTHON_MAJMIN}/__pycache__/traceback.cpython* 213 rm -f ${D}${libdir}/python${PYTHON_MAJMIN}/__pycache__/traceback.cpython*
@@ -266,7 +267,7 @@ py_package_preprocess () {
266 cd - 267 cd -
267 268
268 mv ${PKGD}/${bindir}/python${PYTHON_MAJMIN}-config ${PKGD}/${bindir}/python${PYTHON_MAJMIN}-config-${MULTILIB_SUFFIX} 269 mv ${PKGD}/${bindir}/python${PYTHON_MAJMIN}-config ${PKGD}/${bindir}/python${PYTHON_MAJMIN}-config-${MULTILIB_SUFFIX}
269 270
270 #Remove the unneeded copy of target sysconfig data 271 #Remove the unneeded copy of target sysconfig data
271 rm -rf ${PKGD}/${libdir}/python-sysconfigdata 272 rm -rf ${PKGD}/${libdir}/python-sysconfigdata
272} 273}