Bug 1819

Summary: Updated packages need to be "cleanall"'d to build
Product: [Build System, Metadata & Runtime] BitBake Reporter: Darren Hart <dvhart>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: elizabeth.flanagan, poky.bs.watcher, poky.watcher, sgw
Version: unspecified   
Target Milestone: 1.2 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Darren Hart 2011-12-09 14:07:06 UTC
I updated from 1924f52cc894d4dd6b9d9c1a2248b32fc0a24c8c to 1288313411f8db7628e9ec4c04f2ad7f830e994d and ran into several recipe failures that were resolved by a cleanall. They were reproducible, so not just a race condition. They included (but weren't limited to):

sgml-common-native
git
opensp
sgmlspl-native

A quick spot check of sgml-common-native indicated it did have a proper PR bump. I was building for FRI2, although I doubt that matters.
Comment 1 Richard Purdie 2011-12-09 15:52:25 UTC
This is thanks to a change in license.bbclass which I'm still not convinced was required changing the populate_lic to run before compile instead of package. Beth: What was the reason for that change?
Comment 2 Darren Hart 2011-12-09 15:55:36 UTC
A number of other patches required cleaning as well. Turns out "-c clean" was all that was needed:

ERROR: 'virtual:native:/home/dvhart/source/poky/meta/recipes-devtools/opensp/opensp_1.5.bb' failed
ERROR: 'virtual:native:/home/dvhart/source/poky/meta/recipes-devtools/perl/libxml-simple-perl_2.18.bb' failed
ERROR: '/home/dvhart/source/poky/meta/recipes-graphics/libxsettings-client/libxsettings-client_0.10.bb' failed
ERROR: '/home/dvhart/source/poky/meta/recipes-graphics/xorg-lib/libxp_1.0.1.bb' failed
ERROR: '/home/dvhart/source/poky/meta/recipes-graphics/xorg-lib/libxxf86misc_1.0.3.bb' failed
ERROR: '/home/dvhart/source/poky/meta/recipes-graphics/xorg-lib/libxtst_1.2.0.bb' failed
ERROR: '/home/dvhart/source/poky/meta/recipes-graphics/xorg-lib/libxkbfile_1.0.7.bb' failed
ERROR: '/home/dvhart/source/poky/meta/recipes-graphics/menu-cache/menu-cache_0.3.2.bb' failed

$ bitbake -c clean opensp-native libxml-simple-perl libxsettings-client libxp libxxf86misc libxtst libxkbfile menu-cache
$ bitbake core-image-sato -k


ERROR: '/home/dvhart/source/poky/meta/recipes-graphics/libmatchbox/libmatchbox_1.9.bb' failed
ERROR: '/home/dvhart/source/poky/meta/recipes-graphics/libfakekey/libfakekey_git.bb' failed

$ bitbake -c clean libmatchbox libfakekey
$ bitbake core-image-sato -k

ERROR: '/home/dvhart/source/poky/meta/recipes-sato/libowl/libowl_git.bb' failed

$ bitbake -c clean libowl
$ bitbake core-image-sato -k
Comment 3 Beth Flanagan 2011-12-10 08:48:53 UTC
The addtask was added as a hacky workaround to an earlier version of license.bbclass. I've fixed it in eflanagan/license_1819 and I'll have a pull sent out this morning.
Comment 4 Richard Purdie 2011-12-15 04:18:10 UTC
The problematic change was reverted:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=bd75266ab3c509a3a1eb62ee70074e3b28c9312f