Re: Exporting ARCH to pbuilder through pdebuild?
2009/6/12 Boyd Stephen Smith Jr. b...@iguanasuicide.net: In 20090612042628.gk9...@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. ,= ,-_-. =. b...@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: echocreate echoupdate echobuild echoclean echologin echoexecute exit 1 fi Anton -- Anton Piatek email: an...@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. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Exporting ARCH to pbuilder through pdebuild?
In 20090612042628.gk9...@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. ,= ,-_-. =. b...@iguanasuicide.net ((_/)o o(\_)) ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-' http://iguanasuicide.net/\_/ signature.asc Description: This is a digitally signed message part.
Exporting ARCH to pbuilder through pdebuild?
I have some configurations inside of my ~/.pbuilderrc that depend on the value of ARCH in the environment. However, if I call pbuilder through pdebuild, it doesn't seem to be picking up the ARCH environment variable. Currently, I'm calling it like so: export ARCH=i386 pdebuild --auto-debsign --buildresult /tmp/$(basename $PWD) \ --debsign-k 0xABCDEFGH but pbuilder doesn't pick it up here: : ${ARCH:=$(dpkg --print-architecture)} How can I ensure that pdebuild is passing on the right architecture to pbuilder? -- Oh, look: rocks! -- Doctor Who, Destiny of the Daleks -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Exporting ARCH to pbuilder through pdebuild?
Here is the complete .pbuilderrc: : ${ARCH:=$(dpkg --print-architecture)} EXTRAPACKAGES=$EXTRAPACKAGES fakeroot USEPROC=yes USEDEVPTS=yes USEDEVFS=no APTCACHEHARDLINK=yes REMOVEPACKAGES=lilo HOOKDIR= export DEBIAN_FRONTEND=noninteractive BUILDSOURCEROOTCMD=fakeroot PBUILDERROOTCMD=sudo DEBBUILDOPTS=-si -i BUILDUSERID=1234 BUILDUSERNAME=pbuilder BINDMOUNTS= DEBOOTSTRAPOPTS[0]='--variant=buildd' export PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin export SHELL=/bin/bash DEBOOTSTRAP=debootstrap PKGNAME_LOGFILE_EXTENTION=_$ARCH.build PKGNAME_LOGFILE=yes AUTO_DEBSIGN=yes UNSTABLE_CODENAME=sid TESTING_CODENAME=squeeze STABLE_CODENAME=lenny STABLE_BACKPORTS_SUITE=$STABLE_CODENAME-backports DEBIAN_SUITES=( $UNSTABLE_CODENAME $TESTING_CODENAME $STABLE_CODENAME unstable testing stable ) UBUNTU_SUITES=(jaunty intrepid hardy gutsy) DEBIAN_MIRROR=ftp.us.debian.org MULTIMEDIA_MIRROR=deb http://www.debian-multimedia.org sid main if [ -z ${DIST} ] [ -r debian/changelog ]; then DIST=$(dpkg-parsechangelog | awk '/^Distribution: / {print $2}') if $(echo experimental UNRELEASED | grep -q $DIST); then DIST=$UNSTABLE_CODENAME fi fi : ${DIST:=$(lsb_release --short --codename)} case $DIST in unstable) DIST=$UNSTABLE_CODENAME ;; testing) DIST=$TESTING_CODENAME ;; stable) DIST=$STABLE_CODENAME ;; esac NAME=$DIST if [ -n ${ARCH} ]; then NAME=$NAME-$ARCH DEBOOTSTRAPOPTS=(--arch $ARCH ${debootstrapop...@]}) fi BASETGZ=/var/cache/pbuilder/$NAME-base.tgz DISTRIBUTION=$DIST BUILDRESULT=/var/cache/pbuilder/$NAME/result/ APTCACHE=/var/cache/pbuilder/$NAME/aptcache/ BUILDPLACE=/var/cache/pbuilder/build/ if $(echo ${debian_suit...@]} | grep -q $DIST); then MIRRORSITE=http://$DEBIAN_MIRROR/debian/; COMPONENTS=main contrib non-free OTHERMIRROR=$OTHERMIRROR | $MULTIMEDIA_MIRROR EXTRAPACKAGES=$EXTRAPACKAGES debian-multimedia-keyring 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_suit...@]} | grep -q $DIST); then MIRRORSITE=http://$UBUNTU_MIRROR/ubuntu/; COMPONENTS=main restricted universe multiverse else echo Unknown distribution: $DIST exit 1 fi #echo $BASETGZ #exit Note that when the last two lines are uncommented, the basetgz is correctly reported based on the architecture (as defined by ARCH) as one of the following: - /var/cache/pbuilder/sid-amd64-base.tgz - /var/cache/pbuilder/sid-i386-base.tgz However, when called with: ARCH=i386 pdebuild --auto-debsign --buildresult /tmp/$(basename $PWD) pbuilder still attemps to use the amd64 tarball. I can only get around this by explicitly calling it with: -- --basetgz /var/cache/pbuilder/sid-i386-base.tgz appended to the end of the pdebuild command line. 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? -- Oh, look: rocks! -- Doctor Who, Destiny of the Daleks -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org