Bug#869653: Local path for modules not included any more

Dominic Hargreaves dom at earth.li
Tue Jul 25 12:28:18 UTC 2017


Control: tags -1 + moreinfo

On Tue, Jul 25, 2017 at 01:10:16PM +0200, Karsten wrote:
> Package: perl
> Version: 5.24.1-3+deb9u1
> Severity: normal
> 
> Hello,
> 
> suddenly my perl scripts will not find modules in the local path anymore.
> Is this a bug or a new feature?
> 
> 
> Error message:
> 
> Can't locate mymodule.pm in @INC (you may need to install the haarpconfig module) (@INC contains: /etc/perl
> /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24
> /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl
> /usr/lib/x86_64-linux-gnu/perl-base) at ./myscript.pl line 61.
> BEGIN failed--compilation aborted at ./myscript.pl line 61.
> 
> 
> Now for every script that uses modules in the local path the path have to be defined like:
> use lib "/path/to/local/modules"; # http://perldoc.perl.org/perlrun.html#ENVIRONMENT

Hi,

I suspect you are talking about a change in behaviour in perl from
jessie to stretch (Debian 8 to Debian 9) which was documented here.

https://www.debian.org/releases/stretch/amd64/release-notes/ch-information.en.html#perl

(the second point in that list). In other words, this probably isn't a
bug.

However, if you believe that this happened between 5.24.1-3 and
5.24.1-3+deb9u1, please let us know together with an example script
which used to work and now doesn't.

Thanks,
Dominic.




More information about the Perl-maintainers mailing list