summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Volk <f_l_k@t-online.de>2022-02-08 17:42:59 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-02-10 10:32:08 +0000
commitcecad01191146a1dd7ab4130cbb618168b874001 (patch)
treebce8b7e4d6bfb2d30eb6063d3ea1ab2d4407797c
parent0fde83cf97560f5d8e3c65383fd1777e5e9dc5fd (diff)
downloadpoky-cecad01191146a1dd7ab4130cbb618168b874001.tar.gz
seatd: build systemd backend if DISTRO_FEATURE systemd is set
Add libsystemd dependency if we have systemd in DISTRO_FEATURES. This is needed to build the systemd backend. Projects that use seatd to hook into logind (e.g. wlroots) fail to properly login without it. (From OE-Core rev: c659e7468686b8f6995cdc01dd0dbe0e84946bf6) Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-core/seatd/seatd_0.6.3.bb7
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/recipes-core/seatd/seatd_0.6.3.bb b/meta/recipes-core/seatd/seatd_0.6.3.bb
index 0e1a79dddf..abc8583087 100644
--- a/meta/recipes-core/seatd/seatd_0.6.3.bb
+++ b/meta/recipes-core/seatd/seatd_0.6.3.bb
@@ -13,9 +13,13 @@ S = "${WORKDIR}/git"
13 13
14inherit meson pkgconfig update-rc.d 14inherit meson pkgconfig update-rc.d
15 15
16PACKAGECONFIG ?= "libseat-builtin" 16PACKAGECONFIG ?= " \
17 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
18 libseat-builtin \
19"
17 20
18PACKAGECONFIG[libseat-builtin] = "-Dlibseat-builtin=enabled,-Dlibseat-builtin=disabled" 21PACKAGECONFIG[libseat-builtin] = "-Dlibseat-builtin=enabled,-Dlibseat-builtin=disabled"
22PACKAGECONFIG[systemd] = ",,systemd"
19 23
20do_install:append() { 24do_install:append() {
21 if [ "${VIRTUAL-RUNTIME_init_manager}" != "systemd" ]; then 25 if [ "${VIRTUAL-RUNTIME_init_manager}" != "systemd" ]; then
@@ -26,4 +30,3 @@ do_install:append() {
26INITSCRIPT_NAME = "seatd" 30INITSCRIPT_NAME = "seatd"
27INITSCRIPT_PARAMS = "start 9 5 2 . stop 20 0 1 6 ." 31INITSCRIPT_PARAMS = "start 9 5 2 . stop 20 0 1 6 ."
28INHIBIT_UPDATERCD_BBCLASS = "${@oe.utils.conditional('VIRTUAL-RUNTIME_init_manager', 'systemd', '1', '', d)}" 32INHIBIT_UPDATERCD_BBCLASS = "${@oe.utils.conditional('VIRTUAL-RUNTIME_init_manager', 'systemd', '1', '', d)}"
29