On Mon Mar 17 11:07:01 2008, JDHEDDEN wrote:
Show quoted text> > > 'INSTALLDIRS' => ($] >= 5.008009) ? "perl" : "site",
> >
> > Turns out this is not correct either. Because Module::Pluggable has now
> > been moved under 'ext' in core, Pluggable.pm gets installed into
> > $Config{installarchlib}. However, the above causes an update from CPAN
> > to install Pluggable.pm into $Config{installprivlib}. Since
> > installarchlib comes before installprivlib in @INC, the CPAN upgrade
> > gets masked.
>
> I have tested the following (also attached), and it seems to fix the
> problem:
>
> --- Module-Pluggable-3.8/Makefile.PL.orig
> +++ Module-Pluggable-3.8/Makefile.PL
> @@ -41,6 +41,7 @@
> },
> 'EXE_FILES' => [],
> 'INSTALLDIRS' => ($] >= 5.008009) ? "perl" : "site",
> + 'INST_LIB' => 'blib/arch',
> 'PL_FILES' => {},
> 'realclean' => {FILES=> join ' ', @files},
> # In the core pods will be built by installman.
Sorry about that. I realized that the added line needs to be
conditionalized, too:
--- Module-Pluggable-3.8/Makefile.PL.orig
+++ Module-Pluggable-3.8/Makefile.PL
@@ -41,6 +41,7 @@
},
'EXE_FILES' => [],
'INSTALLDIRS' => ($] >= 5.008009) ? "perl" : "site",
+ 'INST_LIB' => ($] >= 5.008009) ? 'blib/arch' ? 'blib/lib',
'PL_FILES' => {},
'realclean' => {FILES=> join ' ', @files},
# In the core pods will be built by installman.