Subject: | Compat config handling for vendorlib broken (PATCH) |
When you specify INSTALLVENDORLIB and others on a passthrough
Makefile.PL, Build.PL gets called with --config HASH(...). The attached
patch fixes this issue. However, the install location for Module::Build
itself when using the Makefile.PL approach is incorrect.
/usr/bin/perl Build --makefile_env_macros 1 install
Installing /home/tpayne/code/fitplanet/ext/share/man/man1/config_data.1
Installing
/home/tpayne/code/fitplanet/ext/"/home/tpayne/code/fitplanet/ext/lib/perl5"/Module/Build.pm
Notice how my prefix is getting included in the destination directory twice.
This is pretty much a show stopper for me as my package manager only
knows about Makefile.PL and always passes all of the various directories
to it
Subject: | fix-config-gen-for-vendor.patch |
--- Module-Build-0.32/lib/Module/Build/Compat.pm 2009-02-25 17:43:07.000000000 -0800
+++ perl-Module-Build-0.32-1/lib/Module/Build/Compat.pm 2009-03-03 19:05:36.000000000 -0800
@@ -40,7 +40,7 @@
map {
my $name = "INSTALL".$_."LIB";
$name => sub {
- my @ret = (config => { lc $name => shift });
+ my @ret = (config => "@{[lc $name]}=@{[shift]}" );
print STDERR "# Converted to @ret\n";
return @ret;