Andreas Beckmann wrote: > Using the simple default rule > %: > dh $@ > > results in errors like > > dpkg-gencontrol: error: current host architecture 'amd64' does not > appear in package's architecture list (i386) > > I would have expected dh to do the right thing automatically (not > building any foreign-arch packages which is expected to fail), but this > seems to need manual adjustments.
This is because 'dh binary' runs the commands without -a and -i options, and so all packages are acted on, including ones not for the target arch. And with a minimal rules file, 'dh binary-arch' and 'dh binary-indep', which do the right thing, never get run (unless dpkg-buildpackage -B runs them), as there is no explicit binary target to force that to happen. So the way to avoid the problem is just to add the target: binary: binary-arch binary-indep But, after the optimisation done for #540794, and with a few more changes, debhelper's befault behavior can be the same as if -a -i were passed, without a speed penalty, so I will do that. -- see shy jo
signature.asc
Description: Digital signature

