summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJackie Huang <jackie.huang@windriver.com>2017-11-13 16:04:19 +0800
committerArmin Kuster <akuster808@gmail.com>2017-11-19 13:44:17 -0800
commit19f0e8b40b88162483198934ac38c04d60102791 (patch)
tree7b86c25822cbe959de75440ac203e5320ccfbf27
parentde3c01b5f846178dff8bf7948fc3ec974195ccbf (diff)
downloadmeta-openembedded-19f0e8b40b88162483198934ac38c04d60102791.tar.gz
polkit: add consolekit only when x11 is enabled
consolekit depends on virtual/libx11 then it requires x11 distro feature, so add consolekit option only when x11 is in DISTRO_FEATURES. Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-oe/recipes-extended/polkit/polkit_0.113.bb4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta-oe/recipes-extended/polkit/polkit_0.113.bb b/meta-oe/recipes-extended/polkit/polkit_0.113.bb
index 326c9340e9..f34928fe3a 100644
--- a/meta-oe/recipes-extended/polkit/polkit_0.113.bb
+++ b/meta-oe/recipes-extended/polkit/polkit_0.113.bb
@@ -10,7 +10,9 @@ DEPENDS = "expat glib-2.0 intltool-native mozjs"
10inherit autotools gtk-doc pkgconfig useradd systemd gobject-introspection 10inherit autotools gtk-doc pkgconfig useradd systemd gobject-introspection
11 11
12PACKAGECONFIG = "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)} \ 12PACKAGECONFIG = "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)} \
13 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', 'consolekit', d)}" 13 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', \
14 bb.utils.contains('DISTRO_FEATURES', 'x11', 'consolekit', '', d), d)} \
15 "
14 16
15PACKAGECONFIG[pam] = "--with-authfw=pam,--with-authfw=shadow,libpam,libpam" 17PACKAGECONFIG[pam] = "--with-authfw=pam,--with-authfw=shadow,libpam,libpam"
16PACKAGECONFIG[systemd] = "--enable-libsystemd-login=yes --with-systemdsystemunitdir=${systemd_unitdir}/system/,--enable-libsystemd-login=no --with-systemdsystemunitdir=,systemd" 18PACKAGECONFIG[systemd] = "--enable-libsystemd-login=yes --with-systemdsystemunitdir=${systemd_unitdir}/system/,--enable-libsystemd-login=no --with-systemdsystemunitdir=,systemd"