develooper Front page | perl.perl5.porters | Postings from October 2012

RE: Install to 'site' instead of 'perl' when perl version is 5.11+

Thread Previous
From:
Paul Marquess
Date:
October 1, 2012 12:07
Subject:
RE: Install to 'site' instead of 'perl' when perl version is 5.11+
Message ID:
007501cda007$f3ab08a0$db0119e0$@ntlworld.com
Thanks, that great.

Paul

-----Original Message-----
From: Leon Timmermans [mailto:fawaka@gmail.com] 
Sent: 30 September 2012 22:34
To: Paul Marquess
Cc: Perl5 Porters; rjbs@cpan.org
Subject: Re: Install to 'site' instead of 'perl' when perl version is 5.11+

On Sun, Sep 30, 2012 at 11:30 PM, Paul Marquess <Paul.Marquess@ntlworld.com> wrote:
> I have a series of changes on RT (e.g #79812) logged against my 
> dual-life modules that reference this page
>
>     
> https://github.com/rjbs/perltodo/blob/master/Supply-Patches-to-Fix-Ins
> tall-Location.mkdn
>
> To quote what it says
>
>     In most cases, libraries will be using ExtUtils::MakeMaker. They should end up with a line
>     something like this:
>
>         INSTALLDIRS => ($] < 5.011 ? 'perl' : 'site'),
>
>     They're broken if they currently just say INSTALLDIRS => 'perl'
>
> I currently use this in my modules
>
>      INSTALLDIRS => ($] > 5.009 ? 'perl' : 'site'),
>
> Can't remember offhand what changed in 5.10 to warrant that, but I'm sure it was needed.

That usually means the module was included into core in 5.10.

> So should the change to Makefile.PL actually be this?
>
>      INSTALLDIRS => ($] > 5.009  && $] < 5.011 ? 'perl' : 'site'),

Yes


Thread Previous


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