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

Damyan Ivanov dmn at debian.org
Fri Oct 11 18:23:57 UTC 2013


-=| Florian Schlichting, 02.10.2013 21:15:20 +0200 |=-
> Package: dh-make-perl
> Version: 0.79-1
> Severity: important
> 
> 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."

I am having trouble reproducing this.

> 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.
> 
> 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
> == dh-make-perl 0.79 ==
>> = 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.

With exactly the same command line as above (and verborse:1 in 
dh-make-perl.conf) I get:

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

Needs the following debian packages during building: libmodule-build-perl (>= 0.4007) | perl (>= 5.19.3), perl (>= 5.13.11), libtest-fatal-perl

Any clues for reproducing?
-------------- 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/20131011/d718a8fd/attachment.sig>


More information about the pkg-perl-maintainers mailing list