I don't think pbuilder really should support such complex .pbuilderrc. although it happens to work.
At Thu, 18 Feb 2010 18:12:44 +0545, Ritesh Raj Sarraf wrote: > > # > DEBEMAIL="Ritesh Raj Sarraf <r...@researchut.com>" > PBUILDERROOTCMD=sudo > DEBOOTSTRAPOPTS[0]='--variant=buildd' > PKGNAME_LOGFILE=yes > BUILDSOURCEROOTCMD=fakeroot > BUILDUSERID=1234 > PDEBUILD_PBUILDER=cowbuilder > APTCACHE=/var/cache/apt/archives > COMPONENTS="main contrib non-free" > #REMOVEPACKAGES="debian-archive-keyring, gpgv, gnupg" > > > # Codenames for Debian suites according to their alias. Update these when > # needed. > UNSTABLE_CODENAME="sid" > TESTING_CODENAME="squeeze" > STABLE_CODENAME="lenny" > STABLE_BACKPORTS_SUITE="$STABLE_CODENAME-backports" > > # List of Debian suites. > DEBIAN_SUITES=($UNSTABLE_CODENAME $TESTING_CODENAME $STABLE_CODENAME > "unstable" "testing" "stable") > > # List of Ubuntu suites. Update these when needed. > UBUNTU_SUITES=("lucid" "karmic" "jaunty" "intrepid" "hardy") > > # Mirrors to use. Update these to your preferred mirror. > DEBIAN_MIRROR="ftp.debian.org" > UBUNTU_MIRROR="mirrors.kernel.org" > > # Optionally use the changelog of a package to determine the suite to use if > # none set. > if [ -z "${DIST}" ] && [ -r "debian/changelog" ]; then > DIST=$(dpkg-parsechangelog | awk '/^Distribution: / {print $2}') > # Use the unstable suite for certain suite values. > if $(echo "experimental UNRELEASED" | grep -q $DIST); then > DIST="$UNSTABLE_CODENAME" > fi > fi > > # Optionally set a default distribution if none is used. Note that you can set > # your own default (i.e. ${DIST:="unstable"}). > : ${DIST:="$(lsb_release --short --codename)"} > > # Optionally change Debian release states in $DIST to their names. > case "$DIST" in > unstable) > DIST="$UNSTABLE_CODENAME" > ;; > testing) > DIST="$TESTING_CODENAME" > ;; > stable) > DIST="$STABLE_CODENAME" > ;; > esac > > # Optionally set the architecture to the host architecture if none set. Note > # that you can set your own default (i.e. ${ARCH:="i386"}). > : ${ARCH:="$(dpkg --print-architecture)"} > NAME="$DIST" > if [ -n "${ARCH}" ]; then > NAME="$NAME-$ARCH" > DEBOOTSTRAPOPTS=("--arch" "$ARCH" "${debootstrapop...@]}") > fi > > set -vx > #BASETGZ="/var/cache/pbuilder/$NAME-base.tgz" > # Optionally, set BASEPATH (and not BASETGZ) if using cowbuilder > BASEPATH="/var/cache/pbuilder/$NAME-base.cow/" > DISTRIBUTION="$DIST" > BUILDRESULT="/var/cache/pbuilder/$NAME/result/" > #APTCACHE="/var/cache/pbuilder/$NAME/aptcache/" > BUILDPLACE="/tmp/cowbuilder/build/" > > if $(echo ${debian_suit...@]} | grep -q $DIST); then > # Debian configuration > MIRRORSITE="http://$DEBIAN_MIRROR/debian/" > COMPONENTS="main contrib non-free" > # This is for enabling backports for the Debian stable suite. > if $(echo "$STABLE_CODENAME stable" | grep -q $DIST); then > EXTRAPACKAGES="$EXTRAPACKAGES debian-backports-keyring" > OTHERMIRROR="$OTHERMIRROR | deb http://www.backports.org/debian > $STABLE_BACKPORTS_SUITE $COMPONENTS" > fi > set +vx > > elif $(echo ${ubuntu_suit...@]} | grep -q $DIST); then > # Ubuntu configuration > MIRRORSITE="http://$UBUNTU_MIRROR/ubuntu/" > COMPONENTS="main restricted universe multiverse" > else > echo "Unknown distribution: $DIST" > exit 1 > fi -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org