From: Richard Tollerton Date: Wed, 31 Jul 2013 18:33:10 +0000 (-0500) Subject: shadow: Fix build when DISTRO_FEATURES contains pam, libc-crypt X-Git-Tag: rev_ivi_2015_02_04~11591 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8597073574d62f528526b7fefce06c15660d8142;p=scm%2Fbb%2Ftizen-distro.git shadow: Fix build when DISTRO_FEATURES contains pam, libc-crypt shadow falsely assumes that if --enable-libpam is set, it doesn't need to link against libcrypt; this breaks chsh. (This same fix exists in Arch.) (From OE-Core rev: f68eccd67a3f9ed0d62e5ab75545891bd724daa3) Signed-off-by: Richard Tollerton Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-extended/shadow/shadow_4.1.4.3.bb b/meta/recipes-extended/shadow/shadow_4.1.4.3.bb index 173da3b..af67339 100644 --- a/meta/recipes-extended/shadow/shadow_4.1.4.3.bb +++ b/meta/recipes-extended/shadow/shadow_4.1.4.3.bb @@ -37,6 +37,10 @@ EXTRA_OECONF += "--without-audit \ --without-selinux" EXTRA_OECONF_libc-uclibc += "--with-nscd=no" +# Build falsely assumes that if --enable-libpam is set, we don't need to link against +# libcrypt. This breaks chsh. +BUILD_LDFLAGS += "${@base_contains('DISTRO_FEATURES', 'pam', base_contains('DISTRO_FEATURES', 'libc-crypt', '-lcrypt', '', d), '', d)}" + PAM_PLUGINS = "libpam-runtime \ pam-plugin-faildelay \ pam-plugin-securetty \