Subject: | the install action defined in modulebuildrc is too specific. |
Module::Build's modulebuildrc file uses the given action to define the scope of a
setting. Setting the install_base parameter for the install action prevents the use
of the command-line option during the initial Build.
It is probably a better idea to use the psuedo-action Build_PL instead.
(https://rt.cpan.org/Public/Bug/Display.html?id=57043#txn-770021)
Patch attached changes the modulebuildrc template.
Note, at the moment this does not yet work as M::B appears to have a bug where it
will ignore parameters specified from the command-line in preference to those
provided through the rc file.
See: https://rt.cpan.org/Public/Bug/Display.html?id=57043
Subject: | modulebuildrc-action.patch |
diff -ru local-lib-1.006000/lib/local/lib.pm patched-1.006000/lib/local/lib.pm
--- local-lib-1.006000/lib/local/lib.pm 2010-03-31 14:12:22.000000000 -0400
+++ patched-1.006000/lib/local/lib.pm 2010-04-29 14:07:15.000000000 -0400
@@ -237,7 +237,7 @@
warn "Attempting to create file ${modulebuildrc_path}\n";
open MODULEBUILDRC, '>', $modulebuildrc_path
|| Carp::croak("Couldn't open ${modulebuildrc_path} for writing: $!");
- print MODULEBUILDRC qq{install --install_base ${path}\n}
+ print MODULEBUILDRC qq{Build_PL --install_base ${path}\n}
|| Carp::croak("Couldn't write line to ${modulebuildrc_path}: $!");
close MODULEBUILDRC
|| Carp::croak("Couldn't close file ${modulebuildrc_path}: $@");