[OE-core] [PATCH V2] glibc: apply complocaledir while localedir changed
Hongxu Jia
hongxu.jia at windriver.com
Wed Aug 10 07:31:20 UTC 2016
Since localedir changed, we should apply complocaledir=${localedir}
Build image with IMAGE_LINGUAS="en-us en-gb"
Boot target and display all locales:
...
root at localhost:~# locale -a
C
POSIX
en_GB
en_US
...
Signed-off-by: Hongxu Jia <hongxu.jia at windriver.com>
---
meta/recipes-core/glibc/glibc_2.24.bb | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/meta/recipes-core/glibc/glibc_2.24.bb b/meta/recipes-core/glibc/glibc_2.24.bb
index 88bcbef2..2f0c4be 100644
--- a/meta/recipes-core/glibc/glibc_2.24.bb
+++ b/meta/recipes-core/glibc/glibc_2.24.bb
@@ -128,10 +128,8 @@ do_compile () {
}
-# Use the host locale archive when built for nativesdk so that we don't need to
-# ship a complete (100MB) locale set.
-do_compile_prepend_class-nativesdk() {
- echo "complocaledir=/usr/lib/locale" >> ${S}/configparms
+do_compile_prepend() {
+ echo "complocaledir=${localedir}" >> ${S}/configparms
}
require glibc-package.inc
--
2.8.1
More information about the Openembedded-core
mailing list