Bug 5991

Summary: Allow more flexible versioned layer dependencies
Product: [Build System, Metadata & Runtime] BitBake Reporter: Paul Eggleton <bluelightning>
Component: bitbakeAssignee: Paul Eggleton <bluelightning>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Medium CC: dvhart, kergoth, poky.bs.watcher, poky.watcher
Version: 1.6   
Target Milestone: 1.8 M3   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Yes (doc changes required)

Description Paul Eggleton 2014-03-17 16:56:08 UTC
A long time ago we added the capability to have versioned layer dependencies using LAYERVERSION and LAYERDEPENDS. However, LAYERVERSION is now being used by the autobuilder, leading to the version being increased more regularly; a versioned item in LAYERDEPENDS matches only that specific version and BitBake will error out if the provided version is different. Users using mis-matched layer branches has been a long-standing problem, and the latest example is meta-intel master requiring the recent tune file changes in OE-Core master. With LAYERVERSION being used as it is, we have no reliable mechanism to resolve this as things stand.

One possible solution would be to add a LAYERPROVIDES; then we could add additional items whose versions (if specified) could be independent of the LAYERVERSION.
Comment 1 Paul Eggleton 2015-01-29 14:10:38 UTC
I've sent out an RFC patch to the bitbake and OE-Core lists:

http://lists.openembedded.org/pipermail/bitbake-devel/2015-January/005370.html
Comment 2 Paul Eggleton 2015-02-16 16:02:07 UTC
Fix merged to master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=c4da9b949a09f6fcf4091f247a05cea78175571a

Now we just need to start using it...