Skip to contentSkip to conversation

networkmanager/polkit: add consolekit only when x11 is enabled

PATCH New [email protected] 1 participant 3 messages Nov 13, 2017

lore
Share & tools
lore
#0 lore raw

cover networkmanager/polkit: add consolekit only when x11 is enabled

From: Jackie Huang <[email protected]>

--
The following changes since commit 5d6d21e98ed594809169d2b2f6964e90a3369a96:

libreport: fix Nothing RPROVIDES 'lib32-python3-libreport' (2017-10-27 16:39:34 +0000)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib.git jhuang0/d_consolekit_171113_1
http://git.pokylinux.org/cgit.cgi//log/?h=jhuang0/d_consolekit_171113_1

Jackie Huang (2):
networkmanager: add consolekit only when x11 is enabled
polkit: add consolekit only when x11 is enabled

 .../recipes-connectivity/networkmanager/networkmanager_1.4.4.bb       | 3 ++-
 meta-oe/recipes-extended/polkit/polkit_0.113.bb                       | 4 +++-
 2 files changed, 5 insertions(+), 2 deletions(-)
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/2 networkmanager: add consolekit only when x11 is enabled

From: Jackie Huang <[email protected]>

consolekit depends on virtual/libx11 then it requires x11 distro feature, so add consolekit option only when x11 is in DISTRO_FEATURES.

---
 .../recipes-connectivity/networkmanager/networkmanager_1.4.4.bb        | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-networking/recipes-connectivity/networkmanager/networkmanager_1.4.4.bb +2 -1
index bfd2aada7..d5f456f37 100644
@@ -60,7 +60,8 @@ do_compile_prepend() {
 }
 
 PACKAGECONFIG ??= "nss ifupdown netconfig dhclient dnsmasq \
-    ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', 'consolekit', d)} \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', \
+       bb.utils.contains('DISTRO_FEATURES', 'x11', 'consolekit', '', d), d)} \
     ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', '${BLUEZ}', '', d)} \
     ${@bb.utils.filter('DISTRO_FEATURES', 'wifi', d)} \
 "
Signature · 1 line
2.11.0
#2 lore raw

PATCH 2/2 polkit: add consolekit only when x11 is enabled

In reply to [email protected]

From: Jackie Huang <[email protected]>

consolekit depends on virtual/libx11 then it requires x11 distro feature, so add consolekit option only when x11 is in DISTRO_FEATURES.

---
 meta-oe/recipes-extended/polkit/polkit_0.113.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-oe/recipes-extended/polkit/polkit_0.113.bb +3 -1
index 326c9340e..f34928fe3 100644
@@ -10,7 +10,9 @@ DEPENDS = "expat glib-2.0 intltool-native mozjs"
 inherit autotools gtk-doc pkgconfig useradd systemd gobject-introspection
 
 PACKAGECONFIG = "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)} \
-                 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', 'consolekit', d)}"
+                 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', \
+                    bb.utils.contains('DISTRO_FEATURES', 'x11', 'consolekit', '', d), d)} \
+                "
 
 PACKAGECONFIG[pam] = "--with-authfw=pam,--with-authfw=shadow,libpam,libpam"
 PACKAGECONFIG[systemd] = "--enable-libsystemd-login=yes --with-systemdsystemunitdir=${systemd_unitdir}/system/,--enable-libsystemd-login=no --with-systemdsystemunitdir=,systemd"
Signature · 1 line
2.11.0