[OE-core] [PATCH 1/4] scripts/postinst-intercepts: add update_info_dir

Burton, Ross ross.burton at intel.com
Wed Sep 24 14:52:02 UTC 2014


On 24 September 2014 12:38, Hongxu Jia <hongxu.jia at windriver.com> wrote:
> +# since user's environment is taken over into root account when sudo-ing
> +# we don't want that one's user LANGUAGE setting changes the messages in
> +# the dir file. Unset LANGUAGE and reload /etc/environment to get
> +# the system wide settings. See bug #536476
> +unset LANGUAGE
> +unset LANG
> +if [ -r /etc/environment ] ; then
> +  . /etc/environment
> +fi
> +if [ -r /etc/default/locale ] ; then
> +  . /etc/default/locale
> +fi

Isn't this Debian-specific, and also pushing the build host's
environment settings onto the target?  We should use whatever default
locale is configured for the image, or easier just force it to C.

Ross



More information about the Openembedded-core mailing list