Bug#631711: [checks/rules] debian-rules-missing-*-target: be smarter with includes
Package: lintian
Version: 2.5.1
Severity: wishlist
If debian/rules includes other makefiles, then lintian won't issue
debian-rules-missing-{required,recommended}-target. This is because, to
be on safe side, lintian assumes that an external makefile could define
the missing target. However, there are many commonly used makefiles that
are known to be "safe" to include.
For example, these makefiles don't define any targets at all, just a
bunch of variables:
/usr/share/cli-common/cli-nant.make
/usr/share/cli-common/cli.make
/usr/share/coq/coqvars.mk
/usr/share/gcj/debian_defaults
/usr/share/hardening-includes/hardening.make
/usr/share/javahelper/java-vars.mk
/usr/share/libdbi-perl/perl-dbdabi.make
/usr/share/mpi-default-dev/debian_defaults
/usr/share/ocaml/ocamlvars.mk
/usr/share/octave/debian/defs.make
/usr/share/pkg-kde-tools/makefiles/1/variables.mk
/usr/share/pycentral-data/pycentral.mk
/usr/share/python/python.mk
/usr/share/python3/python.mk
These define only a few targets that are not mentioned in the Policy:
/usr/share/ocaml/ocamlinit.mk
/usr/share/postgresql-common/pgxs_debian_control.mk
These define only patch and unpatch targets:
/usr/share/quilt/quilt.make
/usr/share/dpatch/dpatch.make
/usr/share/topgit/tg2quilt.mk
It would be nice if lintian could ignore all the above includes.
--
Jakub Wilk
Reply to: