Package: cowbuilder Version: 0.61 Severity: normal My ~/.pbuilderrc has this in it:
if [ -n "${DIST}" ]; then BASETGZ="`dirname $BASETGZ`/$DIST-base.tgz" DISTRIBUTION="$DIST" BUILDRESULT="/var/cache/pbuilder/$DIST/result/" APTCACHE="/var/cache/pbuilder/$DIST/aptcache/" fi (which comes from http://pbuilder.alioth.debian.org/#DISTRIBUTIONSWITCH) The cowbuilder(8) man page says that cowbuilder reads ~/.pbuilderrc, but when I do the following, it is clearly not used: pond% DIST=lenny sudo cowbuilder --update -> Copying COW directory forking: rm -rf /var/cache/pbuilder/build//cow.28818 forking: cp -al /var/cache/pbuilder/base.cow /var/cache/pbuilder/build//cow.28818 cp: cannot stat `/var/cache/pbuilder/base.cow': No such file or directory Failed cowcopy. and when I do a --create, its clear that the --distribution is overridden somehow and created as sid: pond% sudo DIST=lenny cowbuilder --create --debug -> Invoking pbuilder forking: pbuilder create --debug --buildplace /var/cache/pbuilder/base.cow --mirror http://debian.csail.mit.edu/debian/ --distribution sid --no-targz --extrapackages cowdancer ++ shift ++ '[' -n --buildplace ']' ++ case "$1" in ++ '[' '!' -d /var/cache/pbuilder/base.cow ']' +++ readlink -f /var/cache/pbuilder/base.cow ++ BUILDPLACE=/var/cache/pbuilder/base.cow ++ shift ++ shift ++ '[' -n --mirror ']' ++ case "$1" in ++ MIRRORSITE=http://debian.csail.mit.edu/debian/ ++ OVERRIDE_APTLINES_WARN=yes ++ shift ++ shift ++ '[' -n --distribution ']' ++ case "$1" in ++ DISTRIBUTION=sid ++ OVERRIDE_APTLINES_WARN=yes ++ shift ++ shift ++ '[' -n --no-targz ']' ++ case "$1" in ++ log 'I: Running in no-targz mode' ++ case "$*" in ++ echo 'I: Running in no-targz mode' I: Running in no-targz mode ++ INTERNAL_BUILD_UML=yes ++ shift ++ '[' -n --extrapackages ']' ++ case "$1" in ++ EXTRAPACKAGES=cowdancer ++ shift ++ shift ++ '[' -n '' ']' ++ BUILDPLACE=/var/cache/pbuilder/base.cow ++ BASEBUILDPLACE=/var/cache/pbuilder/base.cow If I pass the --configfile option to point directly at my ~/.pbuilderrc, it does start to use it, but then the options get overridden. The BASETGZ gets set to the right place, the DISTRIBUTION gets set to the right one, the BUILDRESULT gets set to the right one, but then they are reset later in the process to be the wrong ones: pond% sudo DIST=lenny cowbuilder --create --debug --configfile /home/micah/.pbuilderrc -> Invoking pbuilder forking: pbuilder create --debug --configfile /home/micah/.pbuilderrc --buildplace /var/cache/pbuilder/base.cow --mirror http://debian.csail.mit.edu/debian/ --distribution sid --no-targz --extrapackages cowdancer ++ shift ++ '[' -n --configfile ']' ++ case "$1" in ++ '[' '!' -f /home/micah/.pbuilderrc ']' ++ . /home/micah/.pbuilderrc +++ '[' -n lenny ']' ++++ dirname /var/cache/pbuilder/lenny-base.tgz +++ BASETGZ=/var/cache/pbuilder/lenny-base.tgz +++ DISTRIBUTION=lenny +++ BUILDRESULT=/var/cache/pbuilder/lenny/result/ +++ APTCACHE=/var/cache/pbuilder/lenny/aptcache/ ++ extra_configfile[${#extra_configfi...@]}]=/home/micah/.pbuilderrc ++ shift ++ shift ++ '[' -n --buildplace ']' ++ case "$1" in ++ '[' '!' -d /var/cache/pbuilder/base.cow ']' +++ readlink -f /var/cache/pbuilder/base.cow ++ BUILDPLACE=/var/cache/pbuilder/base.cow ++ shift ++ shift ++ '[' -n --mirror ']' ++ case "$1" in ++ MIRRORSITE=http://debian.csail.mit.edu/debian/ ++ OVERRIDE_APTLINES_WARN=yes ++ shift ++ shift ++ '[' -n --distribution ']' ++ case "$1" in ++ DISTRIBUTION=sid ++ OVERRIDE_APTLINES_WARN=yes ++ shift ++ shift ++ '[' -n --no-targz ']' ++ case "$1" in ++ log 'I: Running in no-targz mode' ++ case "$*" in ++ echo 'I: Running in no-targz mode' I: Running in no-targz mode ++ INTERNAL_BUILD_UML=yes ++ shift ++ '[' -n --extrapackages ']' ++ case "$1" in ++ EXTRAPACKAGES=cowdancer ++ shift ++ shift ++ '[' -n '' ']' ++ BUILDPLACE=/var/cache/pbuilder/base.cow ++ BASEBUILDPLACE=/var/cache/pbuilder/base.cow ++ '[' yes '!=' yes -a no '!=' yes ']' ++ '[' -z '' ']' ++ CHROOTEXEC='chroot /var/cache/pbuilder/base.cow ' ++ '[' sid = experimental ']' ++ EXPERIMENTAL= Notice in the above that the DISTRIBUTION was set to lenny, but now it is set to sid, and the other environment variables that were previously set have been overridden. thanks for your work on these utilities! micah -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.31-1-vserver-686 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages cowbuilder depends on: ii cowdancer 0.61 Copy-on-write directory tree utili ii libc6 2.10.2-5 Embedded GNU C Library: Shared lib ii pbuilder 0.196 personal package builder for Debia cowbuilder recommends no packages. cowbuilder suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org