On 2018-11-28, Igor Gnatenko ignatenkobrain@fedoraproject.org wrote:
the removal of glibc-all-langpacks from the buildroot[0] is done. Standard buildroot has decreased from 445 to 237 megabytes in installed size ;)
That's nice, but Koji builders have not been reconfigured away from LANG=en_US.UTF-8 and that means that all builds run in C (not C.UTF-8) locale now and e.g. every Perl package build spits a warning like this:
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system.
-- Petr
* Petr Pisar ppisar@redhat.com [2018-12-03 11:24]:
On 2018-11-28, Igor Gnatenko ignatenkobrain@fedoraproject.org wrote:
the removal of glibc-all-langpacks from the buildroot[0] is done. Standard buildroot has decreased from 445 to 237 megabytes in installed size ;)
That's nice, but Koji builders have not been reconfigured away from LANG=en_US.UTF-8 and that means that all builds run in C (not C.UTF-8) locale now and e.g. every Perl package build spits a warning like this:
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system.
This is even causing some of my builds to fail because some cmake variables (CMAKE_SYSTEM_PROCESSOR below) end up containing a warning:
-- Found assembler: /usr/bin/clang CMAKE_SYSTEM_PROCESSOR: _bin_sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) x86_64 CMake Error at functions.cmake:7 (message): Only AMD64, ARM64 and ARM are supported Call Stack (most recent call first): CMakeLists.txt:175 (clr_unknown_arch)
What's the correct way to disable this "setlocale: LC_ALL: cannot change locale (en_US.UTF-8)" warning? What environment variables should I be (un)setting when building in koji? Or should I install a langpack instead?
Thanks, Omair
- Petr Pisar ppisar@redhat.com [2018-12-03 11:24]:
On 2018-11-28, Igor Gnatenko ignatenkobrain@fedoraproject.org wrote:
the removal of glibc-all-langpacks from the buildroot[0] is done. Standard buildroot has decreased from 445 to 237 megabytes in installed size ;)
That's nice, but Koji builders have not been reconfigured away from LANG=en_US.UTF-8 and that means that all builds run in C (not C.UTF-8) locale now and e.g. every Perl package build spits a warning like this:
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system.
This is even causing some of my builds to fail because some cmake variables (CMAKE_SYSTEM_PROCESSOR below) end up containing a warning:
-- Found assembler: /usr/bin/clang CMAKE_SYSTEM_PROCESSOR: _bin_sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) x86_64 CMake Error at functions.cmake:7 (message): Only AMD64, ARM64 and ARM are supported Call Stack (most recent call first): CMakeLists.txt:175 (clr_unknown_arch)
What's the correct way to disable this "setlocale: LC_ALL: cannot change locale (en_US.UTF-8)" warning? What environment variables should I be (un)setting when building in koji? Or should I install a langpack instead?
I suspect the proper fix will be in the cmake-rpm-macros package so that it's fixed in a central location for all cmake consumers.
Peter
On Mon, Dec 03, 2018 at 04:21:12PM +0000, Petr Pisar wrote:
On 2018-11-28, Igor Gnatenko ignatenkobrain@fedoraproject.org wrote:
the removal of glibc-all-langpacks from the buildroot[0] is done. Standard buildroot has decreased from 445 to 237 megabytes in installed size ;)
That's nice, but Koji builders have not been reconfigured away from LANG=en_US.UTF-8 and that means that all builds run in C (not C.UTF-8) locale now and e.g. every Perl package build spits a warning like this:
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system.
https://pagure.io/releng/issue/7962
Zbyszek
devel@lists.stg.fedoraproject.org