On Mon, 2010-06-28 at 15:46 +0000, Lorenzo De Liso wrote:
> Are you trying to do that on a chroot?
>
> ** Changed in: pbuilder (Ubuntu)
> Importance: Undecided => Medium
>
attempting to create one yes ...
Here is the content in my /etc/pbuilderrc file
# 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=("maverick" "lucid" "karmic" "jaunty" "hardy")
# Mirrors to use. Update these to your preferred mirror.
DEBIAN_MIRROR="mirror.internode.on.net/pub/debian"
UBUNTU_MIRROR="mirror.internode.on.net/pub/ubuntu/ubuntu"
# 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" "${DEBOOTSTRAPOPTS[@]}")
fi
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="/var/cache/pbuilder/build/"
if $(echo ${DEBIAN_SUITES[@]} | 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
elif $(echo ${UBUNTU_SUITES[@]} | grep -q $DIST); then
# Ubuntu configuration
MIRRORSITE="http://$UBUNTU_MIRROR/ubuntu/"
COMPONENTS="main restricted universe multiverse"
else
echo "Unknown distribution: $DIST"
exit 1
fi
On Mon, 2010-06-28 at 15:46 +0000, Lorenzo De Liso wrote:
> Are you trying to do that on a chroot?
>
> ** Changed in: pbuilder (Ubuntu)
> Importance: Undecided => Medium
>
attempting to create one yes ...
Here is the content in my /etc/pbuilderrc file
# Codenames for Debian suites according to their alias. Update these CODENAME= "sid" CODENAME= "squeeze" CODENAME= "lenny" BACKPORTS_ SUITE=" $STABLE_ CODENAME- backports"
when
# needed.
UNSTABLE_
TESTING_
STABLE_
STABLE_
# List of Debian suites. SUITES= ($UNSTABLE_ CODENAME $TESTING_CODENAME $STABLE_CODENAME
DEBIAN_
"unstable" "testing" "stable")
# List of Ubuntu suites. Update these when needed. SUITES= ("maverick" "lucid" "karmic" "jaunty" "hardy")
UBUNTU_
# Mirrors to use. Update these to your preferred mirror. MIRROR= "mirror. internode. on.net/ pub/debian" MIRROR= "mirror. internode. on.net/ pub/ubuntu/ ubuntu"
DEBIAN_
UBUNTU_
# Optionally use the changelog of a package to determine the suite to $(dpkg- parsechangelog | awk '/^Distribution: / {print $2}')
DIST=" $UNSTABLE_ CODENAME"
use if
# none set.
if [ -z "${DIST}" ] && [ -r "debian/changelog" ]; then
DIST=
# Use the unstable suite for certain suite values.
if $(echo "experimental UNRELEASED" | grep -q $DIST); then
fi
fi
# Optionally set a default distribution if none is used. Note that you ="unstable" }). ="$(lsb_ release --short --codename)"}
can set
# your own default (i.e. ${DIST:
: ${DIST:
# Optionally change Debian release states in $DIST to their names.
DIST=" $UNSTABLE_ CODENAME"
DIST=" $TESTING_ CODENAME"
DIST=" $STABLE_ CODENAME"
case "$DIST" in
unstable)
;;
testing)
;;
stable)
;;
esac
# Optionally set the architecture to the host architecture if none set. architecture) "}
Note
# that you can set your own default (i.e. ${ARCH:="i386"}).
: ${ARCH:="$(dpkg --print-
NAME="$DIST" "$NAME- $ARCH" OPTS=(" --arch" "$ARCH" "${DEBOOTSTRAPO PTS[@]} ") "/var/cache/ pbuilder/ $NAME-base. tgz" "/var/cache/ pbuilder/ $NAME/base. cow/" "$DIST" "/var/cache/ pbuilder/ $NAME/result/ " "/var/cache/ pbuilder/ $NAME/aptcache/ " "/var/cache/ pbuilder/ build/"
if [ -n "${ARCH}" ]; then
NAME=
DEBOOTSTRAP
fi
BASETGZ=
# Optionally, set BASEPATH (and not BASETGZ) if using cowbuilder
# BASEPATH=
DISTRIBUTION=
BUILDRESULT=
APTCACHE=
BUILDPLACE=
if $(echo ${DEBIAN_SUITES[@]} | grep -q $DIST); then $DEBIAN_ MIRROR/ debian/" "main contrib non-free"
EXTRAPACKAGES= "$EXTRAPACKAGES debian- backports- keyring"
OTHERMIRROR= "$OTHERMIRROR | deb http:// www.backports. org/debian BACKPORTS_ SUITE $COMPONENTS" $UBUNTU_ MIRROR/ ubuntu/" "main restricted universe multiverse"
# Debian configuration
MIRRORSITE="http://
COMPONENTS=
# This is for enabling backports for the Debian stable suite.
if $(echo "$STABLE_CODENAME stable" | grep -q $DIST); then
$STABLE_
fi
elif $(echo ${UBUNTU_SUITES[@]} | grep -q $DIST); then
# Ubuntu configuration
MIRRORSITE="http://
COMPONENTS=
else
echo "Unknown distribution: $DIST"
exit 1
fi
# ccache pbuilder/ ccache pbuilder/ ccache DIR="/var/ cache/pbuilder/ ccache" usr/lib/ ccache: ${PATH} " ccache "${CCACHE_ DIR}"
sudo mkdir -p /var/cache/
sudo chmod a+w /var/cache/
export CCACHE_
export PATH="/
EXTRAPACKAGES=
BINDMOUNTS=
--
Scott Evans <email address hidden>