Subject: | Reports test failure when Module::Build not installed |
CPAN::YACSmoke reports a failure when it cannot run Build.PL because
Module::Build is not installed. My modules provide both Build.PL *and*
Makefile.PL, so the end user has a choice in how to install the module.
The whole POINT of providing both is so that the user need not have
Module::Build installed. The suggested fix below (adding Module::Build
as a prerequisite in Makefile.PL) is insane.
I resent that this is counted as a failure of my module in CPAN Tester
reports.
An excerpt from the test report follows. See also
http://www.nntp.perl.org/group/perl.cpan.testers/2008/05/msg1522754.html
for the full report.
------
[ERROR] [Mon May 26 01:11:05 2008] MAKE failed: cp
lib/Time/Normalize.pm blib/lib/Time/Normalize.pm
Manifying blib/man3/Time::Normalize.3
/Volumes/Media/smoke/perl562/bin/perl "-Iblib/arch" "-Iblib/lib"
Build.PL Build
Can't locate Module/Build.pm in @INC (@INC contains: blib/arch blib/lib
/Volumes/Media/smoke/perl562/lib/5.6.2/darwin-thread-multi-64int
/Volumes/Media/smoke/perl562/lib/5.6.2
/Volumes/Media/smoke/perl562/lib/site_perl/5.6.2/darwin-thread-multi-64int
/Volumes/Media/smoke/perl562/lib/site_perl/5.6.2
/Volumes/Media/smoke/perl562/lib/site_perl .) at Build.PL line 3.
BEGIN failed--compilation aborted at Build.PL line 3.
make: *** [Build] Error 2
MISSING PREREQUISITES:
It was observed that the test suite seem to fail without these modules:
Module::Build
As such, adding the prerequisite module(s) to 'PREREQ_PM' in your
Makefile.PL should solve this problem. For example: