summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Sakoman <steve@sakoman.com>2022-05-17 07:34:07 -1000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-05-20 22:52:22 +0100
commit7a7de167c231980876a03e0e6cb3587bbc105d5c (patch)
treeabd62020d8ffc3c713791e402cc6dd606461b60c
parent61419000b524046491ddabae9dcd97e2bc46ebe7 (diff)
downloadpoky-7a7de167c231980876a03e0e6cb3587bbc105d5c.tar.gz
python3: fix reproducibility issue with python3-core
traceback.cpython-310.pyc is non-deterministic due to 'frozenset' being written without strict ordering. For now let's just not install the problematic file. (From OE-Core rev: 4b1f0f7542abcb8606688c974695a6c8a142e7a2) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/python/python3_3.10.4.bb5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3_3.10.4.bb b/meta/recipes-devtools/python/python3_3.10.4.bb
index d678d55083..2ef320350e 100644
--- a/meta/recipes-devtools/python/python3_3.10.4.bb
+++ b/meta/recipes-devtools/python/python3_3.10.4.bb
@@ -193,6 +193,11 @@ do_install:append() {
193 rm -f ${D}${libdir}/python${PYTHON_MAJMIN}/test/__pycache__/test_range.cpython* 193 rm -f ${D}${libdir}/python${PYTHON_MAJMIN}/test/__pycache__/test_range.cpython*
194 rm -f ${D}${libdir}/python${PYTHON_MAJMIN}/test/__pycache__/test_xml_etree.cpython* 194 rm -f ${D}${libdir}/python${PYTHON_MAJMIN}/test/__pycache__/test_xml_etree.cpython*
195 195
196 # Similar to the above, we're getting reproducibility issues with
197 # /usr/lib/python3.10/__pycache__/traceback.cpython-310.pyc
198 # so remove it too
199 rm -f ${D}${libdir}/python${PYTHON_MAJMIN}/__pycache__/traceback.cpython*
200
196 # Remove the opt-1.pyc and opt-2.pyc files. They effectively waste space on embedded 201 # Remove the opt-1.pyc and opt-2.pyc files. They effectively waste space on embedded
197 # style targets as they're only used when python is called with the -O or -OO options 202 # style targets as they're only used when python is called with the -O or -OO options
198 # which is rare. 203 # which is rare.