On Fri, Aug 04, 2017 at 03:42:34PM -0400, Sean Whitton wrote:
> On Thu, Aug 03, 2017 at 03:43:56PM +0000, Mike Gabriel wrote:
> > I am not saying that the build target must not be empty. I can be empty but
> > the build-a ... build-n dependecies have to be moved away from the binary
> > target and have to be made dependencies of the build target (which can only
> > have deps but no own instructions).
> > And if that makes packages buggy, then they are actually quite buggy,
> > because the build-a ... build-n get executed in a fakeroot concept by design
> > of dpkg-buildpackage. And IMHO this should definitely be avoided.
> Just to be clear, I do agree with you that this situation where they are
> deps of the binary target is bad.
> Interested to hear what Santiago thinks.
I have to agree with everything Mike Gabriel said. The first patch
you proposed seems insufficient to me.
All the building stuff should be made in the build target, and we
might better not allow any of the binary target to depend on any of
the build targets, as the current policy seems to allow.