----- 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
|