multiple pbuilders

Martijn van Iersel amarillion at yahoo.com
Sun Jun 8 20:15:29 BST 2008


Hi

I'm trying to create multiple pbuilders, as described in
https://wiki.ubuntu.com/PbuilderHowto. I'm using the exact pbuilderrc
mentioned in the howto, but with intrepid added to the list of possible
values for DIST. It's not working. For some reason my .pbuilderrc is
ignored. For example, if I do

martijn at arlene:~$ DIST=blah sudo pbuilder create

I expect it to say "unknown distribution blah", but instead I get:

Distribution is hardy.
Building the build environment
 -> running debootstrap
/usr/sbin/debootstrap
I: Retrieving Release
I: Retrieving Packages
...

What am I doing wrong? This used to work before I upgraded to hardy. For
completeness, below is the .pbuilderrc I'm using.

thanks in advance,
Martijn

#BINDMOUNTS="/usr/local/src/archive"

# The distribution should be correct in your changelog file.
# Uncomment this line to use the one listed there:
#DIST=`dpkg-parsechangelog | awk '/^Distribution: / {print $2}'`

: ${DIST:=$(lsb_release --short --codename)}
: ${ARCH:=$(dpkg --print-architecture)}
NAME="$DIST-$ARCH"
DISTRIBUTION="$DIST"
DEBOOTSTRAPOPTS=("--arch" "$ARCH" "${DEBOOTSTRAPOPTS[@]}")
BASETGZ="`dirname $BASETGZ`/$NAME-base.tgz"
BUILDRESULT="/var/cache/pbuilder/$NAME/result/"
APTCACHE="/var/cache/pbuilder/$NAME/aptcache/"

case "$DIST" in
    intrepid|hardy|gutsy) # ubuntu specific
        MIRRORSITE="http://mirrors.kernel.org/ubuntu/"
        COMPONENTS="main restricted universe multiverse"
        ;;
    sid|lenny|etch) # debian specific
        MIRRORSITE="http://mirrors.kernel.org/debian/"
        COMPONENTS="main contrib non-free"
        ;;
    *)
        echo "Unknown distribution: $DIST"
        exit 1
        ;;
esac






More information about the Ubuntu-motu mailing list