Bug#1126139: dh-make-perl: Alternative (multiple package) dependency detection warnings

Mark Lawrence mark at rekudos.net
Thu Jan 22 09:39:47 GMT 2026


Package: dh-make-perl
Version: 0.128
Severity: normal

Dear Maintainer,

I am installing OptArgs2 as a deb from cpan by running "cpan2deb OptArgs2".

A "../liboptargs2-perl_2.0.17-1_all.deb" package is built and installs 
and loads correctly. However, there are warnings during the 
debianization that indicate dh-make-perl has a problem with
dependency detection.

     Use of uninitialized value in hash element at /usr/share/perl5/Debian/Control/FromCPAN.pm line 397.
     Use of uninitialized value in subroutine entry at /usr/lib/x86_64-linux-gnu/perl5/5.40/AptPkg/Cache.pm line 50.
     + Test2::V0 found in libtest-simple-perl | libtest2-suite-perl
     Use of uninitialized value $pkg in substitution (s///) at /usr/share/perl5/DhMakePerl/Utils.pm line 131.
     Use of uninitialized value $pkg in string eq at /usr/share/perl5/DhMakePerl/Utils.pm line 133.
     Use of uninitialized value $pkg in string eq at /usr/share/perl5/DhMakePerl/Utils.pm line 133.
     Use of uninitialized value $pkg in string eq at /usr/share/perl5/DhMakePerl/Utils.pm line 133.
     Use of uninitialized value $pkg in pattern match (m//) at /usr/share/perl5/DhMakePerl/Utils.pm line 133.
     Use of uninitialized value $pkg in pattern match (m//) at /usr/share/perl5/DhMakePerl/Utils.pm line 133.

It appears from a brief look at the code, that 
Debian::Control::FromCPAN is assuming a single Debian::Dependency->pkg 
is returned from Debian::AptContents->find_perl_module_package. But 
since Test2::V0 seems to be satisfied by multiple packages, it actually 
returns a dependency where only Debian::Dependency->alternatives is 
valid.

This does not stop the correct dependency making it into 
debian/control, so it still appears to be working as designed. Perhaps 
then this is a purely cosmetic issue.

-- System Information:
Debian Release: 13.1
   APT prefers stable-updates
   APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.41+deb13-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages dh-make-perl depends on:
ii  debhelper                  13.24.2
ii  dpkg-dev                   1.22.21
ii  fakeroot                   1.37.1.1-1
ii  libapt-pkg-perl            0.1.42
ii  libarray-unique-perl       0.09-1
ii  libclass-accessor-perl     0.51-2
ii  libconfig-ini-perl         1:0.029-1
ii  libconfig-model-dpkg-perl  3.014
ii  libdebian-source-perl      0.128
ii  libdpkg-perl               1.22.21
ii  libemail-address-xs-perl   1.05-1+b4
ii  libemail-date-format-perl  1.008-1
ii  libfile-which-perl         1.27-2
ii  liblist-moreutils-perl     0.430-2
ii  libmodule-depends-perl     0.16-5
ii  libpod-parser-perl         1.67-1
ii  libsoftware-license-perl   0.104006-1
ii  libtie-ixhash-perl         1.23-4
ii  libwww-mechanize-perl      2.19-1
ii  libwww-perl                6.78-1
ii  libyaml-libyaml-perl       0.903.0+ds-1
ii  libyaml-perl               1.31-1
ii  make                       4.4.1-2
ii  perl                       5.40.1-6

Versions of packages dh-make-perl recommends:
ii  apt-file              3.3
ii  git                   1:2.47.3-0+deb13u1
ii  libmodule-build-perl  0.423400-3
ii  libsys-cpu-perl       0.61-3+b4
ii  pristine-tar          1.50+nmu2

dh-make-perl suggests no packages.

-- no debconf information



More information about the pkg-perl-maintainers mailing list