Skip to content

yocto: remove invalid versioned DEPENDS example#332

Merged
Tropicao merged 1 commit into
bootlin:masterfrom
dawuald:fix-rdepends-example
May 29, 2026
Merged

yocto: remove invalid versioned DEPENDS example#332
Tropicao merged 1 commit into
bootlin:masterfrom
dawuald:fix-rdepends-example

Conversation

@dawuald

@dawuald dawuald commented May 28, 2026

Copy link
Copy Markdown
Contributor

I'm not entirely sure about that, but I believe that the version constraints are not supported for DEPENDS since they are applied at the package management level rather than for build-time dependencies.

Therefore - remove invalid example from the slides.

I tried adding a dummy dependency with DEPENDS += "<pkg> (= <invalid version>)" and the recipe built fine, with the <invalid version> appearantly being ignored

Version constraits are not supported for DEPENDS since they are
applied at the package management level rather than for build-time
dependencies.

Remove invalid example from the slides.

Signed-off-by: Dawid Bijak <bijak.dawid@gmail.com>
@github-actions

github-actions Bot commented May 28, 2026

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@dawuald

dawuald commented May 28, 2026

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA.

github-actions Bot added a commit that referenced this pull request May 28, 2026
@antznin

antznin commented May 29, 2026

Copy link
Copy Markdown
Contributor

Hello @dawuald, thanks for your contribution!

From what I've seen you seem to be right.
The syntax is supported (there are some instances in meta-openembedded that use it), but I don't think it matters indeed because those are parsed with explode_deps() here and this functions ignores the version information stored in this variable. I didn't find other instances of DEPENDS version information being read and used.

I have also verified DEPENDing on some recipe with a version that isn't provided, and I was still able to build it.

So LGTM.

@Tropicao Tropicao merged commit 5b252b6 into bootlin:master May 29, 2026
13 of 15 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators May 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants