tags 822008 + patch
thanks

On Wed, 20 Apr 2016, ni...@thykier.net wrote:

> Package: ndoutils
> Severity: normal
> Usertags: arch-all-and-any-missing-targets
> 
> Hi,
> 
> The package ndoutils builds an architecture independent *and* an
> architecture dependent package, but does not have the (now mandatory)
> "build-arch" and "build-indep" targets in debian/rules.

Actually, this package does not even have a "build" target.

The reason "dpkg-buildpackage" works at all is that "build" is marked
as a PHONY target and make says this:

make: Nothing to be done for 'build'.

(instead of just failing).

The build works because the different binary-* targets depend on
several build-* targets, but this makes most of the build to be done
as root, which is generally undesirable (see Bug #806654 for an example).

As usual, I recommend switching to "dh", but in the meantime, the
attached trivial patch should make "dpkg-buildpackage -A" and
"dpkg-buildpackage -B" to work again.

Thanks.
--- a/debian/rules
+++ b/debian/rules
@@ -331,4 +331,4 @@ ndoutils-doc:
 #      dh_builddeb
 
 binary: binary-arch binary-indep
-.PHONY: build clean binary-indep binary-arch binary install install-indep 
install-arch
+.PHONY: build build-arch build-indep clean binary-indep binary-arch binary 
install install-indep install-arch

Reply via email to