Package: sbuild
Version: 0.79.1-1
Severity: normal
Dear Maintainer,
I was trying to debug #963294 and therefore needed to build `arch: all` only. I
tried:
sbuild --arch-all --no-arch-any --dist sid --append-to-version=~0.rebuild0
-k <...> -m <...> <...>.dsc
However I got:
E: Neither architecture specific nor architecture independent or source
package specified to be built.
I tried various combinations of options. Eventually I checked the code and
found:
"A|arch-all" => sub {
...
if ($opt_append_to_version) {
die "--arch-all cannot be used together with --append-to-version";
}
But the way around I was using:
"append-to-version=s" => sub {
...
$self->set_conf('BUILD_ARCH_ALL', 0);
So it seems the error behaviour is dependent on the order of the arguments:
sbuild --append-to-version=~0.rebuild0 -A --no-arch-any --dist sid -k <...>
-m <...> <...>
--arch-all cannot be used together with --append-to-version at
/usr/share/perl5/Sbuild/Options.pm line 98.
E: Error parsing command-line options
I: Run 'sbuild --help' to list usage example and all available options
Could we have an error in this case too perhaps?
(FYI I just stopped using the `--apend-to-version` so I'm not blocked).
Thanks,
Ian
-- System Information:
Debian Release: bullseye/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (500,
'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf, armel, arm64
Kernel: Linux 5.4.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8),
LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages sbuild depends on:
ii adduser 3.118
ii libsbuild-perl 0.79.1-1
ii perl 5.30.0-9
Versions of packages sbuild recommends:
ii autopkgtest 5.11
ii debootstrap 1.0.123
ii schroot 1.6.10-9+b1
Versions of packages sbuild suggests:
ii deborphan 1.7.32
ii e2fsprogs 1.45.5-2
ii kmod 27-2
ii wget 1.20.3-1+b2
-- no debconf information