Subject: | M::B tests complain during Perl core "make test" |
On the occasions of several recent Perl distribution releases, there
have been p5p mentions of test complaints traceable back to
Module::Build tests, see e.g.
http://code.activestate.com/lists/perl5-porters/165285/
This non-fatal issue has been publicly observed on HP-UX, AIX, Mac OS X,
and FreeBSD.
A sample of this phenomenon is readily reproducible by running one of
the offending M::B tests from the "t" subdirectory in the perl build
directory:
$ ./perl harness ../cpan/Module-Build/t/install.t
../cpan/Module-Build/t/install.t .. 1/34 [Pod::Html 1.11] pod2html(
q{--flush}, q{--title=Simple - Perl extension for blah blah blah},
q{--podpath=../../t/lib}, q{--infile=blib/lib/Simple.pm},
q{--outfile=blib/libhtml/site/lib/Simple.tmp}, q{--podroot=../../t},
q{--htmlroot=../..}, q{--header}, q{--backlink=Back to Top}) failed:
t/install.t: error opening directory ../../t/lib: No such file or directory
../cpan/Module-Build/t/install.t .. 2/34 [Pod::Html 1.11] pod2html(
q{--flush}, q{--title=Simple - Perl extension for blah blah blah},
q{--podpath=../../t/lib}, q{--infile=blib/lib/Simple.pm},
q{--outfile=blib/libhtml/lib/Simple.tmp}, q{--podroot=../../t},
q{--htmlroot=..}, q{--header}, q{--backlink=Back to Top}) failed:
t/install.t: error opening directory ../../t/lib: No such file or directory
../cpan/Module-Build/t/install.t .. 10/34 [Pod::Html 1.11] pod2html(
q{--flush}, q{--title=Simple::ConfigData - Configuration for Simple},
q{--podpath=../../t/lib}, q{--infile=blib/lib/Simple/ConfigData.pm},
q{--outfile=blib/libhtml/site/lib/Simple/ConfigData.tmp},
q{--podroot=../../t}, q{--htmlroot=../../..}, q{--header},
q{--backlink=Back to Top}) failed: t/install.t: error opening directory
../../t/lib: No such file or directory
../cpan/Module-Build/t/install.t .. ok
All tests successful.
Files=1, Tests=34, 11 wallclock secs ( 0.08 usr 0.02 sys + 6.83 cusr
3.75 csys = 10.68 CPU)
Result: PASS
I think the issue here is that when the skeletal "Simple" module is
created to exercise Module::Build functionality, reasonable settings for
--podroot (and thus --podpath) are not obtained, because PERL_CORE is at
that time set to "../../t/perl", and thus the Pod::Html::pod2html()
invocation fails and spews as above.
Fixing this would clean up unnecessary noise during Perl core build/test
cycles.