util-linux: fix chfn/chsh missing dependencies
authorSamuel Martin <s.martin49@gmail.com>
Mon, 21 Apr 2014 05:54:54 +0000 (07:54 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 21 Apr 2014 08:34:48 +0000 (10:34 +0200)
chfn/chsh utilities need linux-pam.

Fixes:
  http://autobuild.buildroot.org/results/cfc/cfc5fd00b9db21b60efe8b74e9966b6192b1da17/

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/util-linux/Config.in

index cef80090e6f443aa5ec88f6e98e1ea331e9ebca3..28bda11e0be56043742978154f4ca11366d83997 100644 (file)
@@ -58,9 +58,14 @@ config BR2_PACKAGE_UTIL_LINUX_ARCH
 
 config BR2_PACKAGE_UTIL_LINUX_CHFN_CHSH
        bool "chfn/chsh"
+       select BR2_PACKAGE_LINUX_PAM
+       depends on (BR2_ENABLE_LOCALE && BR2_USE_WCHAR) # linux-pam
        help
          Change login shell, real user name and information
 
+comment "chfn/chsh needs a toolchain w/ wchar, locale"
+       depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR)
+
 config BR2_PACKAGE_UTIL_LINUX_CRAMFS
        bool "cramfs utilities"
        select BR2_PACKAGE_ZLIB