r53220 - /trunk/dh-make-perl/lib/DhMakePerl.pm

dmn at users.alioth.debian.org dmn at users.alioth.debian.org
Mon Feb 22 21:01:37 UTC 2010


Author: dmn
Date: Mon Feb 22 21:01:25 2010
New Revision: 53220

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=53220
Log:
replace b-dep on libmodule-build-perl with perl (>= 5.10) | libmodule-build-perl

Modified:
    trunk/dh-make-perl/lib/DhMakePerl.pm

Modified: trunk/dh-make-perl/lib/DhMakePerl.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/dh-make-perl/lib/DhMakePerl.pm?rev=53220&op=diff
==============================================================================
--- trunk/dh-make-perl/lib/DhMakePerl.pm (original)
+++ trunk/dh-make-perl/lib/DhMakePerl.pm Mon Feb 22 21:01:25 2010
@@ -2190,6 +2190,14 @@
 Building such packages requires debhelper 7.0.17 (see
 L<http://bugs.debian.org/496157>) =back
 
+=item Module::Build
+
+The proper build-dependency in this case is
+
+    perl (>= 5.10 ) | libmodule-build-perl
+
+=back
+
 =cut
 
 sub discover_utility_deps {
@@ -2230,6 +2238,13 @@
             }
         }
     }
+
+    # there are old packages that still build-depend on libmodule-build-perl
+    # Since M::B is part of perl 5.10, the build-dependency needs correction
+    if ( $self->module_build eq 'Module-Build' ) {
+        $deps->remove('libmodule-build-perl');
+        $deps->add('perl (>= 5.10) | libmodule-build-perl');
+    }
 }
 
 sub _warn_incomplete_copyright {




More information about the Pkg-perl-cvs-commits mailing list