Skip to contentSkip to conversation

polkit: Enable systemd support

PATCH Superseded Radu Moisan 2 participants 2 messages Feb 1, 2013

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 polkit: Enable systemd support

By default the polkit will autodetect if systemd is available and setup the configuraton accordingly, potentially contaminating sstate.
In this patch systemd is explicitly enabled/disabled. When enabled, polkit will use systemd for session tarcking, otherwise it will use ConsoleKit.

---
 meta/recipes-extended/polkit/polkit_0.104.bb |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
meta/recipes-extended/polkit/polkit_0.104.bb +6 -1
index 2c0aaca..ab2547b 100644
@@ -7,8 +7,13 @@ 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','consolekit',d)}"
+
 PACKAGECONFIG[pam] = "--with-authfw=pam,--with-authfw=shadow,libpam,libpam"
+PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd,systemd"
+# there is no --enable/--disable option for consolekit and it's not picked by shlibs, so add it to RDEPENDS
+PACKAGECONFIG[consolekit] = ",,,consolekit"
 
 PR = "r9"
 
Signature · 1 line
1.7.9.5
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Radu Moisan

By default the polkit will autodetect if systemd is available and setup the configuraton accordingly, potentially contaminating sstate.
In this patch systemd is explicitly enabled/disabled. When enabled, polkit will use systemd for session tarcking, otherwise it will use ConsoleKit.

Ross