Bug#856504: perl: should skip @INC paths with unsufficient permission

Bill Allombert ballombe at debian.org
Wed Mar 1 19:11:38 UTC 2017


On Wed, Mar 01, 2017 at 07:56:57PM +0100, gregor herrmann wrote:
> On Wed, 01 Mar 2017 19:45:08 +0100, Bill Allombert wrote:
> 
> > I think it would be more useful to skip
> > /usr/local/lib/x86_64-linux-gnu/perl/5.20.2/
> > and proceed with the next directory, rather than fail.
> 
> (Niko and Dom know more about this but for a starter:)
> 
> This was a deliberate upstream change made in 2012 and released in
> 2013 with the 5.18 release:
> 
> https://metacpan.org/pod/release/RJBS/perl-5.18.0/pod/perldelta.pod#require-dies-for-unreadable-files
> 
>   require dies for unreadable files
> 
>   When require encounters an unreadable file, it now dies. It used to
>   ignore the file and continue searching the directories in @INC
>   [perl #113422].
> 
> The referenced upstream bug is
> https://rt.perl.org/Public/Bug/Display.html?id=113422

This is a bit different. In my case,
/usr/local/lib/x86_64-linux-gnu/perl/5.20.2/strict.pm
does not exist at all.

A consequence of this is that it is only possible to add a directory to
the global @INC if it is world-accessible, which is a major interface
change.

Cheers,
-- 
Bill. <ballombe at debian.org>

Imagine a large red swirl here. 




More information about the Perl-maintainers mailing list