diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-11-21 13:10:19 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-11-22 15:28:27 +0000 |
commit | 5fdd28e37face59410da781d5d70178565e69e5e (patch) | |
tree | ee6cb4abc5ffa8324d4b918f4400a2680558fdf1 /scripts/rootfs_rpm-extract-postinst.awk | |
parent | 09da786273e56225aaf35ec33975e6674c7dec70 (diff) | |
download | poky-5fdd28e37face59410da781d5d70178565e69e5e.tar.gz |
bitbake: runqueue: Fix race issues around hash equivalence and sstate reuse
We identified a use case where a native recipe (autoconf-native) was
rebuilt with no change in output yet the sstate for do_package tasks
wasn't being used.
The issue is that do_package tasks have a hard dependency on
pseudo-native:do_populate_sysroot. That task was one of the many
tasks being rehashed when autoconf-native's hash was changed.
If update_tasks processed a recipe before it had processed pseudo-native,
that recipe would be marked as not possible from sstate and would
run the full tasks.
The fix is to split the processing into two passes, first to handle
the existing covered/notcovered updates, then in the second pass,
check whether there are "harddep" issues.
This defers the do_package tasks until after pseudo-native is installed
from sstate as expected and everything works well again.
(Bitbake rev: e479d1e418a7d34f0a4663b4a0e22bb11503c8ab)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/rootfs_rpm-extract-postinst.awk')
0 files changed, 0 insertions, 0 deletions