I don't really want to rely on correct ARCH configuration here. I was thinking along the lines of running something inside the chroot as part of build process, and passing the output back to pdebuild, and using that to get the correct value.
However, that's a bit of work to implement, so I have so far deferred doing this. At Mon, 12 Oct 2009 18:48:19 +0200, Marco Schmalz wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > A expensive solution would be to use cowbuilder's --execute command to > list the architecture inside the chroot > > ARCHITECTURE=$(${PBUILDERROOTCMD} ${PDEBUILD_PBUILDER} --execute \ > /usr/bin/dpkg-architecture $@ 2> /dev/null | \ > grep DEB_HOST_ARCH= | \ > sed 's/DEB_HOST_ARCH=//') > > instead of doing > > ARCHITECTURE=$(dpkg-architecture -qDEB_HOST_ARCH) > > A lighter solution could be to use ARCH environment variable which gets > "unofficially" parsed by cowbuilder (see parameter.c). > > if [ -z "$ARCH" ] ; then > ARCHITECTURE=$(dpkg-architecture -qDEB_HOST_ARCH) > else > ARCHITECTURE="$ARCH" > fi > > But it is difficult to say which one is less painful, though ... > > Cheers > Marco > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iEYEARECAAYFAkrTXc0ACgkQf+jKN0MLAk4SfgCg0Orb+gq96MUQJ1FW0CEGKWdc > KfEAnR+xyn9nNbipZmwcEkLgYoh0yf4I > =zvcW > -----END PGP SIGNATURE----- > > > > _______________________________________________ > Pbuilder-maint mailing list > pbuilder-ma...@lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/pbuilder-maint > -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org