develooper Front page | perl.perl5.porters | Postings from February 2017

[perl #130467] Default perl builds to not include . in @INC(default_inc_excludes_dot)

Thread Previous | Thread Next
From:
James E Keenan via RT
Date:
February 8, 2017 18:40
Subject:
[perl #130467] Default perl builds to not include . in @INC(default_inc_excludes_dot)
Message ID:
rt-4.0.24-11253-1486579234-39.130467-15-0@perl.org
On Wed, 08 Feb 2017 18:28:33 GMT, TODDR wrote:
> On Wed, 08 Feb 2017 03:02:39 -0800, xsawyerx@gmail.com wrote:
> > Including Module::Install *does* implicitly encourage it. The only
> > way
> > would be to document very very clearly that it should not be used. At
> > the same time, this also implies an adoption of this by p5p, even if
> > to slowly deprecate it.
> >
> > This raises another question on my part: Is the intention for this to
> > be for good, or for a period? If for a period, how long of a period?
> 
> So the very ROUGH numbers I have are that ~3900 out of 35,000 modules
> on CPAN use Module::Install. That's ~11% of CPAN. I'm not optimistic
> even Karen could get patched or adopt that many modules. This would
> probably be with us for some time. I got this by putting all of
> minicpan into a git repo and I know there are a few dupes.
> https://github.com/toddr/minicpan_grep
> 
> After talking with toolchain, the below idea has been floated. It
> would allow us to ship ONLY this one file and not M::I with Perl. We
> could add docs, warnings, etc. to make it clear this is a shim ONLY
> for working around Module::Install's incompatibility with . not being
> in @INC.
> 
> https://gist.github.com/toddr/a0d877645575df5615cff30fcaf379ad
> 
> File: lib/inc/Module/Install.pm
> package Fake::inc::Module::Install;
> 
> BEGIN {
>     my $mi = "inc/Module/Install.pm";
>     push @INC, '.' if $INC[-1] ne '.';
>     if( -e "./$mi") {
>         require "./$mi";
>     }
>     else {
>         die("Could not find inc/Module/Install.pm during module
> installation.");
>     }
> }
> 
> 1;

Where would this file reside in the Perl 5 core distribution?

-- 
James E Keenan (jkeenan@cpan.org)

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=130467

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