From eb11e03c8175dd71b69aaf6b8fd81d2bb0df18d8 Mon Sep 17 00:00:00 2001 From: Xiangyu Chen Date: Mon, 26 Feb 2024 17:59:21 +0800 Subject: 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 Signed-off-by: Richard Purdie --- meta/classes-recipe/libc-package.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/classes-recipe/libc-package.bbclass') 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 () { bb.fatal("unknown arch:" + target_arch + " for locale_arch_options") localedef_opts += " --force --no-hard-links --no-archive --prefix=%s \ - --inputfile=%s/%s/i18n/locales/%s --charmap=%s %s/%s" \ + --inputfile=%s/%s/i18n/locales/%s --charmap=%s %s/%s --no-warnings=ascii" \ % (treedir, treedir, datadir, locale, encoding, outputpath, name) cmd = "PATH=\"%s\" I18NPATH=\"%s\" GCONV_PATH=\"%s\" cross-localedef %s" % \ -- cgit v1.2.3-54-g00ecf