Bug#725206: dh-make-perl: dies with "pkg is mandatory at /usr/share/perl5/Debian/Control/FromCPAN.pm line 335"

gregor herrmann gregoa at debian.org
Wed Oct 2 20:05:43 UTC 2013


On Wed, 02 Oct 2013 21:15:20 +0200, Florian Schlichting wrote:

> For packages that depend on a version of Module::Build newer than what
> is in Perl core, dh-make-perl dies in the process with the message "pkg
> is mandatory at /usr/share/perl5/Debian/Control/FromCPAN.pm line 335."

Nice finding, I also encountered this but didn't know here it comes
from (and was too lazy to look).
 
> CPAN modules where this happens are for example Path::IsDev or
> File::ShareDir::ProjectDistDir. A workaround is to lower the
> dependencies on M::B from 0.4007 to 0.4000 in the upstream metadata.

Or just pass the package name:

% dh-make-perl --cpan Path::IsDev --packagename libpath-isdev-perl
[rest of your options in the config file]

works fine:
 
> This is the output I get for Path::IsDev:
> [fs at thinkpad] dh-make-perl --pkg-perl --source-format "3.0 (quilt)" --dh 8 --vcs git --closes 725137 --cpan Path::IsDev

> Needs the following debian packages: perl (>= 5.10.1), libmodule-runtime-perl, libpath-tiny-perl, libsub-exporter-perl, libclass-tiny-perl (>= 0.010)
> + Test::Fatal found in libtest-fatal-perl
> = IO::Handle is in core since 5.3.70
> = Module::Build >= 0.4007 is in core since 5.19.3
>   ! perl (>= 5.19.3) is too new. Adding alternative dependency
> pkg is mandatory at /usr/share/perl5/Debian/Control/FromCPAN.pm line 335.

Needs the following debian packages: perl (>= 5.10.1), libclass-tiny-perl (>= 0.010), libpath-tiny-perl, libmodule-runtime-perl, libsub-exporter-perl
= IPC::Open3 is in core since 5.0.0
= Test::More >= 0.98 is in core since 5.13.11
= Module::Build >= 0.4007 is in core since 5.19.3
  ! perl (>= 5.19.3) is too new. Adding alternative dependency
= IO::Handle is in core since 5.3.70
= FindBin is in core since 5.3.70
= File::Temp is in core since 5.6.1
+ Test::Fatal found in libtest-fatal-perl
= File::Spec is in core since 5.4.50

 
Cheers,
gregor

-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Kurt Ostbahn & Kombo: Ohjo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20131002/9b2cbd04/attachment.sig>


More information about the pkg-perl-maintainers mailing list