]> git.donarmstrong.com Git - debhelper.git/commitdiff
perl_makemaker: Re-add fix for #496157, lost in rewrite.
authorJoey Hess <joey@gnu.kitenet.net>
Wed, 22 Jul 2009 14:43:52 +0000 (16:43 +0200)
committerJoey Hess <joey@gnu.kitenet.net>
Wed, 22 Jul 2009 14:43:52 +0000 (16:43 +0200)
Debian/Debhelper/Buildsystem/perl_makemaker.pm
debian/changelog

index 702458c5a6e42f258679a2e88c70a7c384826e6c..e109be5711e4aa96669ddef40bfd5e78a5afacbf 100644 (file)
@@ -58,7 +58,17 @@ sub configure {
 sub install {
        my $this=shift;
        my $destdir=shift;
-       $this->SUPER::install($destdir, "PREFIX=/usr", @_);
+
+       # Special case for Makefile.PL that uses
+       # Module::Build::Compat. PREFIX should not be passed
+       # for those; it already installs into /usr by default.
+       my $makefile=$this->get_sourcepath("Makefile");
+       if (system(qq{grep -q "generated automatically by MakeMaker" $makefile}) != 0) {
+               $this->SUPER::install($destdir, @_);
+       }
+       else {
+               $this->SUPER::install($destdir, "PREFIX=/usr", @_);
+       }
 }
 
 1
index d4c7b7503482186b31ebcd15cfcf59b26a1d053b..fd9f147ebf90a9a587a49c844d764ebd98446047 100644 (file)
@@ -1,3 +1,9 @@
+debhelper (7.3.6) UNRELEASED; urgency=low
+
+  * perl_makemaker: Re-add fix for #496157, lost in rewrite.
+
+ -- Joey Hess <joeyh@debian.org>  Wed, 22 Jul 2009 16:42:14 +0200
+
 debhelper (7.3.5) experimental; urgency=low
 
   [ Bernd Zeimetz ]