Bug#668058: dh-make-perl: Recursive option does not use PERL5LIB / @INC for parent module to include children in testing

Brendan Byrd Debian at ResonatorSoft.org
Sun Apr 8 15:57:53 UTC 2012

Package: dh-make-perl
Version: 0.75-1
Severity: normal

When installing package A in CPAN, and finding that package B is also required,
dh-make-perl will then install package B in CPAN.  The trouble is that package B
is not shared to package A when it finally gets to testing for package A.  If
package B does not exist within @INC (ie: the package hasn't been installed in
the core directories), the testing will likely croak with messages like this:

t/01use.t .......... 1/1
#   Failed test 'use Package::A;'
#   at t/01use.t line 3.
#     Tried to use 'Package::A'.
#     Error:  Can't locate Package/B.pm in @INC (@INC contains: /usr/share/dh-make-perl/Package-A-0.10/inc /usr/share/dh-make-perl/Package-A-0.10/blib/lib /usr/share/dh-make-perl/Package-A-0.10/blib/arch /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /usr/share/dh-make-perl/Package-A-0.10/blib/lib/Package/A.pm line 7.
# BEGIN failed--compilation aborted at /usr/share/dh-make-perl/Package-A-0.10/blib/lib/Package/A.pm line 7.
# Compilation failed in require at (eval 4) line 2.
# BEGIN failed--compilation aborted at (eval 4) line 2.
# Looks like you failed 1 test of 1.

The workaround is to, of course, install the dependency manually via CPAN, but
this pollutes the core directories with non-Debian files, and defeats the
purpose of dh-make-perl in general.

-- System Information:
Debian Release: 6.0.2
  APT prefers testing
  APT policy: (1000, 'testing'), (1000, 'stable'), (995, 'stable'), (750, 'testing'), (500, 'testing-proposed-updates'), (500, 'stable-updates'), (500, 'proposed-updates'), (50, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dh-make-perl depends on:
ii  debhelper                     8.0.0      helper programs for debian/rules
ii  dpkg-dev              Debian package development tools
ii  fakeroot                      1.14.4-1   Gives a fake root environment
ii  libapt-pkg-perl               0.1.26     Perl interface to libapt-pkg
ii  libarray-unique-perl          0.08-1     Tie-able array that allows only un
ii  libclass-accessor-perl        0.34-1     Perl module that automatically gen
ii  libcpan-meta-perl             2.120630-1 Perl module to access distribution
ii  libdpkg-perl          Dpkg perl modules
ii  libemail-address-perl         1.889-2    RFC 2822 Address Parsing and Creat
ii  libemail-date-format-perl     1.002-1    Module to generate RFC-2822-valid
ii  libfile-which-perl            1.08-1     Perl module for searching paths fo
ii  liblist-moreutils-perl        0.33-1+b1  Perl module with additional list f
ii  libmodule-depends-perl        0.15-2     Perl module to identify the depend
ii  libparse-debcontrol-perl      2.005-2    Easy OO parsing of Debian control-
ii  libparse-debianchangelog-perl 1.1.1-2.1  parse Debian changelogs and output
ii  libsoftware-license-perl      0.101620-1 module providing templated softwar
ii  libtie-ixhash-perl            1.21-2     ordered associative arrays for Per
ii  libwww-mechanize-perl         1.71-1     module to automate interaction wit
ii  libyaml-perl                  0.80-1     YAML Ain't Markup Language
ii  make                          3.81-8     An utility for Directing compilati
ii  perl                          5.14.2-9   Larry Wall's Practical Extraction
ii  perl-modules [libmodule-corel 5.14.2-9   Core Perl modules

Versions of packages dh-make-perl recommends:
ii  apt-file                     2.5.0       search for files within Debian pac
ii  git                          1: fast, scalable, distributed revisi
ii  pristine-tar                 1.03        regenerate pristine tarballs

dh-make-perl suggests no packages.

-- no debconf information

More information about the pkg-perl-maintainers mailing list