[oe] [PATCH] polkit: enable and disable systemd/consolekit support explicitly

Martin Jansa martin.jansa at gmail.com
Sat Feb 18 10:12:12 UTC 2012


* people using sysvinit already have or can set something like
  task-core-boot.bb does VIRTUAL-RUNTIME_init_manager ?= "sysvinit"
  to disable systemd explicitly (so it's not picked by shlib when it's
  available because other packages).
* and for the rest it will disable consolekit and enable systemd
  explititly

Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
 .../recipes-extended/polkit/polkit_0.104.bbappend  |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-extended/polkit/polkit_0.104.bbappend

diff --git a/meta-oe/recipes-extended/polkit/polkit_0.104.bbappend b/meta-oe/recipes-extended/polkit/polkit_0.104.bbappend
new file mode 100644
index 0000000..d649f61
--- /dev/null
+++ b/meta-oe/recipes-extended/polkit/polkit_0.104.bbappend
@@ -0,0 +1,6 @@
+PRINC := "${@int(PRINC) + 3}"
+
+PACKAGECONFIG ??= "${@base_contains('VIRTUAL-RUNTIME_init_manager', 'sysvinit', 'consolekit', 'systemd', d)}"
+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"
-- 
1.7.8.4





More information about the Openembedded-devel mailing list