Files
poky/meta/recipes-devtools
Ross Burton 83d0d473d6 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>
2025-05-01 14:22:53 +01:00
..
2025-03-17 17:09:22 +00:00
2024-11-25 22:23:25 +00:00
2025-04-03 11:06:19 +01:00
2024-11-27 14:58:48 +00:00
2024-09-03 10:21:38 +01:00
2024-11-27 14:58:48 +00:00
2024-05-28 09:38:23 +01:00
2025-03-19 12:09:06 +00:00
2024-04-16 08:07:01 +01:00
2025-01-04 12:34:04 +00:00
2025-04-29 09:55:31 +01:00
2025-04-10 11:05:34 +01:00
2024-10-29 11:19:57 +00:00
2023-09-26 10:35:27 +01:00
2024-09-30 17:00:50 +01:00
2025-04-08 15:49:17 +01:00
2024-11-18 22:09:02 +00:00
2025-04-17 11:03:22 +01:00
2024-08-23 09:12:37 +01:00
2025-03-17 17:09:22 +00:00
2024-08-28 09:14:26 +01:00
2025-03-17 22:38:32 +00:00
2025-03-27 11:19:03 +00:00
2025-03-06 11:16:47 +00:00
2024-06-04 12:04:52 +01:00
2024-05-28 09:38:24 +01:00
2024-08-29 21:58:19 +01:00
2025-03-06 11:16:47 +00:00
2025-04-17 11:03:22 +01:00
2025-04-17 11:03:22 +01:00
2025-04-03 11:06:20 +01:00
2025-01-20 13:38:59 +00:00
2025-04-20 10:11:16 +01:00
2024-11-22 16:53:37 +00:00
2024-12-05 17:07:10 +00:00
2025-02-05 12:49:55 +00:00
2025-03-27 11:19:04 +00:00
2025-03-17 17:09:22 +00:00
2025-02-05 12:49:56 +00:00