Eric Wilhelm wrote:
Working on an automated build system for multiple computers on multiple
platforms...
I realized that 'perl Build.PL' doesn't return a failure exit status
when dependencies are missing. Do CPAN/CPANPLUS not check this?
I added a 'check' action to my subclass which just calls check_prereq(),
but this means I'm running the prereq scan twice ('perl Build.PL
&& ./Build check').
Would it be reasonable to add a --strict-dep option or something to make
it die in new()? Alternatively, I could go for something that skips it
in new() or a sub-part like init_checks() to be overridden.
Thanks,
Eric
It is not necessarily the responsibility of Build.PL to check for the
existence of its dependencies.
With regards to dependencies, the primary responsibility it has is to
take what is an arbitrarily complex dependency requirement (which
includes platform or host-specific dependencies in the general case) and
"resolve" those dependencies down to a static list for the current host.
Adam K