Recently we faced some issues with locale and when debugged using strace it shows following error
open("/usr/share/X11/locale/locale.alias", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/X11/locale/locale.dir", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/X11/locale/locale.alias", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/X11/locale/locale.dir", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/X11/locale/locale.alias", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/X11/locale/locale.dir", O_RDONLY) = -1 ENOENT (No such file or directory)
Now, to add these missing files using bitbake, append following line in either in your image recipe or in conf/local.conf
and rebuild the root filesystem
IMAGE_INSTALL += "libx11 libx11-locale"