Bug 1521

Summary: Switching package format in hob is unstable
Product: [Build System, Metadata & Runtime] Hob Reporter: Jiajun Xu <jiajun.xu>
Component: hobAssignee: Joshua Lock - Disabled <josh>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: High CC: jessica.zhang, jiajun.xu, poky.bs.watcher, poky.watcher
Version: unspecified   
Target Milestone: 1.1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Jiajun Xu 2011-09-23 00:30:17 UTC
tree/branch: poky/1.1_M4
commit: 6462c158fc482e495c1171ffc7747e2ad650a292

With 1.1 M4 branch, I could not build deb/ipk image successfully in hob. BTW, what I am trying is build from scratch. RPM build could work in hob.
Comment 1 Joshua Lock - Disabled 2011-09-23 08:13:32 UTC
Any hint as to whether this is strictly a Hob issue? Have from scratch builds with ipk and deb been successfully run from the command line UI?
Comment 2 Joshua Lock - Disabled 2011-09-23 12:00:22 UTC
I manage to reproduce this, I think. If I switch the package format from the UI and click 'Bake' I see:

joshual@scimitar:~/Projects/Yocto/poky/build [master]
$ hob
Traceback (most recent call last):
  File "/home/joshual/Projects/Yocto/poky/bitbake/lib/bb/ui/hob.py", line 473, in bake_clicked_cb
    self.handler.build_targets(image, self.configurator)
  File "/home/joshual/Projects/Yocto/poky/bitbake/lib/bb/ui/crumbs/hobeventhandler.py", line 267, in build_targets
    if self.image_dir in bbpath.split(":"):
AttributeError: 'bool' object has no attribute 'split'
Traceback (most recent call last):
  File "/home/joshual/Projects/Yocto/poky/bitbake/lib/bb/ui/hob.py", line 473, in bake_clicked_cb
    self.handler.build_targets(image, self.configurator)
  File "/home/joshual/Projects/Yocto/poky/bitbake/lib/bb/ui/crumbs/hobeventhandler.py", line 267, in build_targets
    if self.image_dir in bbpath.split(":"):
AttributeError: 'bool' object has no attribute 'split'

For some reason the getVariable command sometimes returns some Boolean value when requesting the BBFILES and BBPATH variables.

I'm testing a patch to get the values of these variables at handler instantiation and store them as member values instead of requesting them of the server for each build.