Bug#798626: perl: -V lies about -Duseshrplib

Niko Tyni ntyni at debian.org
Fri Sep 11 07:41:10 UTC 2015


Package: perl
Version: 5.20.0-6
Severity: minor

With static builds (-Uuseshrplib, where /usr/bin/perl is statically linked
against libperl), perl -V lies about the configuration because we install
Config.pm from the shared build (-Duseshrplib). This has been the case
for a long time on i386, and since 5.20.2-5 we use a statically built
/usr/bin/perl on all architectures.

The situation is somewhat better with the 5.22 packaging, where we install
two Config.pm files: once in perl-base under /usr/lib/<triplet>/perl-base
and once in libperl5.22 under /usr/lib/<triplet>perl/5.22. The former
Config.pm has the configuration from the static build and the latter
from the shared build.

However, the current @INC in the 5.22 packages has the perl-base
directory at the very end, so on non-minimal systems with libperl5.22
installed, perl -V still lies because the libperl5.22 Config.pm takes
precedence.  If libperl5.22 is not present, 'perl -V' will show the
correct configuration.

The right order of @INC would probably be to put
/usr/lib/<triplet>/perl-base right before /usr/lib/<triplet>perl/5.22.
There's no configuration knob for this so it needs patching perl.c.

I'm not aware of other bad effects with the current ordering so
this is not a priority.
-- 
Niko Tyni   ntyni at debian.org




More information about the Perl-maintainers mailing list