Hi.
Help me with simple question please.
How to change the locale for the output log?
I need C or English, but it show in russian with 'LANG': 'ru_RU.UTF-8'
For example:
kojifiles/packages/boost1.51.0/1.51.0/3.el6/data/logs/x86_64/build.log
Mock Version: 1.1.32
Mock Version: 1.1.32
ENTER do(['bash', '--login', '-c', 'rpmbuild -bs --target x86_64
--nodeps builddir/build/SPECS/boost.spec'], False,
'/var/lib/mock/opensource-rhel63-build-173-332/root/', None, 86400,
True, False, 498, 499, None, False, {'LANG': 'ru_RU.UTF-8', 'TERM':
'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND':
'echo -n "<mock-chroot>"', 'HOME': '/builddir', 'PATH':
'/usr/bin:/bin:/usr/sbin:/sbin'},
logger=<mockbuild.trace_decorator.getLog object at 0x245b310>)
Executing command: ['bash', '--login', '-c', 'rpmbuild -bs --target
x86_64 --nodeps builddir/build/SPECS/boost.spec'] with env {'LANG':
'ru_RU.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME':
'mock', 'PROMPT_COMMAND': 'echo -n "<mock-chroot>"', 'HOME':
'/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}
Платформы для сборки: x86_64
Сборка для платформы x86_64
Записан: /builddir/build/SRPMS/boost1.51.0-1.51.0-3.el6.src.rpm
Child return code was: 0
LEAVE do -->
ENTER do(['bash', '--login', '-c', 'rpmbuild -bb --target x86_64
--nodeps builddir/build/SPECS/boost.spec'], False,
'/var/lib/mock/opensource-rhel63-build-173-332/root/', None, 86400,
True, False, 498, 499, None, False, {'LANG': 'ru_RU.UTF-8', 'TERM':
'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND':
'echo -n "<mock-chroot>"', 'HOME': '/builddir', 'PATH':
'/usr/bin:/bin:/usr/sbin:/sbin'},
logger=<mockbuild.trace_decorator.getLog object at 0x245b310>)
Executing command: ['bash', '--login', '-c', 'rpmbuild -bb --target
x86_64 --nodeps builddir/build/SPECS/boost.spec'] with env {'LANG':
'ru_RU.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME':
'mock', 'PROMPT_COMMAND': 'echo -n "<mock-chroot>"', 'HOME':
'/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}
Платформы для сборки: x86_64
Сборка для платформы x86_64
Выполняется(%prep): /bin/sh -e /var/tmp/rpm-tmp.FgxPc4
+ umask 022
+ cd /builddir/build/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /builddir/build/BUILD
Thank you.
--
WBR,
Viacheslav Dubrovskyi