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.

Signed-off-by: Markus Volk <f_...@t-online.de>
---
 meta/recipes-core/seatd/seatd_0.6.3.bb | 7 +++++--
 1 file 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"
 
 inherit meson pkgconfig update-rc.d
 
-PACKAGECONFIG ?= "libseat-builtin"
+PACKAGECONFIG ?= " \
+       ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
+       libseat-builtin \
+"
 
 PACKAGECONFIG[libseat-builtin] = 
"-Dlibseat-builtin=enabled,-Dlibseat-builtin=disabled"
+PACKAGECONFIG[systemd] = ",,systemd"
 
 do_install:append() {
         if [ "${VIRTUAL-RUNTIME_init_manager}" != "systemd" ]; then
@@ -26,4 +30,3 @@ do_install:append() {
 INITSCRIPT_NAME = "seatd"
 INITSCRIPT_PARAMS = "start 9 5 2 . stop 20 0 1 6 ."
 INHIBIT_UPDATERCD_BBCLASS = 
"${@oe.utils.conditional('VIRTUAL-RUNTIME_init_manager', 'systemd', '1', '', 
d)}"
-
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#161523): 
https://lists.openembedded.org/g/openembedded-core/message/161523
Mute This Topic: https://lists.openembedded.org/mt/89000503/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to