Bug#421549: build-depends-without-arch-dep: support libmodule-build-perl use in clean target
Ian Beckwith <ianb@nessie.mcc.ac.uk> writes:
> Package: lintian
> Version: 1.23.30
> Severity: wishlist
> Tags: patch
> When testing a perl package built using Module::Build, lintian says:
> I: liburi-template-perl source: build-depends-without-arch-dep libmodule-build-perl
> because it doesn't know libmodule-build-perl is needed in the clean target.
> The attached patch adds a regexp to @global_clean_depends to support
> this. I just hope no other build system uses "Build.PL" anywhere.
> For a package using Module::Build, see
> http://nessie.mcc.ac.uk/~ianb/debian/liburi-template-perl_0.06-1.dsc
> which was generated with dh-make-perl.
I added this to @rule_clean_depends instead of @global_clean_depends since
the requirement really does depend on someone running perl Build in the
clean rule. I hope this isn't too aggressive; I may have to move it to
@rule_clean_allowed instead. As-is, it will require libmodule-build-perl
in Build-Depends and error if it's not there, which *seems* right, but
we'll see.
--
Russ Allbery (rra@debian.org) <http://www.eyrie.org/~eagle/>
Reply to: