diff mbox series

[scarthgap,2/5] busybox: add a DEPENDS on libpam when pam is selected in DISTRO_FEATURES

Message ID 20260602142132.976138-2-rl@karo-electronics.de
State New
Headers show
Series [scarthgap,1/5] sign_ipk.bbclass: add missing 'd' parameter to raise_sanity_error() | expand

Commit Message

Robin Lintermann June 2, 2026, 2:21 p.m. UTC
When 'pam' is in DISTRO_FEATURES and CONFIG_PAM is selected in busybox
the target-libpam is required to be installed before busybox can be
built. Add a build-time dependency for busybox on libpam to guarantee
this.
If CONFIG_PAM is not selected in busybox's .config, this dependency
would rather be unnecessary, but it doesn't hurt to have it anyhow.

Signed-off-by: Robin Lintermann <rl@karo-electronics.de>
---
 meta/recipes-core/busybox/busybox.inc | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc
index f5d7c3f9c8..d5ab9eff6d 100644
--- a/meta/recipes-core/busybox/busybox.inc
+++ b/meta/recipes-core/busybox/busybox.inc
@@ -4,6 +4,7 @@  HOMEPAGE = "https://www.busybox.net"
 BUGTRACKER = "https://bugs.busybox.net/"
 
 DEPENDS += "kern-tools-native virtual/crypt"
+DEPENDS += "${@ bb.utils.contains('DISTRO_FEATURES','pam','libpam','',d)}"
 
 # bzip2 applet in busybox is based on lightly-modified bzip2-1.0.4 source
 # the GPL is version 2 only