Skip to contentSkip to conversation

python3: fix reproducibility issue with python3-core

OE-core Steve Sakoman 1 participant 1 message May 17, 2022 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

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.

---
 meta/recipes-devtools/python/python3_3.10.4.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta/recipes-devtools/python/python3_3.10.4.bb +5 -0
index d678d55083..2ef320350e 100644
@@ -193,6 +193,11 @@ do_install:append() {
         rm -f ${D}${libdir}/python${PYTHON_MAJMIN}/test/__pycache__/test_range.cpython*
         rm -f ${D}${libdir}/python${PYTHON_MAJMIN}/test/__pycache__/test_xml_etree.cpython*
 
+        # Similar to the above, we're getting reproducibility issues with 
+        # /usr/lib/python3.10/__pycache__/traceback.cpython-310.pyc
+        # so remove it too
+        rm -f ${D}${libdir}/python${PYTHON_MAJMIN}/__pycache__/traceback.cpython*
+
         # Remove the opt-1.pyc and opt-2.pyc files. They effectively waste space on embedded
         # style targets as they're only used when python is called with the -O or -OO options
         # which is rare.
Signature · 1 line
2.25.1