Bug 8745

Summary: Add support for version constraint to DEPENDS
Product: [Build System, Metadata & Runtime] BitBake Reporter: Aníbal Limón <anibal.limon>
Component: bitbakeAssignee: Unassigned <unassigned>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: Medium CC: matt.hoosier, poky.bs.watcher, poky.watcher, pokylinux, randy.macleod, ross.burton
Version: unspecified   
Target Milestone: 6.99   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Yes (doc changes required)

Description Aníbal Limón 2015-12-01 17:36:17 UTC
Will be good that bitbake recipe support version constraint in DEPENDS/RDEPENDS this helps to,

- Have multiple versions of recipes (binaries, libraries) in clean manner.
- Better handling of dependencies between recipes.

I purpose the next operators <=, <, ===, >, >= and will be next to recipe name,
DEPENDS="recipe==1.0.0".
Comment 1 Richard Purdie 2015-12-03 16:09:02 UTC
We did add support to bitbake to at least accept version information in these fields. We can therefore add it and it will be parsed safely however Bitbake doesn't currently process that information though.
Comment 2 Ross Burton 2017-03-24 13:53:50 UTC
There already is version support in RDEPENDS, so this is just about DEPENDS.

I propose that the first iterate is just a sanity check: if foo-1 and foo-2 are in a layer, bar DEPENDS on foo (>2) but foo-1 is selected then bitbake should error out.
Comment 3 Matt Hoosier 2017-04-04 21:56:13 UTC
I've been using Poky for quite a while now, but nearly all my work has been at the class and recipe level.

If you can suggestions a likely place to insert an implementation of Ross's first suggestion (sanity checking), I can have a go at that.
Comment 4 Randy MacLeod 2023-10-24 14:24:20 UTC
Bulk move from 4.99 or 0.00 to 5.99