From daa1d079d504a27c7a1d847461f9534877518257 Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Wed, 29 Jul 2015 13:56:57 -0700 Subject: [PATCH] glibc-external: fix support for non-precompiled locales Signed-off-by: Christopher Larson --- recipes-external/glibc/glibc-external.bb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/recipes-external/glibc/glibc-external.bb b/recipes-external/glibc/glibc-external.bb index 4a2cf41..8c7295b 100644 --- a/recipes-external/glibc/glibc-external.bb +++ b/recipes-external/glibc/glibc-external.bb @@ -119,6 +119,14 @@ glibc_external_do_install_extra () { if [ "${GLIBC_INTERNAL_USE_BINARY_LOCALE}" != "precompiled" ]; then rm -rf ${D}${localedir} fi + + # Work around localedef failures for non-precompiled + for locale in bo_CN bo_IN; do + sed -i -e '/^name_fmt\s/s/""/"???"/' "${D}${datadir}/i18n/locales/$locale" + if grep -q '^name_fmt.*""' "${D}${datadir}/i18n/locales/$locale"; then + bbfatal "sed did not fix $locale" + fi + done } EXTERNAL_EXTRA_FILES += "\