Subject: | fails building under Shipwright, possibly in other (strange?) environments |
Builds fine in a regular environment, using M::B 0.340201
But, building a vessel that includes CGI::Simple under Shipwright,
CGI::Simple fails with the following output:
=============
bin/shipwright-builder --install-base=$PWD/../sgn_build --skip-test
--skip-man-pages --verbose --only cpan-IO-Scalar,cpan-CGI-Simple
Building cpan-CGI-Simple
WARNING: Can't find resource file '' defined in environment.
No options loaded
Checking whether your kit is complete...
Looks good
Checking prerequisites...
- ERROR: IO::Scalar is not installed
ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the
versions
of the modules indicated above before proceeding with this installation
Deleting Build
Removed previous script 'Build'
Creating new 'Build' script for 'CGI-Simple' version '1.112'
Can't locate object method "find_perl_interpreter" via package
"Module::Build" at Build line 49.
build cpan-CGI-Simple make part failed.
at bin/shipwright-builder line 548
main::_install('cpan-CGI-Simple', 'GLOB(0x8428138)') called at
bin/shipwright-builder line 403
main::install() called at bin/shipwright-builder line 266
============
But, if I add the following, it builds OK.
--- inc/MyBuilder.pm (revision 1107)
+++ inc/MyBuilder.pm (working copy)
@@ -1,5 +1,6 @@
package MyBuilder;
+use Module::Build;
use base qw( Module::Build );
sub create_build_script {
Now, I completely don't understand why this helps. But it causes
CGI::Simple to build correctly under Shipwright, where it didn't before.