[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Exporting ARCH to pbuilder through pdebuild?



2009/6/12 Boyd Stephen Smith Jr. <bss@iguanasuicide.net>:
> In <[🔎] 20090612042628.GK9408@penguin.codegnome.org>, Todd A. Jacobs wrote:
>>Why is pbuilder still using /var/cache/pbuilder/sid-amd64-base.tgz
>>instead of the correct /var/cache/pbuilder/sid-i386-base.tgz in this
>>instance?
>
> This is a question better suited for debian-devel or debian-mentors.
> --
> Boyd Stephen Smith Jr.                   ,= ,-_-. =.
> bss@iguanasuicide.net                   ((_/)o o(\_))
> ICQ: 514984 YM/AIM: DaTwinkDaddy         `-'(. .)`-'
> http://iguanasuicide.net/                    \_/
>
>

I use the following on a 64 bit box to build 32 and 64bit packages in
a pbuilder chroot

$ls -l /usr/bin/pbuilder-lenny-amd64
lrwxrwxrwx 1 root root 15 2008-03-17 12:02
/usr/bin/pbuilder-lenny-amd64 -> pbuilder-custom

$cat /usr/bin/pbuilder-custom
#!/bin/sh
# script from Jamin W. Collins  BTS: #255165
# name this script 'pbuilder-woody', 'pbuilder-sid', 'pbuilder-sarge',
'pbuilder-experimental' etc.

OPERATION=$1
DISTRIBUTION=`basename $0 | cut -f2 -d '-'`
ARCH=`basename $0 | cut -f3 -d '-'`
PROCEED=false
BASE_DIR="/var/cache/pbuilder"
case $OPERATION in
   create|update|build|clean|login|execute )
      PROCEED=true
      ;;
esac
if ( $PROCEED == true ) then
   shift
   sudo linux32 pbuilder $OPERATION \
      --debootstrapopts --arch --debootstrapopts $ARCH \
      --basetgz $BASE_DIR/$DISTRIBUTION-$ARCH-base.tgz \
      --distribution $DISTRIBUTION \
      --buildresult $BASE_DIR/result $@
else
   echo "Invalid command..."
   echo "Valid commands are:"
   echo "   create"
   echo "   update"
   echo "   build"
   echo "   clean"
   echo "   login"
   echo "   execute"
   exit 1
fi


Anton

-- 
Anton Piatek
email: anton@piatek.co.uk	
blog/photos:			http://www.strangeparty.com
pgp: [0xB307BAEF]	(http://www.strangeparty.com/anton.asc)
fingerprint: 116A 5F01 1E5F 1ADE 78C6 EDB3 B9B6 E622 B307 BAEF

No trees were destroyed in the sending of this message, however, a
significant number of electrons were terribly inconvenienced.


Reply to: