Bug 1521 - Switching package format in hob is unstable
Summary: Switching package format in hob is unstable
Status: RESOLVED FIXED
Alias: None
Product: Hob
Classification: Build System, Metadata & Runtime
Component: hob (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: High major
Target Milestone: 1.1
Assignee: Joshua Lock - Disabled
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2011-09-23 00:30 UTC by Jiajun Xu
Modified: 2011-09-27 08:23 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.