Skip to contentSkip to conversation

polkit: respect systemd DISTRO_FEATURE

PATCH In review Ross Burton 1 participant 2 messages Jan 31, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 polkit: respect systemd DISTRO_FEATURE

By default polkit uses systemd if it's available, which mean systemd runtime dependencies sneaking into non-systemd builds via sstate.

Instead respect the systemd feature and enable/disable support as relevant.

---
 meta/recipes-extended/polkit/polkit_0.104.bb |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-extended/polkit/polkit_0.104.bb +3 -1
index 2c0aaca..37d8428 100644
@@ -7,8 +7,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=155db86cdbafa7532b41f390409283eb \
 
 DEPENDS = "expat glib-2.0 intltool-native gobject-introspection-stub"
 
-PACKAGECONFIG = "${@base_contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}"
+PACKAGECONFIG = "${@base_contains('DISTRO_FEATURES', 'pam', 'pam', '', d)} \
+                 ${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
 PACKAGECONFIG[pam] = "--with-authfw=pam,--with-authfw=shadow,libpam,libpam"
+PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd,systemd"
 
 PR = "r9"
 
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 6 lines · Ross Burton

By default polkit uses systemd if it's available, which mean systemd runtime dependencies sneaking into non-systemd builds via sstate.

Instead respect the systemd feature and enable/disable support as relevant.

Retracting this, Radu's systemd branch has a patch that isn't broken.

Ross