Subject: | module needs to be mentioned in both 'requires' and 'build-requires' |
At least under some circumstances, a module mentioned in 'requires' will
not be available at build time. This contradicts the documented
behavior and therefore is either a bug in function or in documentation,
depending on the intent.
An example is Marpa::HTML on CPAN. It requires the Marpa module. In
Marpa::HTML 0.101_002 this is both a 'require' and a 'build_requires',
and cpantesters (at this writing) reports 16 PASSes and 6 NAs. In
Marpa::HTML 0.101_000 only the 'require' was specifed. Results there
are 1 PASS, 9 NAs and 15 UNKNOWNs.
On inspection of the cpantesters results, the additional NAs and UNKNOWN
for Marpa::HTML 0.101_000 seem entirely to be the product of failure to
load the Marpa module at build time.
There is a thread on this in the perl.module-authors group:
http://groups.google.com/group/perl.module-authors/browse_thread/thread/e3712071c1622d55#