Bug 12088

Summary: yocto-compat-layer does not resolve layer dependencies
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Todor Minchev <todor.minchev>
Component: Scripts and ToolsAssignee: Mark Hatle <mark.hatle>
Status: RESOLVED NOTABUG QA Contact:
Severity: normal    
Priority: Medium+ CC: brian.avery, ross.burton, stephano
Version: 2.4   
Target Milestone: 2.4 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 Todor Minchev 2017-09-14 22:15:09 UTC
If yocto-compat-layer-wrapper is run against a layer, which depends on another layer. The dependent layers are not resolved and the tests fail (no bb recipes are found for bbappends in our layer).
Comment 1 Mark Hatle 2017-09-21 14:52:42 UTC
I have no idea what 'yocto-compat-layer-wrapper' is.

yocto-compat-layer, formerly yocto-compat-layer.py, does properly handle dependencies.

The dependency must be specified in the layer.conf file using LAYERDEPENDS = "..."

The dependency layers must be provided to the tool using the command line --dependency <path> arguments, or included in the primary checking argument.  Without doing this the tool has no way to 'find' a layer.  You must tell it where everything else.
Comment 2 Stephano Cetola 2017-09-21 15:58:32 UTC
Per Todor, mark as resolved. --dependency works for him.