Re: locale available in mock build for python package %check

2020-12-13 Thread Barry Scott
> On 13 Dec 2020, at 16:32, Tom Hughes wrote: > > On 13/12/2020 16:26, Barry Scott wrote: > >> Is my way forward to add en_US.UTF-8 locale? >> What do I add to the spec file to do that? > > Adding a BuildRequire on glibc-langpack-en will probably do it. That works great. Next time pysvn is

Re: locale available in mock build for python package %check

2020-12-13 Thread Tom Hughes via devel
On 13/12/2020 16:26, Barry Scott wrote: Is my way forward to add en_US.UTF-8 locale? What do I add to the spec file to do that? Adding a BuildRequire on glibc-langpack-en will probably do it. The default build root only has glibc-minimal-langpack which just gives you the basic C locale. Tom

locale available in mock build for python package %check

2020-12-13 Thread Barry Scott
I'm looking at getting the %check of the pysvn package working. What I'm seeing is the tests fail because of an issue with python3.9 and locales. The test code uses locale.getdefaultlocale() to find out what can be set and uses locale.setlocale() to init the locale. After mock fails to run