Hi josch,
Thank you for the hint, I thought some time about implementing
something, but kept running into the problem of finding a good
name for the argument: one I would be happy to use and that does
not clash with existing sbuild arguments. Naming things is
hard. In the meantime, I witnessed other occurrences of the
confusion in the wild. What I can offer is a small adjustment
to the documentation, to leave a message to the unwary in the
manual:
-------8<--------------8<--------------8<--------------8<-------
diff -Nru sbuild-0.91.1/man/sbuild.1.in sbuild-0.91.1+eml1/man/sbuild.1.in
--- sbuild-0.91.1/man/sbuild.1.in 2025-10-08 14:13:20.000000000 +0200
+++ sbuild-0.91.1+eml1/man/sbuild.1.in 2025-11-20 09:48:43.000000000 +0100
@@ -229,6 +229,12 @@
This command line option sets the \fBBUILD_ARCH_ALL\fP configuration variable. See
.BR sbuild.conf (5)
for more information.
+.IP
+.B Warning:
+since \-\-arch\-any is also default for native builds,
+it is necessary to pass \-\-no\-arch\-any to issue an "Architecture: all" only build.
+A common error when testing builds is to assume \-\-no\-arch\-any is implied by \-\-arch\-all,
+which is actually not the case.
.TP
.BR "\-\-no\-arch\-all"
Do not build Architecture: all packages. This is the default behaviour for cross builds. This
@@ -249,6 +255,12 @@
This command line option sets the \fBBUILD_ARCH_ANY\fP configuration variable. See
.BR sbuild.conf (5)
for more information.
+.IP
+.B Warning:
+since \-\-arch\-all is also default for native builds,
+it is necessary to pass \-\-no\-arch\-all to issue an "Architecture: any" build.
+A common error when testing builds is to assume \-\-no\-arch\-all is implied by \-\-arch\-any,
+which is actually not the case.
.TP
.BR "\-\-no\-arch\-any"
Do not build Architecture: any packages. This option is the opposite
-------8<--------------8<--------------8<--------------8<-------
It is some wording I came up with, but feel free to adjust if
you think of a better description. I'm happy with seeing the
bug closed with the documentation adjusted. Does that sound
fair enough?
Have a nice day, :)
--
.''`. Étienne Mollier <emollier@debian.org>
: :' : pgp: 8f91 b227 c7d6 f2b1 948c 8236 793c f67e 8f0d 11da
`. `' sent from /dev/pts/3, please excuse my verbosity
`- on air: Magic Pie - Circus of Life part 5, The Clown