Package: pbuilder Version: 0.199+nmu3 Severity: wishlist Cross building an i386 package on amd64 in general works fine but in the case of linux-kernel-di-i386-2.6, which is Arch: i386 only, it is failing because the check in /usr/lib/pbuilder/pbuilder-buildpackage-funcs:checkarchitecture() fails: "E: amd64 not in arch list or does not match any arch wildcards: i386"
This is because "dpkg-architecture -qDEB_HOST_ARCH" has returned amd64, presumably because it runs in the host environment and not the chroot environment. I can workaround this by adding "export DEB_HOST_ARCH=i386" to ~/.pbuilderrc but I cannot find e.g. an environment variable which would allow me to force the correct arch automatically depending on the pbuilder command line (in particular --architecture). Passing such a thing through would be quite useful. Actually, just as I wrote the above it occurred that I can use: export DEB_HOST_ARCH=$(uname -m | sed -e s/i.86/i386/ -e s/x86_64/amd64/) in .pbuilderrc, since I use linux32 to invoke cross builds. Although this works it would be nice if pbuilder took care of it automatically. I suppose this related to #363088 but I didn't see this specific issue discussed there so I've filed it separately. BTW, I actually use cowbuilder but I tried pbuilder too and I think they are equivalent in this matter. Thanks, Ian. -- System Information: Debian Release: wheezy/sid APT prefers oldstable APT policy: (500, 'oldstable'), (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-xen-amd64 (SMP w/4 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages pbuilder depends on: ii cdebconf [debconf-2.0] 0.155 Debian Configuration Management Sy ii cdebootstrap 0.5.7 Bootstrap a Debian system ii coreutils 8.5-1 GNU core utilities ii debconf [debconf-2.0] 1.5.38 Debian configuration management sy ii debianutils 3.4.4 Miscellaneous utilities specific t ii debootstrap 1.0.30 Bootstrap a basic Debian system ii wget 1.12-3.1 retrieves files from the web Versions of packages pbuilder recommends: ii devscripts 2.10.72 scripts to make the life of a Debi ii fakeroot 1.15.1-1 tool for simulating superuser priv ii sudo 1.7.4p6-1 Provide limited super user privile Versions of packages pbuilder suggests: ii cowdancer 0.62+nmu2 Copy-on-write directory tree utili pn gdebi-core <none> (no description available) pn pbuilder-uml <none> (no description available) -- Configuration Files: /etc/pbuilderrc changed: BASETGZ=/var/cache/pbuilder/base.tgz BUILDPLACE=/var/cache/pbuilder/build/ MIRRORSITE=http://hopkins/debian/ USEPROC=yes USEDEVPTS=yes USEDEVFS=no BUILDRESULT=/var/cache/pbuilder/result/ COMPONENTS="main" APTCACHE="/var/cache/pbuilder/aptcache/" APTCACHEHARDLINK="yes" REMOVEPACKAGES="lilo" HOOKDIR="" export DEBIAN_FRONTEND="noninteractive" DEBEMAIL="" BUILDSOURCEROOTCMD="fakeroot" PBUILDERROOTCMD="sudo" PBUILDERSATISFYDEPENDSCMD="/usr/lib/pbuilder/pbuilder-satisfydepends" PDEBUILD_PBUILDER=cowbuilder DEBBUILDOPTS="" APTCONFDIR="" 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="cdebootstrap" PKGNAME_LOGFILE_EXTENTION="_$(dpkg --print-architecture).build" PKGNAME_LOGFILE="" -- debconf information: pbuilder/nomirror: pbuilder/mirrorsite: http://cdn.debian.net/debian pbuilder/rewrite: false -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org