Bug#737632: autopkgtest: adt-run builds packages differently to the buildd

Martin Pitt mpitt at debian.org
Tue Feb 4 13:26:32 UTC 2014

Hey Stuart,

Stuart Prescott [2014-02-05  0:05 +1100]:
> When given a dsc to test, adt-run builds the source by calling
> "debian/rules build". On the buildd, however, dpkg-buildpackage is used
> which calls "debian/rules clean" first.

This has been a source of quite a lot of errors recently indeed; I
haven't yet seen one that was due to not cleaning the package (I only
use it with already clean built trees or already built trees).

However, dpkg-buildpackage also defines env vars like
$DEB_HOST_MULTIARCH these days, which some packages use but don't
define. Granted, this is a bug in debian/rules and we have fixed a
number of them, but these days I really consider dpkg-buildpackage as
the primary interface to building binaries.

Therefore I fully agree to replacing "debian/rules build" with
"dpkg-buildpackage -us -uc -b", to do the same thing as our buildds.
Ian, what do you think about that?



Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)

More information about the autopkgtest-devel mailing list