Bug 10484

Summary: devtool: finish command fails if destination layer isn't in bblayers.conf
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Henry Bruce <henry.bruce>
Component: devtools / tool chainAssignee: Paul Eggleton <bluelightning>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: meta.mr.watcher, meta.watcher
Version: 2.2   
Target Milestone: 2.3 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know
Attachments:
Description Flags
devtool output none

Description Henry Bruce 2016-10-21 22:00:26 UTC
Created attachment 3486 [details]
devtool output

devtool finish fails as follows:

$ devtool add bbexample https://github.com/whbruce/bbexample.git
$ devtool build bbexample
$ yocto-layer create meta-example
$ devtool finish bbexample meta-example
Parsing recipes..done.
NOTE: Updating SRCREV in recipe bbexample_git.bb
NOTE: Moving recipe file to /path/to/build/meta-example/recipes-bbexample/bbexample
NOTE: Cleaning sysroot for recipe bbexample...
ERROR: Command 'bitbake -c clean bbexample' failed, output:
Loading cache...done.
ERROR: No recipes available for:
  /path/to/build/workspace/appends/bbexample_git.bbappend
Loaded 1316 entries from dependency cache.

Full log attached.
Comment 1 Paul Eggleton 2016-10-24 21:58:48 UTC
Discussed this with Henry - the trigger is that the layer wasn't included in bblayers.conf. Normally you'd want to do that, but even so devtool finish should be able to handle this scenario (perhaps we print a warning though so the user doesn't wonder why the recipe has gone "missing").