]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
libc-locale: fix ASCII compatible warning cause build failure.
authorXiangyu Chen <xiangyu.chen@windriver.com>
Mon, 26 Feb 2024 09:59:21 +0000 (17:59 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 28 Feb 2024 17:24:33 +0000 (17:24 +0000)
commit1048992c0d2a2bda3464185efdac5cc986a583d4
tree3e2014fa59d5ede14fbcb739d2226773bace3328
parentc9cb2eb2e662e19d68d27f2eec791986715c3abe
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.

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/libc-package.bbclass