gettext: fix build failure with locale and uclibc
PATCH 1/1 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 <[email protected]>
--- package/gettext/gettext-uclibc-compat.patch | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) create mode 100644 package/gettext/gettext-uclibc-compat.patch
package/gettext/gettext-uclibc-compat.patch new file +27 -0
@@ -0,0 +1,27 @@ +The glibc fix/hack isn't valid for uClibc. +Patch taken from OpenWRT. + +Signed-off-by: Gustavo Zacarias <[email protected]> + +--- 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 <http://sourceware.org/bugzilla/show_bug.cgi?id=10968>. */ +--- 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 <http://sourceware.org/bugzilla/show_bug.cgi?id=10968>. */
Signature · 1 line
1.7.8.6
PATCH 1/1 gettext: fix build failure with locale and uclibc
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> writes:
Gustavo> As reported by Johan Sagaert in the mailing list, if it's Gustavo> building with a uClibc toolchain with locale enabled the build Gustavo> fails since the new gettext does a locale hack for glibc which Gustavo> isn't needed nor supported.
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard