Bug 2217

Summary: [Hob] fail to build hob-image-hob.bb from command line
Product: [Build System, Metadata & Runtime] Hob Reporter: Jiajun Xu <jiajun.xu>
Component: hobAssignee: Dongxiao Xu <dongxiao.xu>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: jessica.zhang, jiajun.xu, poky.bs.watcher, poky.watcher, shane.wang
Version: unspecified   
Target Milestone: 1.2 M4   
Hardware: x86   
OS: Multiple   
Whiteboard: (1.2)
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Jiajun Xu 2012-03-31 15:48:34 UTC
tree/branch: poky/1.2_M4
commit: da6233ea034f35eff59306fdad31f318c340c359

With 1.2 M4, we could build out image in Hob. If we save the built out image into template, there are some extra files generated(hob-image-hob.bb, local-hob.conf, bblayers-hob.conf), which could be used to build image from bitbake command line. I tried the feature but the image from command line is quite small.

For example, I select core-image-basic for qemux86 in Hob. The image is 198M after build finished. But if I use the hob-image-hob.bb file to build image via bitbake command line, the final image is only 64M.
Comment 1 Jiajun Xu 2012-04-01 01:46:49 UTC
Update the bug since I build hob-image yesterday. It should be "bitbake hob-image-hob" if I want to build hob image recipe. And it would report no provider for libpcreposix.

Error log as below:
#########
NOTE: Resolving any missing task queue dependencies
NOTE: multiple providers are available for runtime libpython2 (python, python-nativesdk)
NOTE: consider defining a PREFERRED_PROVIDER entry to match libpython2
NOTE: multiple providers are available for runtime libcrypto (openssl-nativesdk, openssl)
NOTE: consider defining a PREFERRED_PROVIDER entry to match libcrypto
NOTE: multiple providers are available for runtime libssl (openssl-nativesdk, openssl)
NOTE: consider defining a PREFERRED_PROVIDER entry to match libssl
ERROR: Nothing RPROVIDES 'libpcreposix' (but /distro/m4/meta/recipes-test/images/hob-image-hob.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'libpcreposix' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['libpcreposix']
ERROR: Required build target 'hob-image-hob' has no buildable providers.
Missing or unbuildable dependency chain was: ['hob-image-hob', 'libpcreposix']
#########
Comment 2 Dongxiao Xu 2012-04-11 16:44:47 UTC
This bug is fixed by http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=c15d4a2ddef8b452b03209ccb207f767ae93af39

But with the fix commit, I met another issue related with RPM installation order (not related with Hob). I will report another but to track that.
Comment 3 Jiajun Xu 2012-04-18 08:43:23 UTC
I tested with master commit 720fe9e371eef16da19df0885188aa0341ad2090, the bug is fixed.