Bug#839535: Removal of . from @INC causes problems for Config::Any::Perl

Anthony DeRobertis anthony at derobert.net
Sat Oct 1 16:30:46 UTC 2016


Package: libconfig-any-perl
Version: 0.27-1
Severity: normal
File: /usr/share/perl5/Config/Any/Perl.pm

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

All of Config::Any's modules used to work with relative paths, but now
that . has been removed from @INC, Config::Any::Perl now doesn't.

That's because: q{do 'file.pl'} and even q{do 'subdir/file.pl'} now fail
(file not found). q{do './file.pl'} and q{do './subdir/file.pl'} both
work, though.

Also, Config::Any::Perl fails to notice this. It checks $@, which
catches when the code doesn't compile, throws an exception, etc., but it
needs to also check $! which reports things like file not found.

I've also filed a bug against perl about how "do EXPR" no longer behaves
as documented, but even if they decide to revert the behavior change,
Config::Any::Perl needs to check $!.

- -- System Information:
Debian Release: stretch/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'testing'), (500, 'stable'), (130, 'unstable'), (120, 'experimental'), (1, 'experimental-debug')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.6.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages libconfig-any-perl depends on:
ii  libmodule-pluggable-perl  5.2-1
ii  perl                      5.24.1~rc3-3

Versions of packages libconfig-any-perl recommends:
ii  libconfig-general-perl  2.63-1
ii  libconfig-tiny-perl     2.23-1
ii  libxml-simple-perl      2.22-1
ii  libyaml-libyaml-perl    0.63-1+b1
ii  libyaml-perl            1.18-1
ii  libyaml-syck-perl       1.29-1+b2

libconfig-any-perl suggests no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----

iFwEARECABwFAlfv5LYVHGFudGhvbnlAZGVyb2JlcnQubmV0AAoJEPs/iMJV6ln+
cHkAnA4nsdkaE1Ugb61I2yUtb28OQ2P4AJ9G30tvNZ0KSq8X5I1Izv0YzhO2Ug==
=/nyp
-----END PGP SIGNATURE-----



More information about the pkg-perl-maintainers mailing list