mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-11-13 15:47:23 +00:00
smolkit: Only provide polkit when selected
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>
This commit is contained in:
1 file changed
+3
-1
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user