Bug 6069

Summary: setscene tasks may not respect to the DEPENDS
Product: [Build System, Metadata & Runtime] BitBake Reporter: Robert Yang <liezhi.yang>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: liezhi.yang, mark.hatle, poky.bs.watcher, poky.watcher, sgw
Version: 1.6   
Target Milestone: 1.6 M5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Robert Yang 2014-03-30 03:09:44 UTC
The setscene task may not respect to the DEPENDS when there are too many recipes in the DEPENDS:

Setup a build in builddir1, and set the SSTATE_DIR to <sstate_dir>
$ bitbake packagegroup-toolset-native

Set a build in builddir2, and set the same SSTATE_DIR as build1
$ bitbake packagegroup-toolset-native

NOTE: The packagegroup-toolset-native may have been removed from oe-core.

There will be such a warning:

WARNING: Setscene task 112 (virtual:native:/buildarea/lyang1/yocto/poky/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.30.3.bb, do_populate_sysroot_setscene) failed with exit code '1' - real task will be run instead

And look at tmp/work/x86_64-linux/gdk-pixbuf-native/2.30.3-r0/temp/log.do_populate_sysroot_setscene:

/buildarea/lyang1/yocto/testreuse/tmp/sysroots/x86_64-linux/usr/bin/gdk-pixbuf-query-loaders: error while loading shared libraries: libpng16.so.16: cannot open shared object file: No such file or directory

We have set gdk-pixbuf-native:do_populate_sysroot_setscene depends on libpng-native:do_populate_sysroot_setscene, but it seems that it doesn't work since there are too many items (215) in packagegroup-toolset-native's DEPENDS.

We can move libpng-native from the behind of gdk-pixbuf-native to the front of it to workaround it.