Skip to contentSkip to conversation

xfce4-session: Make libpam and systemd dependencies conditional

PATCH Kang, Wenlin 1 participant 1 message Apr 23 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Please ignore it.

Quoted 43 lines · On 4/23/2026 11:17 AM, [email protected] via lists.openembedded.org…

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.

---
  .../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 -2
index b95bfc170c..191c49b216 100644
@@ -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"
+
+EXTRA_OEMESON += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', '', '-Dauthentication-scheme=none', d)}"
+DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
+
+EXTRA_OEMESON += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '', '-Dsession-manager=none', d)}"
+DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
 
  inherit xfce-app
 
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#126567): https://lists.openembedded.org/g/openembedded-devel/message/126567
Mute This Topic: https://lists.openembedded.org/mt/118966722/3617706
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-