Bug#527993: perl-modules: Module::Build::Compat's generated Makefile doesn't remove the Makefile in the distclean target

Ryan Niebur ryanryan52 at gmail.com
Sun May 10 03:44:33 UTC 2009


Package: perl-modules
Severity: normal
Tags: patch
Version: 5.10.0-22

Hi,

There's been a recent discussion[1] on the debian-perl list about
whether Build.PL should be used by the dh_auto_* commands instead of
Makefile.PL when both exist. This is because sometimes the Makefile.PL
is just a "passthru" to the Build.PL, which causes a couple of bugs.

One of the bugs is that the Makefile target that dh_auto_clean calls
(distclean) doesn't remove the Makefile, only the "normal"
Module::Build files, causing subsequent runs of "make -f debian/rules
clean" and "make -f debian/rules build" to fail. The "realclean"
target of the generated Makefile already does this, however
dh_auto_clean prefers the "distclean" target.

The attached patch fixes this problem by making the distclean target
remove the Makefile as well. libmodule-build-perl will be uploaded
with this patch once perl-modules is patched.

Thanks,
Ryan

1: http://lists.debian.org/debian-perl/2009/05/msg00017.html

-- 
_________________________
Ryan Niebur
ryanryan52 at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/perl-maintainers/attachments/20090509/67cf1014/attachment.pgp>


More information about the Perl-maintainers mailing list