[Pbuilder-maint] Bug#376404: locale settings within pbuilder sessions

Andreas Beckmann debian at abeckmann.de
Sun Jul 2 19:13:10 UTC 2006


Package: pbuilder
Version: 0.155
Severity: wishlist

Hi,

I'd like pbuilder to run commands in cleaned locale settings (e.g.
LC_ALL=POSIX) in the chroot environment, because
- in a minimal and clean build environment no locales (besides the
  default) are available
- some programs (e.g. perl) complain about missing locales

My locale settings are the following:
LANG=
LC_CTYPE=en_US.UTF-8
LC_TIME=en_DK.UTF-8
LC_COLLATE=POSIX
LC_ALL=

and I've seen the following warnings while using pbuilder:
...
dh_installdebconf
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_COLLATE = "POSIX",
        LC_TIME = "en_DK.UTF-8",
        LANG = (unset)
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
...

I've tried setting 'export LC_ALL=POSIX' in my .pbuilderrc, but this
made no difference (while 'export debian_chroot="pbuild$$"' works well).

Testing with 'pbuilder login' or 'pbuilder execute -- /usr/bin/locale'
shows the following settings:
LANG=C
LC_ALL=C

A fix grep shows settings of LC_ALL=C in pbuilder-buildpackage and
pbuilder-modules. Probably this needs to be done at more places.


Andreas

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (300, 'unstable'), (30, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-k7
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages pbuilder depends on:
ii  cdebootstrap                  0.3.11     Bootstrap a Debian system
ii  coreutils                     5.96-3     The GNU core utilities
ii  debianutils                   2.16.1     Miscellaneous utilities specific t
ii  debootstrap                   0.3.3      Bootstrap a basic Debian system
ii  gcc                           4:4.0.3-4  The GNU C compiler
ii  wget                          1.10.2-1   retrieves files from the web

Versions of packages pbuilder recommends:
ii  devscripts                    2.9.20     Scripts to make the life of a Debi
ii  fakeroot                      1.5.8      Gives a fake root environment
ii  sudo                          1.6.8p12-4 Provide limited super user privile

-- no debconf information




More information about the Pbuilder-maint mailing list