pcp
[Top] [All Lists]

Re: [pcp] Problems with Perl version of simple PMDA

To: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Subject: Re: [pcp] Problems with Perl version of simple PMDA
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Sun, 24 Mar 2013 23:56:33 -0400 (EDT)
Cc: PCP Mailing List <pcp@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <514FC85B.4050009@xxxxxxxxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>

----- Original Message -----
> On 25/03/13 12:45, Nathan Scott wrote:
> > ...
> > On my box, looks like
> > /System/Library/Perl/5.10.0/ExtUtils/MakeMaker.pm
> > is creating a Makefile for us that has "INSTALL_BASE = /usr".  I
> > can't
> > see anything we're doing that would influence that prefix, it seems
> > to
> > have come up with an invalid setting all on its own?
> 
> Yep, I also determined that /usr/lib/perl5 was coming from
> MakeMaker.pm
> not any of our code.
> 
> So we either need to over-ride in Makefile.PL, or somehow get
> /usr/lib/perl5 added to the system Perl's @INC list.
> 
> I'm already way out of my Perl depth here!
> 

I think in src/include/builddefs.in we'll need to do something magic
here:

# MakeMaker INSTALL_BASE needs to be unset for proper vendor_perl paths to be 
used for --prefix=/usr;
ifeq "$(PERL_INSTALL_BASE)" "/usr"
ifneq "$(TARGET_OS)" "darwin"
MAKEMAKER_EXTRA_OPTIONS=
else
MAKEMAKER_EXTRA_OPTIONS=INSTALL_BASE=$(PERL_INSTALL_BASE)  
INSTALLBASE=$(PERL_INSTALL_BASE)
endif
else
MAKEMAKER_EXTRA_OPTIONS=INSTALL_BASE=$(PERL_INSTALL_BASE)  
INSTALLBASE=$(PERL_INSTALL_BASE)
endif


I'm not really sure what though - most @INC paths look version
dependent?  except for /Network/Library/Perl, for me.  Oh, just
found a --with-perl_install_base configure option ... that'd be
something to experiment with in tandem, I guess.

cheers.

--
Nathan

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