develooper Front page | perl.perl5.porters | Postings from November 2004

Re: Restarting MakeMaker development

Michael G Schwern
November 24, 2004 19:01
Re: Restarting MakeMaker development
Message ID:
On Tue, Nov 23, 2004 at 09:53:41AM -0800, Justin Mason wrote:
> I took a look at Module::Builder a while back, and noted that it
> didn't yet support the equivalent of
>     perl Makefile.PL PREFIX=$HOME
> to install into non-/usr locations.  That's a requirement for SpamAssassin
> at least.  Has that been fixed?

Module::Build has the moral equivalent in install_base.

	perl Build.PL install_base=~

This is different from PREFIX in that its not going to try and guess how
you want things installed based on your system installation.  It's just
going to plop things into ~/bin, ~/lib, ~/man, etc...  This is much
saner and easier to predict than PREFIX.

Unfortunately, this often means MB will put things in a slightly different
location than MM does.  You can exactly control where MB puts things (as
you can with MM) by passing various explicit install_* parameters so it
matches exactly where MM puts its stuff.

Meanwhile, MM is going to have INSTALLBASE added to it to emulate MB.
Also there are plans afoot to have a .modulebuildrc file which stores your
default Build settings so you don't have to keep passing them in on the
command line.

MB has the capability of generating a Makefile.PL wrapper 
(see Module::Build::Compat).  Unfortunately this does not understand
PREFIX, the logic is too hairy to emulate.  Ken and I are working on getting
that working.

Michael G Schwern
If you got the wax out of your ears you could hear the twister picking up
the trailer park of your future! Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About