[Bug 1947424] Re: Cannot set pbuilder build locale
Rob Savoury
1947424 at bugs.launchpad.net
Mon Oct 18 02:51:18 UTC 2021
OK, so it DOESN'T work for me when using a custom configfile. Putting
"export LC_ALL=C.UTF-8" into that custom config file and starting the
pbuilder build results in the same "LC_ALL=C" still being set, although
other LC_* env vars are now set to "C.UTF-8". So although it might be
INTENDED to work by using the custom configfile, I'm still seeing
LC_ALL=C regardless.
Also, the point is not that a "policy-conforming" package doesn't build,
it's that in the real world various real builds fail due the incorrect
locale. So in a "perfect" world then perhaps it wouldn't matter that
pbuilder is using a DIFFERENT locale than all official sbuild Debian and
Ubuntu builds. But in the actual real world it does matter, and
therefore I still consider it a serious bug and limitation.
In any case, thank you all for your feedback, and have a nice day!
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1947424
Title:
Cannot set pbuilder build locale
Status in pbuilder package in Ubuntu:
New
Bug description:
The build locale cannot be set with pbuilder and always defaults to
"C" (for both LANG and LC_ALL on Launchpad builds) rather than to
"C.UTF-8" as used by sbuild for all official Debian and Ubuntu builds.
This causes FTBFS of various packages that depend on the correct
locale being set on the build system, often noticeable with the test
suites of Python packages for instance.
The attached patch changes only five lines of code (pbuilder-
buildpackage and pbuilderrc) to allow easy setting of the pbuilder
build locale. Based on local testing the patch works as intended, in
that packages depending on the correct locale which FTBFS using
unpatched pbuilder (yet build successfully with sbuild on Launchpad)
now also build successfully with the local patched pbuilder. Please
consider applying the patch.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pbuilder/+bug/1947424/+subscriptions
More information about the Ubuntu-sponsors
mailing list