xfce4-screensaver: Make libpam and systemd dependencies conditional
PATCH v2 1/1 xfce4-screensaver: Make libpam and systemd dependencies conditional
From: Wenlin Kang <[email protected]>
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 <[email protected]>
--- .../xfce4-screensaver/xfce4-screensaver_4.20.2.bb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
meta-xfce/recipes-apps/xfce4-screensaver/xfce4-screensaver_4.20.2.bb +7 -1
@@ -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
Signature · 1 line
2.43.0