From: Peter Marko <peter.ma...@siemens.com> Following workflow is broken when built from sstate-cache: https://docs.yoctoproject.org/singleindex.html#setting-up-the-extensible-sdk-environment-directly-in-a-yocto-build This is already broken in kirkstone.
Reproducer: $ bitbake meta-ide-support && bitbake build-sysroots -c build_native_sysroot $ ls -1 build/tmp/sysroots/*/*gdb-cross* && echo OK || echo FAIL # succeeds from scratch build/tmp/sysroots/x86_64/manifest-x86_64-gdb-cross-x86_64.populate_sysroot OK $ rm -rf build/tmp $ bitbake meta-ide-support && bitbake build-sysroots -c build_native_sysroot $ ls -1 build/tmp/sysroots/*/*gdb-cross* && echo OK || echo FAIL # fails from sstate-cache ls: cannot access 'build/tmp/sysroots/*/*gdb-cross*': No such file or directory FAIL build-sysroot populates sysroot with recipes which run populate_sysroot or populate_sysroot_setscene. Dependency on its own populate_sysroot does not seem to work when building from sstate-cache as this task is not executed. This seem to becaused by inheriting nopackages class which deletes tasks thus messing the setscene dependencies. Depend explicitly recursively on prepare_recipe_sysroot. Signed-off-by: Peter Marko <peter.ma...@siemens.com> --- meta/recipes-core/meta/meta-ide-support.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-core/meta/meta-ide-support.bb b/meta/recipes-core/meta/meta-ide-support.bb index d85aa120c0..9aa87f3056 100644 --- a/meta/recipes-core/meta/meta-ide-support.bb +++ b/meta/recipes-core/meta/meta-ide-support.bb @@ -37,4 +37,4 @@ do_deploy () { addtask deploy before do_build -do_build[deptask] += "do_prepare_recipe_sysroot" +do_build[recrdeptask] += "do_populate_sysroot" -- 2.30.2
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#197075): https://lists.openembedded.org/g/openembedded-core/message/197075 Mute This Topic: https://lists.openembedded.org/mt/104910980/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-