]> code.ossystems Code Review - openembedded-core.git/commit
staging: Ensure cleaned dependencies are added
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 26 Sep 2020 11:00:49 +0000 (12:00 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 30 Sep 2020 14:01:46 +0000 (15:01 +0100)
commit5de83bbd7c55a63cbee88a3fb983c0889036a248
tree53ce6c0ea7d7bd727d93ec5fcb0e7fbabf65caaa
parent791da075619139fa55751f8013c73d2fbf0cf64c
staging: Ensure cleaned dependencies are added

Most recipe-sysroot dependencies are handled by these prefuncs. "configure"
is special with a decidated task, prepare_recipe_sysroot which runs
beforehand.

do_prepare_recipe_sysroot does not have to be run before/after
fetch/unpack/patch, they're independent tasks. If fetch/unpack/patch
have sysroot dependencies and those tasks rerun, stale items from the
sysroot could be uninstalled and since prepare_recipe_sysroot doesn't
re-run, they could be missing by the time configure runs.

Fix this by adding the prefunc for do_configure which would ensure
the sysroot is in a good state.

This issue can be reproduced by modifying do_unpack and watching
binutils-native and vulkan-headers failing due to missing makeinfo
or ninja.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/staging.bbclass