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

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

Thread Previous | Thread Next
From:
Leon Timmermans
Date:
September 30, 2012 14:34
Subject:
Re: Install to 'site' instead of 'perl' when perl version is 5.11+
Message ID:
CAHhgV8hKZ47YMu1yc5RPEr6pKP6+1M7tg_TQDy8xmpvfYpwupg@mail.gmail.com
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-Install-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 | 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