Stop abusing EUMM too much
Florian Ragwitz [Mon, 9 May 2011 14:27:58 +0000 (16:27 +0200)]
This code breaks on the EUMM version that'll be shipped with 5.14.0 due to a bug
in EUMM itself. However, if we stop doing crazy shit to prevent oldinterface.pod
to be installed, things will be fine. Also, at least recent versions of EUMM
won't install that extra pod file anyway. I haven't tested on older ones, but
I'm quite sure we don't care, as all that could go wrong is one extra file being
installed.

perl/Makefile.PL

index 6aa5301..9fb5e9b 100644 (file)
@@ -102,10 +102,7 @@ if ($pure) {
 # the contents of the Makefile that is written.
 
 # Work around bug in previous versions of MakeMaker
-WriteMakefile(NAME => 'FCGI')
-    if $ExtUtils::MakeMaker::VERSION <= 5.4302;
-
-$mm = MM->new({
+WriteMakefile(
     'NAME'        => 'FCGI',
     'VERSION_FROM'    => 'version.pm',
     'dist' => {
@@ -127,10 +124,7 @@ $mm = MM->new({
     'PL_FILES'        => $plfiles,
     PM            => {'FCGI.pm' => '$(INST_ARCHLIBDIR)/FCGI.pm'},
     @extras,
-});
-# don't install oldinterface pod
-delete $mm->{MAN3PODS}{oldinterface.pod};
-$mm->flush;
+);
 
 exit if -f 'fcgi_config.h' or $libfound or $pure;