linux-pam: unavailable for static builds
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Wed, 30 Jul 2014 23:14:51 +0000 (20:14 -0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 31 Jul 2014 20:20:08 +0000 (22:20 +0200)
Fixes:
http://autobuild.buildroot.net/results/3bb/3bb8d4662995a11e8e6cc5fdaaba9e25d4c0e0ec/

[Thomas: add more details about the non availability for static builds
as a comment in the Config.in file.]

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/linux-pam/Config.in
package/rsh-redone/Config.in
package/util-linux/Config.in

index 88bdd4f2d1ef3f3637c16b8c993528f18430d781..c2cfdc00be2136b8744b8494c9c248f8c5ced4c3 100644 (file)
@@ -3,10 +3,18 @@ config BR2_PACKAGE_LINUX_PAM
        select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
        select BR2_PACKAGE_FLEX
        depends on (BR2_ENABLE_LOCALE && BR2_USE_WCHAR)
+       # While linux-pam does have some support for statically linked
+       # modules (through --enable-static-modules), it doesn't work
+       # properly due to a build cycle between libpam and
+       # modules. See
+       # https://lists.fedorahosted.org/pipermail/linux-pam-commits/2012-February/000105.html
+       # for details.
+       depends on !BR2_PREFER_STATIC_LIB
        help
          A Security Framework that Provides Authentication for Applications
 
          http://linux-pam.org
 
-comment "linux-pam needs a toolchain w/ wchar, locale"
-       depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR)
+comment "linux-pam needs a toolchain w/ wchar, locale, dynamic library"
+       depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR) \
+               || BR2_PREFER_STATIC_LIB
index f636e2f9577e313bf0d7b684b448d541eb921ea9..c8f2f513f713f520d7326af8cf9db6829fca8b74 100644 (file)
@@ -14,21 +14,25 @@ config BR2_PACKAGE_RSH_REDONE_RLOGIN
 
 config BR2_PACKAGE_RSH_REDONE_RLOGIND
        bool "rlogind"
-       select BR2_PACKAGE_LINUX_PAM
+       depends on !BR2_PREFER_STATIC_LIB
        depends on BR2_ENABLE_LOCALE && BR2_USE_WCHAR
+       select BR2_PACKAGE_LINUX_PAM
 
-comment "rlogind needs a toolchain w/ wchar, locale"
-       depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR)
+comment "rlogind needs a toolchain w/ wchar, locale, dynamic library"
+       depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR) \
+               || BR2_PREFER_STATIC_LIB
 
 config BR2_PACKAGE_RSH_REDONE_RSH
        bool "rsh"
 
 config BR2_PACKAGE_RSH_REDONE_RSHD
        bool "rshd"
-       select BR2_PACKAGE_LINUX_PAM
        depends on BR2_ENABLE_LOCALE && BR2_USE_WCHAR
+       depends on !BR2_PREFER_STATIC_LIB
+       select BR2_PACKAGE_LINUX_PAM
 
-comment "rshd needs a toolchain w/ wchar, locale"
-       depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR)
+comment "rshd needs a toolchain w/ wchar, locale, dynamic library"
+       depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR) \
+               || BR2_PREFER_STATIC_LIB
 
 endif
index 28bda11e0be56043742978154f4ca11366d83997..934021af7ec42ad08f661a28019bc3b7c11153ce 100644 (file)
@@ -58,13 +58,15 @@ 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
+       depends on !BR2_PREFER_STATIC_LIB
+       select BR2_PACKAGE_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)
+comment "chfn/chsh needs a toolchain w/ wchar, locale, dynamic library"
+       depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR) \
+               || BR2_PREFER_STATIC_LIB
 
 config BR2_PACKAGE_UTIL_LINUX_CRAMFS
        bool "cramfs utilities"
@@ -100,13 +102,15 @@ config BR2_PACKAGE_UTIL_LINUX_KILL
 
 config BR2_PACKAGE_UTIL_LINUX_LOGIN_UTILS
        bool "login utilities"
-       depends on BR2_ENABLE_LOCALE # linux-pam
+       depends on (BR2_ENABLE_LOCALE && BR2_USE_WCHAR) # linux-pam
+       depends on !BR2_PREFER_STATIC_LIB
        select BR2_PACKAGE_LINUX_PAM
        help
          Build login utilities (last, login, su, sulogin)
 
-comment "login utilities needs a toolchain w/ locale"
-       depends on !BR2_ENABLE_LOCALE
+comment "login utilities needs a toolchain w/ wchar, locale, dynamic library"
+       depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR) \
+               || BR2_PREFER_STATIC_LIB
 
 config BR2_PACKAGE_UTIL_LINUX_LOSETUP
        bool "losetup"