On Fri, 14 Nov 2014, Faheem Mitha wrote: > The subject line says it all. I noticed today that if the patches in > debian/patches are not applied, then > > debuild clean > > does not apply them, and if a patch is required to run clean > successfully, then clean fails. Included is the clean section of > debian/rules for my example package, and also the output of running > 'debuild clean' with and without patches applied. > > I think that debuild clean (or to be precise, the underlying > dpkg-buildpackage) command should apply the patches before running any > command, and presumably unapply it afterwards. I don't see a downside > to this.
dpkg-buildpackage is not called when you run "debuild clean". The manual page clearly indicates that it calls "debian/rules <target>" directly. And your log doesn't show any message of dpkg-buildpackage. In general, opting to call a specific target doesn't do any build preparation work. It's the same if you do "dpkg-buildpackage --target=clean". I'm not sure this can be considered as a bug. It behaves as documented. Cheers, -- Raphaël Hertzog ◈ Debian Developer Support Debian LTS: http://www.freexian.com/services/debian-lts.html Learn to master Debian: http://debian-handbook.info/get/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org