Subject: | undeclared dep on Test::Builder::Module |
Date: | Mon, 24 Mar 2014 09:47:47 +0000 |
To: | bug-Time-Duration-Parse [...] rt.cpan.org |
From: | Zefram <zefram [...] fysh.org> |
The Test::More that is bundled with Time-Duration-Parse-0.09 includes
the line
use Test::Builder::Module 0.99;
but nowhere does the distro declare this dependency. If installing on
a fresh 5.18.2, for example, which bundles Test::Buulder::Module 0.98,
failures like this are seen during testing:
Test::Builder::Module version 0.99 required--this is only version 0.98 at /opt/perl-5.18.2/cpan/build/Time-Duration-Parse-0.09-7uHJhH/inc/Test/More.pm line 23.
BEGIN failed--compilation aborted at /opt/perl-5.18.2/cpan/build/Time-Duration-Parse-0.09-7uHJhH/inc/Test/More.pm line 23.
Compilation failed in require at t/00_compile.t line 2.
BEGIN failed--compilation aborted at t/00_compile.t line 2.
t/00_compile.t ....
Dubious, test returned 255 (wstat 65280, 0xff00)
There are other undeclared dependencies too, but this one is the most
likely to cause grief. A quick perusal of inc/ reveals these external
dependencies:
Config
Cwd
ExtUtils::MakeMaker
Fcntl
File::Find
File::Path
Test::Builder::Module 0.99
constant
perl 5.006
strict
vars
warnings
Of these, META.yml mentions only ExtUtils::MakeMaker and perl. Likewise,
lib/Time/Duration/Parse.pm itself has these external dependencies:
Carp
Exporter::Lite
strict
warnings
of which META.yml mentions only Exporter::Lite.
-zefram