gmacario / easy-build

Collection of Dockerfiles for building embedded software distributions
Mozilla Public License 2.0
154 stars 83 forks source link

build-yocto: Define envvars to avoid UTF8 error #256

Closed gmacario closed 6 years ago

gmacario commented 7 years ago

Starting with Yocto morty, you will get the following error when doing bitbake xxx using Docker image gmacario/build-yocto:

Please use a locale setting which supports utf-8

The issue was only partially resolved with PR https://github.com/gmacario/easy-build/pull/250

Additionally, the following environment variables must be set inside the build script

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8

See https://github.com/gmacario/my-agl-pipelines/issues/9 and https://github.com/gmacario/easy-build/issues/243

We should define those envvars directly inside the Docker image to avoid cluttering the build scripts.