diff options
| author | Ross Burton <ross.burton@arm.com> | 2025-04-29 16:29:30 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-05-01 14:22:53 +0100 |
| commit | 83d0d473d6d5a8d59875b0af581d27267e804ba9 (patch) | |
| tree | 52144fc0087e5f8e9836813b2611d3f5d585c76b /meta/recipes-devtools/python/python3/makerace.patch | |
| parent | cf9c5ac2c152a7b53a1306cbde88bc3c0131028f (diff) | |
| download | poky-83d0d473d6d5a8d59875b0af581d27267e804ba9.tar.gz | |
python3: backport the full fix for importlib scanning invalid distributions
Even with our fixes in deterministic_imports.patch the
importlib.metadata package scan was still returning Distribution objects
for empty directories. This interacts badly with rebuilds when recipes
are changing as when a recipe is removed from the sysroot directories
are not removed[1].
In particular this breaks python3-meson-python-native rebuilds when
Meson upgrades from 1.7 to 1.8: the site-packages directory has an empty
meson-1.7.dist-info/ and populated meson-1.8.dist-info/. Whilst it's
deterministic to return the empty 1.7 first, this breaks pypa/build as
it looks through the distributions in order.
We had discussed this with upstream previously and there's a more
comprehensive fix upstream (actually in importlib_metadata, not cpython)
which ensures that valid distribution objects are listed first. So we
can drop our patch and replace it with a backport to fix these rebuilds.
[1] oe-core 4f94d929639 ("sstate/staging: Handle directory creation race issue")
(From OE-Core rev: 73de8daa6293403f5b92d313af32882c47bce396)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python3/makerace.patch')
0 files changed, 0 insertions, 0 deletions
