diff options
| author | Steve Sakoman <steve@sakoman.com> | 2022-05-17 07:34:07 -1000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-05-25 22:45:50 +0100 |
| commit | d691ddf6ad9554eec017960b377241627b1a3bd9 (patch) | |
| tree | 4ac624af36ddce698ad8e9c25968efd6ff05ca3f /meta/recipes-devtools/python | |
| parent | 31909cc347fc9f721024fc252f18369751b88262 (diff) | |
| download | poky-d691ddf6ad9554eec017960b377241627b1a3bd9.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: 00b62965bd4c9eb6fd8c016f83126da2a107a5c5)
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>
(cherry picked from commit 4b1f0f7542abcb8606688c974695a6c8a142e7a2)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python')
| -rw-r--r-- | meta/recipes-devtools/python/python3_3.10.4.bb | 5 |
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. |
