xfce4-screensaver: Make libpam and systemd dependencies conditional

libpam and systemd require the settings below:
  INIT_MANAGER = "systemd"
  DISTRO_FEATURES:append = " pam systemd usrmerge"

So remove hardcoded libpam and systemd dependencies from DEPENDS.
Add conditional logic to include these dependencies only when
the corresponding DISTRO_FEATURES are enabled.

Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Wenlin Kang
2026-04-23 12:56:51 +08:00
committed by Khem Raj
parent 88c22e566d
commit 8c9adcfadb
@@ -10,7 +10,13 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
XFCE_COMPRESS_TYPE = "xz"
XFCEBASEBUILDCLASS = "meson"
DEPENDS = "dbus-glib garcon gtk+3 libxklavier libxscrnsaver virtual/libx11 xfconf libwnck3 libpam systemd"
DEPENDS = "dbus-glib garcon gtk+3 libxklavier libxscrnsaver virtual/libx11 xfconf libwnck3"
PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'authentication-scheme', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'session-manager', '', d)} \
"
PACKAGECONFIG[authentication-scheme] = ", -Dauthentication-scheme=none, libpam,"
PACKAGECONFIG[session-manager] = ", -Dsession-manager=none, systemd,"
inherit xfce-app