[yocto] [imx6qsabresd][morty] Locales not generated

Fabio Emiliani fabio.emiliani at artgroup-spa.com
Thu Mar 9 02:48:50 PST 2017


Dear all,

I'm trying to configure locale support in Yocto. My taget machine is: 
imx6qsabresd (i.MX 6Quad Processor), yocto version is: morty.

I've created a base image with the command: bitbake core-image-base, 
then I've booted the image in my sabre board. Everything works fine 
except locales.

Reading in the docs I've found:

> You can set |GLIBC_GENERATE_LOCALES| in your |local.conf| file. By 
> default, all locales are generated. 
Link: 
http://www.yoctoproject.org/docs/1.8/mega-manual/mega-manual.html#var-GLIBC_GENERATE_LOCALES

In my build I've found only a locale, path: /usr/share/locale/en_GB, no 
other locales are generated. Executing the "locale" command I've got:

> root at imx6qsabresd:/usr/share/locale# locale
> LANG=
> LC_CTYPE="POSIX"
> LC_NUMERIC="POSIX"
> LC_TIME="POSIX"
> LC_COLLATE="POSIX"
> LC_MONETARY="POSIX"
> LC_MESSAGES="POSIX"
> LC_PAPER="POSIX"
> LC_NAME="POSIX"
> LC_ADDRESS="POSIX"
> LC_TELEPHONE="POSIX"
> LC_MEASUREMENT="POSIX"
> LC_IDENTIFICATION="POSIX"
> LC_ALL=
Default locale is POSIX, not en_GB.

I've tried several options in my local.conf:

  * ENABLE_BINARY_LOCALE_GENERATION = "1" to enable the generation of
    locales at build time
  * IMAGE_INSTALL_append = " glibc-utils localedef" to add to the build
    locale and localdef
  * IMAGE_LINGUAS = "en-gb en-us zh-cn" to specify the add of additional
    packages

None of this options had effects.

Looking in the features list of the next yocto release I've found this bug:

> https://bugzilla.yoctoproject.org/show_bug.cgi?id=9070
is it possible that curreny release has problems respect to locale 
generation?

_/Why locales are not generated? What do I have to configure to generate 
them?/_

Thanks in advance for your time

Regards,

Fabio Emiliani

-- 

*Fabio Emiliani*

*/Software Engineer/*

/Ph. +39 075 8298 530 /

/fabio.emiliani at artgroup-spa.com/ <mailto:fabio.emiliani at artgroup-spa.com>

DISCLAIMER
This email and any attachment may contain confidential information. If 
you are not the intended recipient you are not authorised to copy or 
disclose all or any part of it without the prior written consent of ART SpA.

/ART SpA – Step Forward With US - //www.artgroup-spa.com/logo_ART_firma-1//

/Ph. +39 075 8298 501 – Fax +39 075 8298 525 /

P*Please consider our environment  before printing this e-mail***

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170309/3cbbb52b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logo_ART_firma-1.jpg
Type: image/jpeg
Size: 16420 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170309/3cbbb52b/attachment.jpg>


More information about the yocto mailing list