summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-09-02 23:41:57 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-09-02 23:41:57 +0200
commit09860f354ae0824cfead384e994d3f119e22b851 (patch)
treeb3bc25c9f4f2829b82fc6b222ce4f86b929c95fc
parentd10c61ce6402000150c793dbd771d73a3c257ea0 (diff)
downloadbuildroot-09860f354ae0824cfead384e994d3f119e22b851.tar.gz
buildroot-09860f354ae0824cfead384e994d3f119e22b851.zip
util-linux: linux-pam is needed for runuser
With linux-pam, the configure script bails out with: configure: error: runuser selected, but required PAM header file not available Fixes: http://autobuild.buildroot.net/results/ea7430012f1d8e2ae3ceb8fe5d41630ea1eaa3af/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/util-linux/Config.in10
1 files changed, 9 insertions, 1 deletions
diff --git a/package/util-linux/Config.in b/package/util-linux/Config.in
index b3494af101..d2a925c1bb 100644
--- a/package/util-linux/Config.in
+++ b/package/util-linux/Config.in
@@ -297,12 +297,20 @@ config BR2_PACKAGE_UTIL_LINUX_RESET
config BR2_PACKAGE_UTIL_LINUX_RUNUSER
bool "runuser"
- depends on BR2_USE_MMU # fork()
+ depends on (BR2_ENABLE_LOCALE && BR2_USE_WCHAR) # linux-pam
+ depends on !BR2_STATIC_LIBS
+ depends on !BR2_TOOLCHAIN_USES_MUSL # linux-pam
+ depends on BR2_USE_MMU # fork(), linux-pam
+ select BR2_PACKAGE_LINUX_PAM
help
Run a command with substitute user and group ID (does not need
to ask for a password, because it may be executed by the root
user only)
+comment "runuser needs a uClibc or glibc toolchain w/ wchar, locale, dynamic library"
+ depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR) \
+ || BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_MUSL
+
config BR2_PACKAGE_UTIL_LINUX_SCHEDUTILS
bool "scheduling utilities"
help
OpenPOWER on IntegriCloud