| Message ID | 20261101153414.1370959-2-khem.raj@oss.qualcomm.com |
|---|---|
| State | New |
| Headers | show |
| Series | [meta-oe,1/3] uutils-coreutils: Only provide coreutils when selected | expand |
diff --git a/meta-oe/recipes-extended/smolkit/smolkit.bb b/meta-oe/recipes-extended/smolkit/smolkit.bb index 6ba338ef05..e3f6c7dba0 100644 --- a/meta-oe/recipes-extended/smolkit/smolkit.bb +++ b/meta-oe/recipes-extended/smolkit/smolkit.bb @@ -14,7 +14,9 @@ DEPENDS = "\ sdbus-c++ \ " -PROVIDES += "polkit" +# Only claim polkit when selected, universe builds both recipes otherwise and +# bitbake reports that multiple .bb files provide polkit. +PROVIDES += "${@'polkit' if d.getVar('PREFERRED_PROVIDER_polkit') == 'smolkit' else ''}" RPROVIDES:${PN} = "polkit" VERSION = "0.3.0"
Universe builds every recipe, so the unconditional PROVIDES puts this recipe and polkit in the same build, and bitbake -c fetch universe reports that multiple .bb files provide polkit. Claim the name only when PREFERRED_PROVIDER_polkit selects smolkit. With the overlap gone, smolkit is no longer dropped from the world targets. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com> --- meta-oe/recipes-extended/smolkit/smolkit.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)