Bug 13957

Summary: yocto-check-layer fails to parse LAYERDEPENDS when version is specified
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Nicolas Dechesne <ndec13>
Component: Scripts and ToolsAssignee: Nicolas Dechesne <ndec13>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: ndec13, randy.macleod, richard.purdie, ross.burton
Version: unspecified   
Target Milestone: 3.2 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Nicolas Dechesne 2020-06-24 07:45:07 UTC
yocto-check-layer fails to parse/process LAYERDEPENDS, if LAYERDEPENDS specifies a version constraint such as:

LAYERDEPENDS_meta-python = "core (>= 12) openembedded-layer"

The output looks like that:

ERROR: Layer meta-python depends on (>= and isn't found.
ERROR: Layer meta-python depends on 12) and isn't found.
ERROR: Layer meta-python depends on openembedded-layer and isn't found.

Since we recently added this in dunfell, that means yocto-check-layer can't run for any layer (which uses meta-oe)
Comment 1 Richard Purdie 2020-06-25 02:07:24 UTC
There is a patch from Nico on the mailing list as there is a function in bb.utils we can use for this.