develooper Front page | perl.perl5.porters | Postings from March 2009

Re: deprecating Switch.pm

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
March 1, 2009 05:56
Subject:
Re: deprecating Switch.pm
Message ID:
20090301135613.GZ81285@plum.flirble.org
On Sun, Mar 01, 2009 at 08:57:08AM +0100, Rafael Garcia-Suarez wrote:
> 2009/2/28 Andreas J. Koenig <andreas.koenig.7os6VVqR@franz.ak.mind.de>:
> > I have a partial solution[0] but there is an obstacle. Here's the
> > Makefile.PL of the CPAN version of Switch-1.14:
> >
> >  use ExtUtils::MakeMaker;
> >  WriteMakefile(
> >      NAME => q[Switch],
> >      VERSION_FROM => q[Switch.pm],
> >      PREREQ_PM => { 'Filter::Util::Call' => 0, 'Text::Balanced' => 0 },
> >      INSTALLDIRS => $] >= 5.00703 ? 'perl' : 'site',
> >  );
> >
> > For all modules that set INSTALLDIRS to 'perl' the installation simply
> > overwrites the already installed Switch.pm or even refrains from doing
> > it when the files are really identical. In such a case installing from
> > CPAN with MakeMAker does not resolve the situation.
> >
> > Are you intending to demand that these distros be changed to always
> > specify "site"?
> 
> Arguably, with the new layout, 'perl' is no longer necessary. Should
> even MakeMaker attempt to install into 'perl' ?

With the new layout, every dual life module on 5.11 or later *needs* to install
to siteperl. I think it's an implementation detail as to whether this is
achieved by modifying every Makefile.PL in time for 5.12, or modifying
MakeMaker to refuse to install to 'perl' post 5.10.Inf

(Or rather than "refuse", politely warn that "perl" is no longer supported, and
it's going to install to "site_perl" instead)

Nicholas Clark

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About