Bug#832936: perl: base.pm diagnostics lie about @INC

Niko Tyni ntyni at debian.org
Fri Jul 29 18:24:22 UTC 2016


Package: perl
Version: 5.22.2-3
Control: found -1 5.20.2-3+deb8u6

With the CVE-2016-1238 patch that made base.pm temporarily remove cwd
from @INC when trying to load the base module, a later error message
has now become misleading and needs editing.

% perl -e 'use base qw(foobar)'
Base class package "foobar" is empty.
    (Perhaps you need to 'use' the module which defines that package first,
    or make that module available in @INC (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.2 /usr/local/share/perl/5.22.2 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl-base .).
 at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

Note that '.' is listed there because the @INC cleansing is no longer
in effect.

This is from https://rt.perl.org/Public/Bug/Display.html?id=128769
but filing so we don't overlook it.
-- 
Niko Tyni   ntyni at debian.org




More information about the Perl-maintainers mailing list