Hi Pierre,
On Mon, Aug 21, 2006, Pierre Habouzit wrote:
> I sometimes need to use different chroots to build my packages (i386
> vs. amd64 or sid vs stable) and there is now way with cowbuilder to
> passe the --basepath cowbuilder wants to select the chroot, through
> pbuilderrc (or at least it's neither obvious nor documented).
Me too. Here's my current workaround to this limitation:
1) I have a ~/bin/my-cowbuilder with:
#!/bin/sh
set -e
if [ -z "$COWCONFIG" ]; then
COWCONFIG="$HOME/.pbuilderrc"
fi
. "$COWCONFIG"
nice -n 19 sudo /usr/sbin/cowbuilder "$@" --configfile $COWCONFIG --buildplace
"$BUILDPLACE/cow.$$" --basepath "$BASEPATHDIR/base.cow"
2) I have a ~/bin/my-pdebuild with:
#!/bin/sh
set -e
if [ -z "$COWCONFIG" ]; then
COWCONFIG="$HOME/.pbuilderrc"
fi
. "$COWCONFIG"
/usr/bin/pdebuild --configfile "$COWCONFIG" "$@" -- --buildplace
"$BUILDPLACE/cow.$$" --basepath "$BASEPATHDIR/base.cow" --pkgname-logfile
3) I have some aliases to ease usage of the above:
alias sbp-experimental='LC_ALL=C COWCONFIG=~/.pbuilder/experimental.pbuilderrc
nice -n 19 svn-buildpackage --svn-builder my-pdebuild'
Bye,
--
Loïc Minier <[EMAIL PROTECTED]>