Subject: | incompatible with EUMM with respect to PREFIX & INSTALLSITELIB |
It seems that Module-Build's Compat mode and ExtUtils-MakeMaker handle
the PREFIX & INSTALLSITELIB parameters differently.
I'm trying to install Module-Build v0.40 using Makefile.PL (i.e.
compatibility mode, since I don't have Module-Build itself yet). I'm
running Makefile.PL as follows:
Makefile.PL INSTALLDIRS=site INSTALLSITELIB=/some/path/lib
PREFIX=/other/path
ExtUtils-MakeMaker installs this as follows (when I use these options
for a EUMM-driven distro):
* lib goes to INSTALLSITELIB
* everything else goes to PREFIX (e.g. libdoc goes to
PREFIX/share/man/man3)
However, Module-Build gives preference to PREFIX, completely ignoring
INSTALLSITELIB:
* everything goes under PREFIX
* lib ends up in PREFIX/lib64/perl5/site_perl (INSTALLSITELIB is
ignored)
It seems that the workaround is to name all 8 INSTALLSITE* parameters
and omit PREFIX:
Makefile.PL INSTALLDIRS=site \
INSTALLSITELIB=/some/path/lib \
INSTALLSITEARCH=/other/path/... \
INSTALLSITEBIN=/other/path/... \
INSTALLSITEBIN=/other/path/... \
INSTALLSITEMAN1DIR=/other/path/... \
INSTALLSITEMAN3DIR=/other/path/... \
INSTALLSITEHTML1DIR=/other/path/... \
INSTALLSITEHTML3DIR=/other/path/...
(Or is there a better way I am missing?)
Sam