]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
bitbake.conf: change localedir ChenQi/locale-fix
authorChen Qi <Qi.Chen@windriver.com>
Mon, 8 Aug 2016 05:55:42 +0000 (13:55 +0800)
committerChen Qi <Qi.Chen@windriver.com>
Mon, 8 Aug 2016 06:02:13 +0000 (14:02 +0800)
commit8374cee610f770f4e027f92785bc0bed13334fbb
tree6a7d971982e4ac1046fe66b595e234cd8522e1fa
parentc4dda05cb9755cb865c1d1bd142196f8a9f45d3d
bitbake.conf: change localedir

Previously, localedir is set to "${libdir}/locale". This would result
in locale database installed in '/usr/lib64/locale' in some multilib case.
For example, if we build out a multilib x86-64 self-hosted image and we try
to build projects on this host, things broke and the following error appears.

  Please use a locale setting which supports utf-8.
  Python can't change the filesystem locale after loading so we need a utf-8 when python starts or things won't work.

This is because '/usr/lib/locale' is the default one. And actually the
nativesdk-glibc is now set to use '/usr/lib/locale'.

Thus, we change the setting of 'localedir' to '${nonarch_libdir}/locale' to
fix the above problem.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
meta/conf/bitbake.conf