Bug 8745 - Add support for version constraint to DEPENDS
Summary: Add support for version constraint to DEPENDS
Status: NEW
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium enhancement
Target Milestone: 6.99
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-12-01 17:36 UTC by Aníbal Limón
Modified: 2026-07-23 15:20 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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