Skip to contentSkip to conversation

package/linux-pam: separate locale and wchar dependencies

Buildroot Peter Korsgaard 1 participant 1 message Jan 22, 2022

lore
Share & tools
lore
#0 lore raw

commit: https://git.buildroot.net/buildroot/commit/?id=d259c00fb6f44a7a8512275f6751de22a99ee39f
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2021.11.x

They are currently expressed as such:

     depends on (BR2_ENABLE_LOCALE && BR2_USE_WCHAR)

which is not the common practice in Buildroot. We prefer to use:

depends on BR2_ENABLE_LOCALE
depends on BR2_USE_WCHAR

This commit ensures linux-pam is consistent with this best practice.

(cherry picked from commit ac9261edec111836952970e26cf373cc15b9e8ac)
---
 package/linux-pam/Config.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
package/linux-pam/Config.in +3 -2
index 931cfdeccf..27ba55bd61 100644
@@ -1,6 +1,7 @@
 config BR2_PACKAGE_LINUX_PAM
 	bool "linux-pam"
-	depends on (BR2_ENABLE_LOCALE && BR2_USE_WCHAR)
+	depends on BR2_ENABLE_LOCALE
+	depends on BR2_USE_WCHAR
 	depends on !BR2_STATIC_LIBS
 	depends on BR2_USE_MMU # fork()
 	select BR2_PACKAGE_FLEX
@@ -12,5 +13,5 @@ config BR2_PACKAGE_LINUX_PAM
 
 comment "linux-pam needs a toolchain w/ wchar, locale, dynamic library"
 	depends on BR2_USE_MMU
-	depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR) \
+	depends on !BR2_ENABLE_LOCALE || !BR2_USE_WCHAR \
 		|| BR2_STATIC_LIBS

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot