summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe
diff options
context:
space:
mode:
authorXiangyu Chen <xiangyu.chen@windriver.com>2024-02-26 17:59:21 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-02-29 10:26:13 +0000
commiteb11e03c8175dd71b69aaf6b8fd81d2bb0df18d8 (patch)
tree5cef741e9de7199e4dee4abfd9234d01768357ce /meta/classes-recipe
parent930450926cad6459950a004f2aad31adea8bd97e (diff)
downloadpoky-eb11e03c8175dd71b69aaf6b8fd81d2bb0df18d8.tar.gz
libc-locale: fix ASCII compatible warning cause build failure.
Some locales are not listed in glibc locales support list, but can be generated, here using ja_JP.SHIFT_JIS as an example. We can add following line into local.conf to enable and generate it: GLIBC_GENERATE_LOCALES += "en_GB.UTF-8 en_US.UTF-8 ja_JP.UTF-8 ja_JP.SHIFT_JIS" IMAGE_LINGUAS += "ja-jp en-us ja-jp.shift-jis" The localedef tool would report a warning and exit with 1, that cause build failure, error message as below: [warning] character map `SHIFT_JIS' is not ASCII compatible, locale not ISO C compliant [--no-warnings=ascii] So add a --no-warnings=ascii in libc-package.bbclass to fix build failure if someone needs those locale in yocto. (From OE-Core rev: 1048992c0d2a2bda3464185efdac5cc986a583d4) Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe')
-rw-r--r--meta/classes-recipe/libc-package.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-recipe/libc-package.bbclass b/meta/classes-recipe/libc-package.bbclass
index bf160b115d..c06a2ce90a 100644
--- a/meta/classes-recipe/libc-package.bbclass
+++ b/meta/classes-recipe/libc-package.bbclass
@@ -278,7 +278,7 @@ python package_do_split_gconvs () {
278 bb.fatal("unknown arch:" + target_arch + " for locale_arch_options") 278 bb.fatal("unknown arch:" + target_arch + " for locale_arch_options")
279 279
280 localedef_opts += " --force --no-hard-links --no-archive --prefix=%s \ 280 localedef_opts += " --force --no-hard-links --no-archive --prefix=%s \
281 --inputfile=%s/%s/i18n/locales/%s --charmap=%s %s/%s" \ 281 --inputfile=%s/%s/i18n/locales/%s --charmap=%s %s/%s --no-warnings=ascii" \
282 % (treedir, treedir, datadir, locale, encoding, outputpath, name) 282 % (treedir, treedir, datadir, locale, encoding, outputpath, name)
283 283
284 cmd = "PATH=\"%s\" I18NPATH=\"%s\" GCONV_PATH=\"%s\" cross-localedef %s" % \ 284 cmd = "PATH=\"%s\" I18NPATH=\"%s\" GCONV_PATH=\"%s\" cross-localedef %s" % \