Bug#702847: libdevel-cover-perl: Failure under mod_perl2 due to using $^X

Martín Ferrari tincho at debian.org
Tue Mar 12 05:00:35 UTC 2013


Package: libdevel-cover-perl
Version: 0.96-1
Severity: normal
Tags: upstream

Since a few versions ago, Devel::Cover is using $^X to call perl for an ugly
hack to get a default @INC. The problem is that $^X is not always 'perl', under
mod_perl it would normally be 'httpd', but in our case, it is 'apache2'. So
hilarity ensues when this is executed:

execve("/usr/lib/apache2/mpm-prefork/apache2", ["/usr/lib/apache2/mpm-prefork/apache2", "-MData::Dumper", "-e", "print Dumper \\@INC"], [/* 2 vars */]) = 0

The old versions relied on mod_perl-specific environment variables to realise
they were running under mod_perl. The current check ($^X =~ /httpd$/) is pretty
silly.

-- System Information:
Debian Release: 7.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-0.bpo.4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libdevel-cover-perl depends on:
ii  libc6                       2.13-38
ii  perl                        5.14.2-19
ii  perl-base [perlapi-5.14.2]  5.14.2-19

libdevel-cover-perl recommends no packages.

Versions of packages libdevel-cover-perl suggests:
pn  libbrowser-open-perl         <none>
ii  libjson-xs-perl              2.330-1
ii  libpod-coverage-perl         0.22-1
pn  libppi-html-perl | perltidy  <none>
pn  libtemplate-perl             <none>
pn  libtest-differences-perl     <none>

-- no debconf information



More information about the pkg-perl-maintainers mailing list