Re: perl: warning: Setting locale failed.

2019-01-08 Thread Ralf Corsepius

On 1/8/19 6:51 PM, Tim Landscheidt wrote:

Petr Šabata  wrote:


Adding
BuildRequires: glibc-all-langpacks
to all the *.specs obviously fixes this issue. However, I doubt this is
right, because I think these warnings originate from some rpm-internal
scripts and not from the packages.



I suspect you're running into the glibc-langpacks-all feature:
* 
https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
*
https://lists.fedoraproject.org/archives/list/de...@lists.fedoraproject.org/thread/VRIO4YQV2B2G2DUUYNRTVYQDFCMZSZGX/#B5SEICGIAETNXPRIE6VZT2VDKXRLJWSP



The locale shouldn't be set to en_US.utf8 is glibc-langpack-en is
not present.  Where does it come from?


Judging from $LANG=de_DE.UTF-8 in my mock, it gets copied
from the "host" environment.  And indeed,
mock/py/mockbuild/util.py has two instances of:

You seem to be right on the spot.

IMHO, mock should not propagate any "host" environment variables into 
its chroots. It should be using a fixed set of predefined settings, instead.



| env['LANG'] = os.environ.setdefault('LANG', 'C.UTF-8')

Adding:

| config_opts['environment']['LANG'] = 'C'


I guess, this should be 'C.UTF-8' instead of 'C'


to ~/.config/mock.cfg seems to solve that.


Unfortunately, this doesn't help with koji-builds:
c.f. e.g.
https://kojipkgs.fedoraproject.org//work/tasks/7946/31907946/build.log

Apparently, something sets LANG="en_US.UTF-8" in koji and mock bogusly 
propagates this into its chroots (Likely the servers are configured to 
use LANG='en_US.UTF-8')


Ralf
___
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/perl-devel@lists.fedoraproject.org


Re: perl: warning: Setting locale failed.

2019-01-08 Thread Tim Landscheidt
I wrote:

> […]

> Adding:

> | config_opts['environment']['LANG'] = 'C'

> to ~/.config/mock.cfg seems to solve that.

That was meant to say:

| config_opts['environment']['LANG'] = 'LANG=C.UTF-8'

Tim
___
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/perl-devel@lists.fedoraproject.org


Re: perl: warning: Setting locale failed.

2019-01-08 Thread Tim Landscheidt
Petr Šabata  wrote:

>> > Adding
>> > BuildRequires: glibc-all-langpacks
>> > to all the *.specs obviously fixes this issue. However, I doubt this is
>> > right, because I think these warnings originate from some rpm-internal
>> > scripts and not from the packages.

>> I suspect you're running into the glibc-langpacks-all feature:
>> * 
>> https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
>> *
>> https://lists.fedoraproject.org/archives/list/de...@lists.fedoraproject.org/thread/VRIO4YQV2B2G2DUUYNRTVYQDFCMZSZGX/#B5SEICGIAETNXPRIE6VZT2VDKXRLJWSP

> The locale shouldn't be set to en_US.utf8 is glibc-langpack-en is
> not present.  Where does it come from?

Judging from $LANG=de_DE.UTF-8 in my mock, it gets copied
from the "host" environment.  And indeed,
mock/py/mockbuild/util.py has two instances of:

| env['LANG'] = os.environ.setdefault('LANG', 'C.UTF-8')

Adding:

| config_opts['environment']['LANG'] = 'C'

to ~/.config/mock.cfg seems to solve that.

Tim
___
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/perl-devel@lists.fedoraproject.org


Re: perl: warning: Setting locale failed.

2019-01-08 Thread Petr Pisar
On Tue, Jan 08, 2019 at 06:02:48PM +0100, Petr Šabata wrote:
> On Tue, Jan 08, 2019 at 05:58:35PM +0100, Emmanuel Seyman wrote:
> > * Ralf Corsepius [08/01/2019 17:33] :
> > >
> > > Adding
> > > BuildRequires: glibc-all-langpacks
> > > to all the *.specs obviously fixes this issue. However, I doubt this is
> > > right, because I think these warnings originate from some rpm-internal
> > > scripts and not from the packages.
> > 
> > I suspect you're running into the glibc-langpacks-all feature:
> > * 
> > https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
> > * 
> > https://lists.fedoraproject.org/archives/list/de...@lists.fedoraproject.org/thread/VRIO4YQV2B2G2DUUYNRTVYQDFCMZSZGX/#B5SEICGIAETNXPRIE6VZT2VDKXRLJWSP
> 
> The locale shouldn't be set to en_US.utf8 is glibc-langpack-en is
> not present.  Where does it come from?
> 
Fedora infrastructure is trying very hard to find it out
.

-- Petr


signature.asc
Description: PGP signature
___
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/perl-devel@lists.fedoraproject.org


Re: perl: warning: Setting locale failed.

2019-01-08 Thread Petr Šabata
On Tue, Jan 08, 2019 at 05:58:35PM +0100, Emmanuel Seyman wrote:
> * Ralf Corsepius [08/01/2019 17:33] :
> >
> > Adding
> > BuildRequires: glibc-all-langpacks
> > to all the *.specs obviously fixes this issue. However, I doubt this is
> > right, because I think these warnings originate from some rpm-internal
> > scripts and not from the packages.
> 
> I suspect you're running into the glibc-langpacks-all feature:
> * 
> https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
> * 
> https://lists.fedoraproject.org/archives/list/de...@lists.fedoraproject.org/thread/VRIO4YQV2B2G2DUUYNRTVYQDFCMZSZGX/#B5SEICGIAETNXPRIE6VZT2VDKXRLJWSP

The locale shouldn't be set to en_US.utf8 is glibc-langpack-en is
not present.  Where does it come from?

P


signature.asc
Description: PGP signature
___
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/perl-devel@lists.fedoraproject.org


Re: perl: warning: Setting locale failed.

2019-01-08 Thread Emmanuel Seyman
* Ralf Corsepius [08/01/2019 17:33] :
>
> Adding
> BuildRequires: glibc-all-langpacks
> to all the *.specs obviously fixes this issue. However, I doubt this is
> right, because I think these warnings originate from some rpm-internal
> scripts and not from the packages.

I suspect you're running into the glibc-langpacks-all feature:
* 
https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
* 
https://lists.fedoraproject.org/archives/list/de...@lists.fedoraproject.org/thread/VRIO4YQV2B2G2DUUYNRTVYQDFCMZSZGX/#B5SEICGIAETNXPRIE6VZT2VDKXRLJWSP

Emmanuel
___
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/perl-devel@lists.fedoraproject.org


perl: warning: Setting locale failed.

2019-01-08 Thread Ralf Corsepius

Hi,

ATM, many (all?) of my perl packages raise several warnings of the kind 
below, when building them in mock:


...
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.
perl: warning: Falling back to the standard locale ("C").
...

Adding
BuildRequires: glibc-all-langpacks
to all the *.specs obviously fixes this issue. However, I doubt this is 
right, because I think these warnings originate from some rpm-internal 
scripts and not from the packages.


So, what is the official fix to this issue/build-system regression?

Ralf
___
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/perl-devel@lists.fedoraproject.org