#1068615 pbuilder will overwrite LANG/LC_ALL if they are set via config file

Package:
src:pbuilder
Source:
src:pbuilder
Submitter:
Sergio Durigan Junior
Date:
2024-04-08 14:51:03 UTC
Severity:
normal
Tags:
#1068615#5
Date:
2024-04-08 03:22:38 UTC
From:
To:
Hi,

Charles from the Debian curl team noticed that curl and trurl have been
failing to build in the reproducible-builds environment:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/curl.html

He also found that the problem happens because the build environment
doesn't seem to have UTF-8 support, which is required by the upstream
testsuite of both packages.  The $LANG environment variable is set to
"C", as can be checked in the logs:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/curl.html

#1068615#10
Date:
2024-04-08 03:53:30 UTC
From:
To:
Sergio Durigan Junior dixit:

Ouch, no.

IMHO, they ought to really be unset for sane build environments,
and if the thing to be built needs locales, it can set its own.

Passing environment variables, even “just” the locale, from the
outside into the build environment is a dark path.

bye,
//mirabilos

#1068615#15
Date:
2024-04-08 14:45:56 UTC
From:
To:
I'd be disappointed if this was accepted as is :-).

IIRC our buildds will set $LANG as C.UTF-8.  pbuilder should try to
stick to what the official infrastructure does.

Thanks,