]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
bitbake: runqueue: Handle missing sstate dependencies better
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 20 Sep 2016 15:25:49 +0000 (16:25 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 21 Sep 2016 20:58:06 +0000 (21:58 +0100)
commitd3e6e1054c148983370febdab362628d9854bc24
tree17dcb1a0ee07afbecbb750b6659895cedbb16f29
parenta884c4307a702da15af4aa6c1f8b8314cdb0ed08
bitbake: runqueue: Handle missing sstate dependencies better

If you "bitbake glibc-locale" then delete the libpcre-native sstate
and "bitbake glibc-locale -C package_write_rpm", it will fail with
rpmbuild missing the libprce library.

The reason is that libpcre-native fails to install from sstate (since
it isn't present) but doesn't get built and hence rpm-native tries to
run without its dependencies.

The simplest fix is not to add "covered" tasks which have failed to
install sstate. I can't help feeling there is more to this issue but
this does fix the current problem and shouldn't have adverse affects.
It is an unusual situation to have missing dependencies in sstate since
they're usually all present or not at all.

I've taken the opportunity to remove some old cruft from when we had
numeric task ids, the code can be simpler now.

(Bitbake rev: ba566b46d530b495f12f3a74f76434717b22a020)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/runqueue.py