logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: Pod on why PREFIX is not supported (was: Re: [Module::Build] Should the: msg#00126

Subject: Re: Pod on why PREFIX is not supported (was: Re: [Module::Build] Should the docs be split into user and developer docs?)
On Thu, Dec 16, 2004 at 02:00:35PM +0000, Steve Purkis wrote:
> But what's the difference if a user gets bit by that or by finding out 
> there's no PREFIX, and they have to use 'install_base'?  So the 
> scenario:
> 
>       # set up PERL5LIB for MM-typical PREFIX install
> 
>       ~/SomeModule-1.00 $ ./Build install prefix=/home/spurkis
> 
>       ~ $ perl -MSomeModule
>       # error
> 
> User: "what happened?"  ... <looks in M::B docs> ... "ah, I've got to 
> set PERL5LIB differently"

That's why I suggested passing PREFIX or prefix to Module::Build should
produce a warning, "no, you want install_base isntead".

In general MB silently throws away unknown arguments.  It needs to
warn when given things it doesn't understand.


> We could even circumvent that problem by suggesting the user update 
> their PERL5LIB after the install is complete.  (not a bad idea for the 
> install action even if we don't go with prefix).

This is a good idea.


> >More to the point, what's to gain?
> 
> Perception - "we _do_ support prefix, just not MM's insane PREFIX".

The warning should handle this.  Its a balance between "we support
something like prefix, and here it is" and "why is this putting things
in a different location than MakeMaker?!"

Keep in mind also that I'm adding INSTALL_BASE to MakeMaker.


-- 
Michael G Schwern        schwern@xxxxxxxxx  http://www.pobox.com/~schwern/
Playstation?  Of course Perl runs on Playstation.
    -- Jarkko Hietaniemi


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/


<Prev in Thread] Current Thread [Next in Thread>