Bug 1346

Summary: HOB is not building rootfs images
Product: [Build System, Metadata & Runtime] Hob Reporter: Jessica <jessica.zhang>
Component: hobAssignee: Paul Eggleton <bluelightning>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: david.c.stewart, jessica.zhang, jiajun.xu, lianhao.lu, liping.ke, poky.bs.watcher, poky.watcher, richard.purdie
Version: unspecified   
Target Milestone: 1.1   
Hardware: x86   
OS: Multiple   
Whiteboard: RFC patch posted to OE-core ml (17 Aug)
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Bug Depends on: 1315    
Bug Blocks:    

Description Jessica 2011-08-05 15:29:15 UTC
while trying to verify fix for 1269, I deleted all the ext3 and tar.bz2 files.  Then I tried to use hob to build a core-image-minimal and got the following error(http://pastebin.com/gtpzGPST):

#
ERROR: Execution of event handler 'run_buildstats' failed
#
Traceback (most recent call last):
#
  File "run_buildstats(e)", line 67, in run_buildstats(e=<bb.build.TaskStarted object at 0xc69170c>)
#
  File "buildstats.bbclass", line 2, in get_device(e=<bb.build.TaskStarted object at 0xc69170c>)
#
IOError: [Errno 2] No such file or directory: '/home/jzhang/yocto-latest/build/tmp/buildstats//.device'
#
 
#
Generating solve db for /home/jzhang/yocto-latest/build/tmp/deploy/rpm/qemux86...
#
   total:               1      0.000000 MB      1.211209 secs
#
   fingerprint:       822      0.004272 MB      0.017577 secs
#
   install:           274      0.000000 MB      0.776363 secs
#
   dbadd:             274      0.000000 MB      0.763011 secs
#
   dbget:            1149      0.000000 MB      0.003833 secs
#
   dbput:             274      1.303804 MB      0.652644 secs
#
   readhdr:          2741      2.581560 MB      0.005182 secs
#
   hdrload:          1370      3.823892 MB      0.021580 secs
#
   hdrget:          49748      0.000000 MB      0.036931 secs
#
Generating solve db for /home/jzhang/yocto-latest/build/tmp/deploy/rpm/i586...
#
   total:               1      0.000000 MB     10.069439 secs
#
   fingerprint:      9360      0.102094 MB      0.311268 secs
#
   install:          3120      0.000000 MB      4.931462 secs
#
   dbadd:            3120      0.000000 MB      4.859142 secs
#
   dbget:           33220      0.006800 MB      0.025586 secs
#
   dbput:            3120     14.854184 MB      4.332407 secs
#
   readhdr:         31201     29.926034 MB      0.045171 secs
#
   hdrload:         18720     58.993718 MB      0.147251 secs
#
   hdrget:         552600      0.000000 MB      0.149773 secs
#
Generating solve db for /home/jzhang/yocto-latest/build/tmp/deploy/rpm/all...
#
   total:               1      0.000000 MB      0.058760 secs
#
   fingerprint:        18      0.000024 MB      0.000227 secs
#
   install:             6      0.000000 MB      0.027441 secs
#
   dbadd:               6      0.000000 MB      0.025406 secs
#
   dbget:              19      0.000000 MB      0.000061 secs
#
   dbput:               6      0.018556 MB      0.006971 secs
#
   readhdr:            61      0.038000 MB      0.000086 secs
#
   hdrload:            30      0.055116 MB      0.000290 secs
#
   hdrget:            983      0.000000 MB      0.000468 secs
#
Generating solve db for /home/jzhang/yocto-latest/build/tmp/deploy/rpm/all...
#
   total:               1      0.000000 MB      0.053331 secs
#
   fingerprint:        18      0.000024 MB      0.000137 secs
#
   install:             6      0.000000 MB      0.022827 secs
#
   dbadd:               6      0.000000 MB      0.020757 secs
#
   dbget:              19      0.000000 MB      0.000050 secs
#
   dbput:               6      0.018556 MB      0.004173 secs
#
   readhdr:            61      0.038000 MB      0.000074 secs
#
   hdrload:            30      0.055116 MB      0.000223 secs
#
   hdrget:            983      0.000000 MB      0.000226 secs
#
Processing task-core-boot...
#
error: LOOP:
#
error: removing busybox-udhcpc-1.18.4-r7.i586 "Requires(post): /bin/sh" from tsort relations.
#
error: removing busybox-1.18.4-r7.i586 "Requires(hint): busybox-udhcpc" from tsort relations.
#
error: LOOP:
#
error: removing busybox-syslog-1.18.4-r7.i586 "Requires(post): /bin/sh" from tsort relations.
#
error: removing busybox-1.18.4-r7.i586 "Requires(hint): busybox-syslog" from tsort relations.
#
error: LOOP:
#
error: removing libudev0-164-r3.i586 "Requires: udev = 164-r3" from tsort relations.
#
error: removing udev-164-r3.i586 "Requires: libudev0 >= 164" from tsort relations.
#
Manifest: /home/jzhang/yocto-latest/build/tmp/work/qemux86-poky-linux/hob-core-image-minimal-variant-2011-08-05-1.0-r0/rootfs/install/install.manifest
#
error: LOOP:
#
error: removing busybox-1.18.4-r7.i586 "Requires(hint): busybox-udhcpc" from tsort relations.
#
error: removing busybox-udhcpc-1.18.4-r7.i586 "Requires(post): /bin/sh" from tsort relations.
#
error: LOOP:
#
error: removing busybox-syslog-1.18.4-r7.i586 "Requires(post): /bin/sh" from tsort relations.
#
error: removing busybox-1.18.4-r7.i586 "Requires(hint): busybox-syslog" from tsort relations.
#
error: LOOP:
#
error: removing udev-164-r3.i586 "Requires: libudev0 >= 164" from tsort relations.
#
error: removing libudev0-164-r3.i586 "Requires: udev = 164-r3" from tsort relations.
Comment 1 Joshua Lock - Disabled 2011-08-05 16:08:51 UTC
I'm pretty sure this isn't hob specific but I'll try and reproduce and do some investigation next week...
Comment 2 Jessica 2011-08-08 13:38:18 UTC
Seems the 1315 issue does not just apply to kernel but rootfs as well.  Only once I changed some meta data for the same image, e.g. core-image-minimal, then the rootfs will be regenerated.  Can we change the code logic to add the check existence of the target before using checksum to verify whether the targets needs to be regenerated?
Comment 3 Jessica 2011-08-11 11:14:47 UTC
fix to 1315 should address this bug as well
Comment 4 Paul Eggleton 2011-08-25 03:07:51 UTC
Fix for 1315 has been added in commit http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=333d571b360e112d7ade0b4ae3bacbda9c8b228d

Marking as resolved.