[Buildroot] [git commit branch/2020.02.x] package/polkit: add linux-pam as a dependency if linux-pam is selected

From: Peter Korsgaard <peter@korsgaard.com>
Date: 2020-03-21 21:51:44
Subsystem: the rest · Maintainer: Linus Torvalds

commit: https://git.buildroot.net/buildroot/commit/?id=9231ffe10b409b213cb0d0ddbe7efd3488695e87
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2020.02.x

Without linux-pam built first, polkit will throw a configuration error:
configure: error: Could not find pam/pam-devel, please install the needed packages.

Signed-off-by: Adam Duskett <redacted>
Signed-off-by: Yann E. MORIN <redacted>
(cherry picked from commit 35a0878aa934c4c92a854c3dc90f21ca896fd3e1)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
 package/polkit/polkit.mk | 1 +
 1 file changed, 1 insertion(+)
diff --git a/package/polkit/polkit.mk b/package/polkit/polkit.mk
index bc9e3580ab..efd788a05c 100644
--- a/package/polkit/polkit.mk
+++ b/package/polkit/polkit.mk
@@ -24,6 +24,7 @@ POLKIT_CONF_OPTS = \
 	--disable-libsystemd-login
 
 ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
+POLKIT_DEPENDENCIES += linux-pam
 POLKIT_CONF_OPTS += --with-authfw=pam
 else
 POLKIT_CONF_OPTS += --with-authfw=shadow
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help