From: Gustavo Zacarias Date: Fri, 14 Dec 2012 09:15:17 +0000 (+0000) Subject: gettext: fix build failure with locale and uclibc X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7b6d368960f2e200a3ca4050d6ed1e7b481bb3f5;p=buildroot.git gettext: fix build failure with locale and uclibc As reported by Johan Sagaert in the mailing list, if it's building with a uClibc toolchain with locale enabled the build fails since the new gettext does a locale hack for glibc which isn't needed nor supported. Signed-off-by: Gustavo Zacarias Signed-off-by: Peter Korsgaard --- diff --git a/package/gettext/gettext-uclibc-compat.patch b/package/gettext/gettext-uclibc-compat.patch new file mode 100644 index 0000000000..5e52665de6 --- /dev/null +++ b/package/gettext/gettext-uclibc-compat.patch @@ -0,0 +1,27 @@ +The glibc fix/hack isn't valid for uClibc. +Patch taken from OpenWRT. + +Signed-off-by: Gustavo Zacarias + +--- a/gettext-runtime/intl/localename.c ++++ b/gettext-runtime/intl/localename.c +@@ -2607,7 +2607,7 @@ gl_locale_name_thread_unsafe (int catego + locale_t thread_locale = uselocale (NULL); + if (thread_locale != LC_GLOBAL_LOCALE) + { +-# if __GLIBC__ >= 2 ++# if __GLIBC__ >= 2 && !defined __UCLIBC__ + /* Work around an incorrect definition of the _NL_LOCALE_NAME macro in + glibc < 2.12. + See . */ +--- a/gettext-tools/gnulib-lib/localename.c ++++ b/gettext-tools/gnulib-lib/localename.c +@@ -2607,7 +2607,7 @@ gl_locale_name_thread_unsafe (int catego + locale_t thread_locale = uselocale (NULL); + if (thread_locale != LC_GLOBAL_LOCALE) + { +-# if __GLIBC__ >= 2 ++# if __GLIBC__ >= 2 && !defined __UCLIBC__ + /* Work around an incorrect definition of the _NL_LOCALE_NAME macro in + glibc < 2.12. + See . */