* Jonathan Nieder <[email protected]>, 2012-05-01, 13:22:
The attached patch adds option to build package multiple times in a
row. This is useful for testing correctness of the clean target.
The patch looks noisy, because I had to indent a few dozen of lines;
but other than that, it adds just a few lines.
If case you wonder why can't I just call dpkg-buildpackage in a loop:
I can't if run it through a wrapper like sbuild or $VCS-buildpackage.
Neat --- sounds like a useful test.
I'm not convinced this is worth a dpkg-buildpackage option on its own.
Well, I am.
Wouldn't other sequences of targets be worth testing, too? (E.g.,
"debian/rules build && debian/rules clean && fakeroot
debian/rules binary".)
I don't think so. (Testing if binary without build works is possibly
useful, but that's already doable.)
I assume in the $VCS-buildpackage case you are building with the
--export-dir option so the build tree is wiped out between builds.
I've never heard of -export-dir.
Possible alternative methods:
a) teaching sbuild and $VCS-buildpackage an option to use another
command instead of dpkg-buildpackage, or
b) (as a hack, if (a) is too fussy) overriding dpkg-buildpackage with
a wrapper that appears earlier on the $PATH.
I'm not interested in patching multiple builders or dirtying my build
environment.
--
Jakub Wilk
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]