Bug 9206

Summary: Building custom images based on custom images fails
Product: [Build System, Metadata & Runtime] Toaster Reporter: Belen Barros Pena <belen.barros.pena>
Component: toasterAssignee: Michael Wood <michael.g.wood>
Status: VERIFIED FIXED QA Contact: Alexandru Roman <alexandru.costinx.roman>
Severity: normal    
Priority: Medium CC: alexandru.costinx.roman, belen.barros.pena, brian.avery, jessica.zhang, michael.g.wood, stanciux.mihail
Version: 2.0   
Target Milestone: 2.1 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Belen Barros Pena 2016-03-03 16:31:35 UTC
Steps to reproduce:

1. Create a Toaster project
2. Create a custom image based on core-image-minimal
3. Build your custom image
4. Create a custom image based on the custom image you created in step 2
5. Build your second custom image

The build fails with the following error:

[Errno 2] No such file or directory: u'/home/belen/toaster/_meta-toaster-custom//home/belen/toaster/_meta-toaster-custom/recipes/minimal-belen.bb'

Note that the _meta-toaster-custom directory, because of its location in the file system, will be shared across projects. This should not happen: once the changes required to fix bug 7880 go in, we should probably move _meta-toaster-custom to the build directory, so that it is not shared across projects.
Comment 1 Michael Wood 2016-03-24 11:22:04 UTC
This commit has landed

http://git.yoctoproject.org/cgit/cgit.cgi/poky/atom/1d1aaa2f561a18e10314e8ed07b616c11b1286ae
Try a secondary file path if the first does not exist. When we get the
recipe paths and layer information from the layer index it is not a
complete path but we are usually able to reconstruct it. If the complete
real path has been discovered by building then use this instead.

[YOCTO #9206]

(Bitbake rev: 238db2e03405d259d48dfc477a276191e6a47698)

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

Bug link: https://bugzilla.yoctoproject.org/show_bug.cgi?id=9206
gitweb: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=1d1aaa2f561a18e10314e8ed07b616c11b1286ae
Comment 2 Alexandru Roman 2016-05-04 14:22:21 UTC
Verified on master: f7b520878babbaa7527151f22c031ae160512753