[Bug 1947424] Re: Cannot set pbuilder build locale

Jessica Clarke 1947424 at bugs.launchpad.net
Sat Oct 16 00:52:54 UTC 2021


I don't know about Ubuntu, but FTBFS under a common locale, which would
include C, is regarded as a release-critical bug, so there is no
"correct" locale, just the one that happens to be standardised across
the Debian and Ubuntu buildds (otherwise, would "FTBFS in pbuilder" be a
bug in pbuilder? because that's not the "correct" chroot-based build
tool).

I don't know if this is the right way to fix it though. I feel like a
more general bash associative array in order to set arbitrary
environment variables might be the better way to do it, rather than
specifically for LANG and LC_ALL.

We probably also should just change the locale in pbuilder-buildpackage
to C.UTF-8; we might have some unicode-trashing bugs lurking in pbuilder
itself otherwise.

-- 
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