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

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

Thread Next
From:
Paul Marquess
Date:
September 30, 2012 14:30
Subject:
Install to 'site' instead of 'perl' when perl version is 5.11+
Message ID:
000001cd9f52$c6e12170$54a36450$@ntlworld.com
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.

So should the change to Makefile.PL actually be this?

     INSTALLDIRS => ($] > 5.009  && $] < 5.011 ? 'perl' : 'site'),

Paul


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