Bug#421549: build-depends-without-arch-dep: support libmodule-build-perl use in clean target
Ian Beckwith <email@example.com> 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
> 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
Russ Allbery (firstname.lastname@example.org) <http://www.eyrie.org/~eagle/>