Bug 14538

Summary: Recipes shouldn't use "virtual/" in RPROVIDES and RDEPENDS
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Michael Opdenacker <michael.opdenacker>
Component: coreAssignee: Simone Weiß <simone.p.weiss>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Medium+ CC: loc.nguyen.wt, meta.mr.watcher, meta.watcher, nat.bailey, randy.macleod, richard.purdie, rpjday, simone.p.weiss, tgamblin
Version: 4.0   
Target Milestone: 5.0 M3   
Hardware: x86   
OS: Multiple   
Whiteboard: NEWCOMER
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Michael Opdenacker 2021-08-31 18:01:01 UTC
Following a discussion on the [docs] mailing list (https://lists.yoctoproject.org/g/docs/message/1785), it turns out that some recipes in OE-core shouldn't use the "virtual/" string in RPROVIDES and RDEPENDS:

openembedded-core$  git grep virtual/ | grep RPROVIDES
meta/recipes-bsp/grub/grub-bootconf_1.00.bb:RPROVIDES:${PN} += "virtual/grub-bootconf"
meta/recipes-core/systemd/systemd-bootconf_1.00.bb:RPROVIDES:${PN} += "virtual/systemd-bootconf"

openembedded-core$  git grep virtual/ | grep RDEPENDS
meta/recipes-bsp/grub/grub-efi_2.06.bb:RDEPENDS:${PN} = "grub-common virtual/grub-bootconf"
meta/recipes-core/systemd/systemd-boot_249.3.bb:RDEPENDS:${PN} += "virtual/systemd-bootconf"

That's confusing because "virtual/" has no special meaning in RPROVIDES and RDEPENDS (unlike in PROVIDES and DEPENDS).

Instead, I'm proposing to replace "virtual/" by "virtual-" in these recipes.
Comment 1 Randy MacLeod 2021-09-02 14:41:07 UTC
We should add a sanity test to stop it from regressing.
Comment 2 Michael Opdenacker 2021-09-06 06:44:24 UTC
The recipes in meta-oe and oe-core have been fixed.
Comment 3 Michael Opdenacker 2021-11-16 07:05:32 UTC
(In reply to comment #1)
> We should add a sanity test to stop it from regressing.

Assigning it to you Randy. This is no longer up to me.
Comment 4 Randy MacLeod 2023-07-26 21:29:36 UTC
Bulk move to 4.3 M3.
Comment 5 Trevor Gamblin 2023-09-14 16:55:36 UTC
Moved to M4.
Comment 6 Trevor Gamblin 2023-09-14 16:55:55 UTC
Moved to 5.0 M1 since it's an enhancement.
Comment 7 Loc Nguyen 2023-11-06 07:19:53 UTC
Hi all,

I would like to support for this bugfix.
In my understanding, the remaining work is to support an additional function to detect "virtual/" in RDEPENDS, RPROVIDE and give warning. 
We will need to update poky/meta/classes/recipe_sanity.bbclass

Is my understanding correct?
Comment 8 Simone Weiß 2024-01-11 14:56:25 UTC
Hi Loc,

I doubt you still work on this, I assigned myself now, if you still work on it pls ping me.