Public bug reported: 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. ** Affects: pbuilder (Ubuntu) Importance: Undecided Status: New ** Patch added: "allow-setting-pbuilder-build-locale.patch" https://bugs.launchpad.net/bugs/1947424/+attachment/5533328/+files/allow-setting-pbuilder-build-locale.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1947424 Title: Cannot set pbuilder build locale To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/pbuilder/+bug/1947424/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs