Bug#869653: Local path for modules not included any more
Thanks for your quick reaction Dominic! Am 25.07.2017 um 14:28 schrieb Dominic Hargreaves: > 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. Yes - correct. > > 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. No - it isn't a bug. It can be closed. I googled for such a reason but couldn't find it. Perl was downwards compatible for such a long time that i could not believe it. ;-) Here is the description if some other users will run into the same trap. https://metacpan.org/changes/release/XSAWYERX/perl-5.26.0#Removal-of-the-current-directory-(%22.%22)-from-@INC 5.3.7. Perl changes that may break third-party softwareThe current working directory (|.|) has been removed from the default list of include directories, |@INC|. This may affect usage of |require()|, |do()|, etc., where the arguments are files in the current directory. > 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. The reason for the problem is clear now. Regards Karsten > > Thanks, > Dominic.
Bug#869653: Local path for modules not included any more
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.
Bug#869653: Local path for modules not included any more
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 Regards Karsten -- System Information: Debian Release: 9.1 APT prefers proposed-updates APT policy: (500, 'proposed-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages perl depends on: ii dpkg 1.18.24 ii libperl5.245.24.1-3+deb9u1 ii perl-base 5.24.1-3+deb9u1 ii perl-modules-5.24 5.24.1-3+deb9u1 Versions of packages perl recommends: ii netbase 5.4 ii rename 0.20-4 Versions of packages perl suggests: pn libterm-readline-gnu-perl | libterm-readline-perl-perl ii make4.1-9.1 pn perl-doc -- no debconf information