develooper Front page | perl.perl5.porters | Postings from April 2015

Re: What is the correct INSTALLDIRS setting for CPAN modules in core?

Thread Previous
From:
Kent Fredric
Date:
April 29, 2015 12:47
Subject:
Re: What is the correct INSTALLDIRS setting for CPAN modules in core?
Message ID:
CAATnKFDgHRcGkx-dJ8UTHa3qMbTxiJrz=wXW-BozgBe-TXGN+A@mail.gmail.com
On 30 April 2015 at 00:34, Steve Hay <steve.m.hay@googlemail.com> wrote:

> But CPAN.pm says this:
>
> INSTALLDIRS  => 'perl',  # as it is coming with perl
>
> and when I update 5.20.2 with the latest CPAN it intalls into lib.
>

I would consider that to be a bug. Not something one should use as an
example to follow.

Generally, I agree that:

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

is the right approach, where minversion = minversion it entered core.

Personally, I would like to see EUMM fixed in such a way packages declaring
this themselves on perls greater than 5.012 were summarily ignored as being
"wrong", but compat and things like that are hard. ( And you'd still have
to make that declaration either way to support older EUMMS )

Because there's a lot of things still doing this ( you can't fix old
versions of things so if you downgrade to check compatibility, you risk
breaking things ), and I've seen things that were *never* core do this.


-- 
Kent

*KENTNL* - https://metacpan.org/author/KENTNL

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