Package: devscripts Version: 2.18.2 Severity: normal The setting of $targetarch is buggy or not properly documented: it works only with -a<arch> (without a space), but not with -a <arch> (with a space) or --host-arch <arch>, which are accepted by dpkg-buildpackage (and even documented as such). Either this limitation should be removed (but the debuild source seems to have other similar limitations, though I have not tried) or it should be properly documented (ditto for the other limitations).
Indeed I did the following and was wondering what I did wrong until I found the issue in the debuild source: I wanted to rebuild libtool for a foreign architecture by providing "-a i386", but the architecture was ignored by debuild, so that I got an error after dpkg-buildpackage completed: [...] dpkg-deb: building package 'libtool-bin' in '../libtool-bin_2.4.6-2.1_i386.deb'. dpkg-deb: building package 'libltdl7' in '../libltdl7_2.4.6-2.1_i386.deb'. dpkg-deb: building package 'libltdl7-dbgsym' in '../libltdl7-dbgsym_2.4.6-2.1_i386.deb'. dpkg-deb: building package 'libltdl-dev' in '../libltdl-dev_2.4.6-2.1_i386.deb'. dpkg-genbuildinfo --build=binary dpkg-genchanges --build=binary >../libtool_2.4.6-2.1_i386.changes dpkg-genchanges: info: binary-only upload (no source code included) dpkg-source -i --after-build libtool-2.4.6 dpkg-buildpackage: info: binary-only upload (no source included) debuild: fatal error at line 1039: can't open libtool_2.4.6-2.1_amd64.changes for reading: No such file or directory It should have been "libtool_2.4.6-2.1_i386.changes", not "libtool_2.4.6-2.1_amd64.changes". -- Package-specific info: --- /etc/devscripts.conf --- --- ~/.devscripts --- Not present -- System Information: Debian Release: buster/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.16.0-1-amd64 (SMP w/12 CPU cores) Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=POSIX (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages devscripts depends on: ii dpkg-dev 1.19.0.5 ii libc6 2.27-3 ii libfile-homedir-perl 1.002-1 ii perl 5.26.2-3 ii python3 3.6.5-3 ii sensible-utils 0.0.12 Versions of packages devscripts recommends: ii apt 1.6.1 ii at 3.1.20-5 ii curl 7.58.0-2 ii dctrl-tools 2.24-2+b1 ii debian-keyring 2018.03.24 ii dput 1.0.2 ii equivs 2.1.0 ii fakeroot 1.22-2 ii file 1:5.33-2 ii gnupg 2.2.5-1 ii libdistro-info-perl 0.18 ii libdpkg-perl 1.19.0.5 ii libencode-locale-perl 1.05-1 ii libgit-wrapper-perl 0.048-1 ii liblist-compare-perl 0.53-1 ii liblwp-protocol-https-perl 6.07-2 ii libsoap-lite-perl 1.26-1 ii libstring-shellquote-perl 1.04-1 ii liburi-perl 1.74-1 ii libwww-perl 6.33-1 ii licensecheck 3.0.31-2 ii lintian 2.5.86 ii man-db 2.8.3-2 ii patch 2.7.6-2 ii patchutils 0.3.4-2 ii python3-apt 1.6.0 ii python3-debian 0.1.32 ii python3-magic 2:0.4.15-1 ii python3-requests 2.18.4-2 ii python3-unidiff 0.5.4-1 ii python3-xdg 0.25-4 ii strace 4.21-1 ii unzip 6.0-21 ii wdiff 1.2.2-2+b1 ii wget 1.19.5-1 ii xz-utils 5.2.2-1.3 Versions of packages devscripts suggests: pn adequate <none> pn autopkgtest <none> pn bls-standalone <none> ii build-essential 12.5 pn check-all-the-things <none> pn cvs-buildpackage <none> pn devscripts-el <none> pn diffoscope <none> pn disorderfs <none> pn dose-extra <none> pn duck <none> pn faketime <none> ii gnuplot-qt [gnuplot] 5.2.2+dfsg1-2 ii gpgv 2.2.5-1 ii how-can-i-help 16 ii libauthen-sasl-perl 2.1600-1 ii libfile-desktopentry-perl 0.22-1 pn libnet-smtps-perl <none> pn libterm-size-perl <none> ii libtimedate-perl 2.3000-2 pn libyaml-syck-perl <none> ii mailutils [mailx] 1:3.4-1 pn mozilla-devscripts <none> ii mutt 1.9.5-2+b1 ii openssh-client [ssh-client] 1:7.7p1-2 pn piuparts <none> pn postgresql-client <none> ii quilt 0.63-8.2 pn ratt <none> pn reprotest <none> pn svn-buildpackage <none> ii w3m 0.5.3-36+b1 -- no debconf information