Bug#725063: pbuilder: --architecture flag not applied
Drew Parsons dixit: >Severity: normal user error >I'm trying to use pdebuild to build a deb package for the i386 >architecture on an amd64 system. I understand the --architecture flag >is intended to allow this. No, it just selects the architecture for creating the system. >But when I try >pdebuild --architecture i386 --debbuildopts -i.git --buildresult .. >pdebuild attempts to build an amd64 package regardless. You’ll need to do two things to succeed: ① use a pbuilderrc that allows you to switch between multiple base directories/tarballs (I use cowbuilder myself, so it’s directories for me), such as mine³ ② prepend “linux32” (from util-linux package) in front of the build command, so that “uname” inside the chroot will DTRT ③ https://www.mirbsd.org/cvs.cgi/contrib/hosted/tg/deb/pbuilderrc?rev=HEAD feel free to use it and/or build upon it, but make sure to change the lines starting with MIRROR to suit your network bye, //mirabilos -- [ Natureshadow über meine Tendenz, seine IRL-Aussprüche zu siggen ] (er) „Du bist besser als Twitter“ (ich) „Wieso? Weil ich das Wichtige herausfiltere?“ (er) „Und weil Du einfacher zu bedienen bist“ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#725063: pbuilder: --architecture flag not applied
Package: pbuilder Version: 0.215 Severity: normal I'm trying to use pdebuild to build a deb package for the i386 architecture on an amd64 system. I understand the --architecture flag is intended to allow this. But when I try pdebuild --architecture i386 --debbuildopts -i.git --buildresult .. pdebuild attempts to build an amd64 package regardless. amd64 gets invoked when installing build-depends: I: Obtaining the cached apt archive contents I: Installing the build-deps -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy Version: 0.invalid.0 Architecture: amd64 is found by dpkg-buildpackage dpkg-buildpackage: host architecture amd64 and is invoked also when building deb packages: dh_builddeb dpkg-deb: building package libopus0' in ../libopus0_1.1~beta-3.1_amd64.deb'. dpkg-deb: building package libopus-dev' in ../libopus-dev_1.1~beta-3.1_amd64.deb'. dpkg-deb: building package libopus-dbg' in ../libopus-dbg_1.1~beta-3.1_amd64.deb'. -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.10-3-amd64 (SMP w/8 CPU cores) Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages pbuilder depends on: ii coreutils 8.21-1 ii debconf [debconf-2.0] 1.5.51 ii debianutils4.4 ii debootstrap1.0.53 ii dpkg-dev 1.17.1 ii wget 1.14-4 Versions of packages pbuilder recommends: ii devscripts 2.13.4 ii fakeroot1.20-1 ii sudo1.8.7-4 Versions of packages pbuilder suggests: ii cowdancer 0.73 ii gdebi-core0.9.1 ii pbuilder-uml 0.215 -- debconf information: pbuilder/nomirror: pbuilder/rewrite: false pbuilder/mirrorsite: http://ftp.au.debian.org/debian -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org