Bug 6102

Summary: Build packages fails when you use the "Start with an empty image recipe" option
Product: [Build System, Metadata & Runtime] Hob Reporter: Belen Barros Pena <belen.barros.pena>
Component: hobAssignee: Marius Avram <marius.avram>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: belen.barros.pena, cristiana.voicu, jessica.zhang, marius.avram, poky.bs.watcher, poky.watcher, valentin.popa
Version: 1.6   
Target Milestone: 1.6 M5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
error when building packages none

Description Belen Barros Pena 2014-04-02 14:00:41 UTC
Created attachment 1893 [details]
error when building packages

Steps to reproduce:

* In the "Select an image recipe" dropdown, select the very last option ("Start with an empty image recipe")

* In the recipes screen, select a recipe (e.g. busybox)

* Click "build packages"

* In the packages table, select a package (e.g. busybox)

* Click "build image"

Hob throws an error (attached). When you click the "Close" button in the error dialog, you get the following trace:

Traceback (most recent call last):
  File "/home/yocto/poky/bitbake/lib/bb/ui/hob.py", line 57, in event_handle_idle_func
    hobHandler.handle_event(event)
  File "/home/yocto/poky/bitbake/lib/bb/ui/crumbs/hobeventhandler.py", line 255, in handle_event
    self.run_next_command()
  File "/home/yocto/poky/bitbake/lib/bb/ui/crumbs/hobeventhandler.py", line 176, in run_next_command
    target += version
TypeError: cannot concatenate 'str' and 'NoneType' objects

The problem does not happen when you build an image without customising it.
Comment 1 Marius Avram 2014-04-08 12:06:34 UTC
Solution merged on master:poky commit: 07231022e20e3e15f2c851617626b52e8de0843c
Comment 2 Belen Barros Pena 2014-05-15 10:00:44 UTC
verified in master:d6900a5fe7670cb4514969d60e0ca65372121c87