]> git.donarmstrong.com Git - debhelper.git/commitdiff
dh_auto_configure: Set PERL_MM_USE_DEFAULT when configuring MakeMaker packages to...
authorJoey Hess <joey@kodama.kitenet.net>
Fri, 25 Apr 2008 00:37:42 +0000 (20:37 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Fri, 25 Apr 2008 00:37:42 +0000 (20:37 -0400)
debian/changelog
dh_auto_configure

index 23d9b2703b37b9fe337b4d332ca4766303a6b123..cf095ac8cf53f6f9c60b9d10f8840a20ddcf08b2 100644 (file)
@@ -2,6 +2,8 @@ debhelper (7.0.2) UNRELEASED; urgency=low
 
   * dh: Optimise the case where the binary-arch or binary-indep sequence is
     run and there are no packages of that type.
+  * dh_auto_configure: Set PERL_MM_USE_DEFAULT when configuring MakeMaker
+    packages to avoid interactive prompts.
 
  -- Joey Hess <joeyh@debian.org>  Thu, 24 Apr 2008 14:10:56 -0400
 
index 4b01889b082f88d18a48e5cbb5cb713081ff2c5c..6e56c953bd4374ed19799a7890aec92b468bf3d0 100755 (executable)
@@ -85,6 +85,9 @@ if (-x "configure") {
        doit("./configure", @opts, @{$dh{U_PARAMS}});
 }
 elsif (-e "Makefile.PL") {
+       # If set to a true value then MakeMaker's prompt function will
+       # # always return the default without waiting for user input.
+       $ENV{PERL_MM_USE_DEFAULT}=1;
        doit("perl", "Makefile.PL", "INSTALLDIRS=vendor", @{$dh{U_PARAMS}});
 }