Bug 5626

Summary: do_rootfs fails when rebuilding an image: no package provides busybox-hwclock
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Stefan Stanacar <sstncr>
Component: coreAssignee: Paul Eggleton <bluelightning>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: bluelightning, ionutx.chisanovici, meta.mr.watcher, meta.watcher
Version: 1.6   
Target Milestone: 1.6 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Stefan Stanacar 2013-12-04 13:06:14 UTC
Build Configuration:
BB_VERSION        = "1.21.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Fedora-19"
TARGET_SYS        = "x86_64-poky-linux"
MACHINE           = "qemux86-64"
DISTRO            = "poky"
DISTRO_VERSION    = "1.5+snapshot-20131204"
TUNE_FEATURES     = "m64"
TARGET_FPU        = ""
meta              
meta-yocto        
meta-yocto-bsp    
meta-selftest     = "master:c51730aaa91066cfb51ad6ec2920fb4f9d9ea94c"


1. Clean build dir (no tmp, no sstate)
2. bitbake core-image-minimal (default local.conf, machine as above)
3. echo 'IMAGE_INSTALL_append = " dropbear"' >> conf/local.conf
4. bitbake core-image-minimal

| Note: adding Smart RPM DB channel
| 
| Note: to be installed:  dropbear@x86_64 run-postinsts@x86_64 packagegroup-core-boot@qemux86_64
| Loading cache...
| Updating cache...               ######################################## [100%]
| 
| Computing transaction...error: Can't install packagegroup-core-boot-1.0-r11@qemux86_64: no package provides busybox-hwclock
| 
| Saving cache...
| 
| WARNING: /home/stefans/yocto/poky/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/temp/run.do_rootfs.6743:1 exit 1 from
|   smart --data-dir=${target_rootfs}/var/lib/smart install -y ${pkgs_to_install}
| ERROR: Function failed: do_rootfs (log file is located at /home/stefans/yocto/poky/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.6743)
ERROR: Task 7 (/home/stefans/yocto/poky/meta/recipes-core/images/core-image-minimal.bb, do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2223 tasks of which 2222 didn't need to be rerun and 1 failed.
Comment 1 Paul Eggleton 2013-12-17 15:22:55 UTC
I've tried reproducing this and haven't been able to so far, both on Fedora 19 and CentOS 6.4. Do you still have the TMPDIR from the failed build?
Comment 2 Stefan Stanacar 2013-12-17 17:01:31 UTC
Nope, sorry, I don't have that TMPDIR anymore.
However on latest master (9daa1de753e58b7f678e68cf307f6028c0c79a6a) I can't reproduce this anymore, so it seems it was got fixed since c51730aaa91066cfb51ad6ec2920fb4f9d9ea94c. I'm pretty sure that if I go back to that commit I can reproduce it. Let me know if I should try and reproduce it on that commit and save the builddir somewhere, otherwise this WORKSFORME now.
Comment 3 Paul Eggleton 2013-12-17 17:08:57 UTC
This is kind of a strange error, so if it's not too much trouble it would be great to see if we can find out how it got fixed.
Comment 4 Paul Eggleton 2013-12-19 19:36:50 UTC
After talking with Stefan and Richard, this bug was very likely the result of a recent regression that fixed by the following commit:

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

Marking as fixed accordingly.
Comment 5 Ionut Chisanovici 2013-12-20 10:44:09 UTC
This has been verified by Stefan.

IonutC