On Sun, 07 Oct 2007, Frank Lichtenheld wrote: > On Sat, Oct 06, 2007 at 09:17:21PM +0200, Loïc Minier wrote: > > Per policy 7.6, build-deps must be available for "clean"; pbuilder > > calls dpkg-buildpackage -S to generate a source suitable to be copied > > into the build environment; by default, this involves cleaning before > > building the source, but dpkg-checkbuilddeps isn't run before cleaning. > > > > I think dpkg-builcpackage should run dpkg-checkbuilddeps and fail at > > this point when called with -S. Currently, clean might fail if > > build-deps are unavailable (such as missing patch system package), but > > this should really be an error detected earlier on. > > This behaviour is as old as dpkg-checkbuilddeps itself (see > cf5d2919f686a15e8e623130b74af3ba2428fbeb in git). > > Changing the behaviour would obviously be "correct", the question is > whether it would actually be "better".
Do we have any idea of how many packages/services actually use dpkg-buildpackage -S ? I'm leaning towards correctness if it doesn't break too many stuff. Alternatively, we could make it display a warning and not actually exit. And this warning can itself warn that in the future it might fail at that point if -d is not passed. Cheers, -- Raphaël Hertzog Le best-seller français mis à jour pour Debian Etch : http://www.ouaza.com/livre/admin-debian/