[Pbuilder-maint] Bug#410575: pbuilder: better document --debootstrapopts arguments with spaces

Filippo Giunchedi filippo at debian.org
Sun Feb 11 20:32:34 UTC 2007

Package: pbuilder
Version: 0.163
Severity: wishlist

passing arguments to --debootstrapopts with spaces can be tricky, the
solution is to use multiple --debootstrapopts, i.e.:

# pbuilder create --debbootstrapopts "-a i386" --debug --basetgz sid32.tar.gz --mirror http://ftp.it.debian.org/debian

+ cdebootstrap --variant=buildd '-a i386' sid .  http://ftp.it.debian.org/debian

this doesn't work of course, a possibile solution would be to set IFS='
' just before debootstrap invocation so the correct expansion is used,
and restore it afterwards.  Specifying multiple times --debootstrapopts
indeed works as expected:

# pbuilder create --debootstrapopts -a --debootstrapopts i386 --debug --basetgz sid32.tar.gz --mirror http://ftp.it.debian.org/debian
+ cdebootstrap --variant=buildd -a i386 sid . http://ftp.it.debian.org/debian

either way, I think this needs to be documented in the man page :)


-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (600, 'unstable'), (1, 'experimental')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages pbuilder depends on:
ii  cdebootstrap        0.3.15               Bootstrap a Debian system
ii  coreutils           6.0-1                The GNU core utilities
ii  debianutils         2.17.5               Miscellaneous utilities specific t
ii  debootstrap              Bootstrap a basic Debian system
ii  gcc                 4:4.1.1-15           The GNU C compiler
ii  wget                1.10.2+1.11.alpha1-1 retrieves files from the web

Versions of packages pbuilder recommends:
ii  cowdancer                     0.25       Copy-on-write directory tree utili
ii  devscripts                    2.9.27     Scripts to make the life of a Debi
ii  fakeroot                      1.5.12     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