Bug 2324

Summary: [Build Appliance] "Run image" not workable in Hob
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Jiajun Xu <jiajun.xu>
Component: meta-yoctoAssignee: Saul Wold <sgw>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: dexuan.cui, dongxiao.xu, poky.bs.watcher, poky.watcher, richard.purdie, sgw
Version: unspecified   
Target Milestone: 1.2 M4   
Hardware: x86   
OS: Multiple   
Whiteboard: (1.2) Saul/RP, please update the SRCREV in self-hosted-image.bb again just before 1.2 is released (Apr 18, 2012)
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Jiajun Xu 2012-04-18 01:48:59 UTC
tree/branch: poky/master
commit: 720fe9e371eef16da19df0885188aa0341ad2090

When I finish a qemu build with Hob in build applicance, if I click "Run Image", there is no xterm window pop up and no qemu window pop up. Some error logs printed in Hob as below:

sh-4.2$ hob
** Message: pygobject_register_sinkfunc is deprecated (GtkWindow)
** Message: pygobject_register_sinkfunc is deprecated (GtkInvisible)
** Message: pygobject_register_sinkfunc is deprecated (GtkObject)
Traceback (most recent call last):
  File "/home/builder/poky/bitbake/lib/bb/ui/crumbs/imagedetailspage.py", line 391, in run_button_clicked_cb
    self.builder.runqemu_image(image_name)
  File "/home/builder/poky/bitbake/lib/bb/ui/crumbs/builder.py", line 938, in runqemu_image
    subprocess.Popen(shlex.split(cmdline))
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1228, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
Comment 1 Dexuan Cui 2012-04-18 02:23:00 UTC
This is a known issue. Saul has fixed it in poky master.
Unluckily we haven't updated the SRCREV  in self-hosted-image.bb.

I have reminded Saul and RP about this. They'll update the variable just before RC4 (or 1.2) is released.

Now we can manually patch the bitbake in the  guest with the following 3 patches:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=4be09eec6a5a25da089d8ad4fb68d2fda8149912
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=9789ed626bc69f348b55cfa5f1a79abbdc994204
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=376bf4a39063c2a936d20e8269c4b7681242c1fa
Comment 2 Dexuan Cui 2012-04-18 02:33:45 UTC
(In reply to comment #1)
> This is a known issue. Saul has fixed it in poky master.
> Unluckily we haven't updated the SRCREV  in self-hosted-image.bb.
> 
> I have reminded Saul and RP about this. They'll update the variable just before
> RC4 (or 1.2) is released.
> 
> Now we can manually patch the bitbake in the  guest with the following 3
> patches:
> 
> http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=4be09eec6a5a25da089d8ad4fb68d2fda8149912
> http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=9789ed626bc69f348b55cfa5f1a79abbdc994204
> http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=376bf4a39063c2a936d20e8269c4b7681242c1fa

Oh, actually Saul updated the SRCREV a few hours ago:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=a8c668c43a3f0e63d1072cf41a9427de2e665d36
So this bug was actually fixed if we use the latest poky master.

However, I think we should update the variable again just before 1.2 is released.
So, here I leave this bug as New and I suppose Saul will change the status appropriately.
Comment 4 Jiajun Xu 2012-05-08 15:40:59 UTC
Verify the bug as fixed when we test 1.2 M4 RC5.