Comment 8 for bug 1947424

Revision history for this message
Mattia Rizzolo (mapreri) wrote : Re: [Bug 1947424] Re: Cannot set pbuilder build locale

I'm quite sure setting it in a conffile loaded by --configfile works. It
doesn't in the standard /etc/pbuilderrc and .pbuilderrc.

On Sun, 17 Oct 2021, 7:51 pm Jessica Clarke, <email address hidden>
wrote:

> And re being "a serious limitation", I agree it's less than ideal, but
> it should not be an issue for any policy-conforming package, for which
> not building under the non-UTF-8 C locale is RC-buggy.
>
> --
> You received this bug notification because you are subscribed to
> pbuilder in Ubuntu.
> Matching subscriptions: pbuilder
> 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
>
> Launchpad-Notification-Type: bug
> Launchpad-Bug: distribution=ubuntu; sourcepackage=pbuilder;
> component=universe; status=New; importance=Wishlist; assignee=None;
> Launchpad-Bug-Tags: patch
> Launchpad-Bug-Information-Type: Public
> Launchpad-Bug-Private: no
> Launchpad-Bug-Security-Vulnerability: no
> Launchpad-Bug-Commenters: crichton jrtc27 mapreri savoury1
> Launchpad-Bug-Reporter: Rob Savoury (savoury1)
> Launchpad-Bug-Modifier: Jessica Clarke (jrtc27)
> Launchpad-Message-Rationale: Subscriber (pbuilder in Ubuntu)
> Launchpad-Message-For: mapreri
> Launchpad-Subscription: pbuilder
>
>