Skip Menu |

This queue is for tickets about the Module-Build CPAN distribution.

Report information
The Basics
Id: 5489
Status: resolved
Priority: 0/
Queue: Module-Build

People
Owner: Nobody in particular
Requestors: jesse [...] erlbaum.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.24
Fixed in: (no value)



Subject: "LIB" and "PREFIX" args not properly supported by Module::Build::Compat->run_build_pl
In order to build libraries outside of Perl's site_lib, I use the following with Makefile.PL: export PERL_PARTS=/home/jesse/perl perl Makefile.PL LIB=$PERL_PARTS/lib PREFIX=$PERL_PARTS This translates into: perl Build.PL lib=/home/jesse/perl/lib \ config=prefix=/home/jesse/perl The new argument, "lib", doesn't seem to have any effect -- at least not the effect it does have via Makefile.PL. The "PREFIX" arg has been translated into "config=prefix", which looks like a bug to me. The effect is that I get a permissions error when M::B tried to install into the site_lib as a non-root user.
Hi Jesse, There are a couple separate issues here. The first is that the code was *supposed* to die with a helpful error message when the PREFIX argument was used: Sorry, PREFIX is not supported. See the Module::Build documentation for 'destdir' or 'install_base' instead. But because I screwed an 'elsif (...)' up, that wasn't happening, and you were getting the "config=prefix=$blah" thing instead. I've fixed that now. Second, the LIB argument was completely unsupported, but I actually think we can do a decent job at supporting it. I'm adding explicit code to M::B::Compat to pass it through, so that "perl Makefile.PL LIB=$blah" becomes "perl Build.PL --install_path lib=$blah". Thanks for the report. -Ken
Okay, I've checked in a fix for both issues.