develooper Front page | perl.perl5.porters | Postings from April 2008

INSTALLDIRS and dual-life modules

Thread Next
Paul Marquess
April 26, 2008 04:18
INSTALLDIRS and dual-life modules
Message ID:
Hi folks,

Jerry D. Hedden just highlighted an issue with the latest CPAN versions of
my compression modules when you try to install them with 5.10.0. See

Here is the text from one of the bug reports

    The 5.10.x distribution has the IO-Compress-Base files 
    installed in the architecture dependent dirs.  Updating 
    from CPAN places the new files under the architecture 
    independent dirs which are masked by the architecture 
    dependent dirs because of their order of @INC.  Therefore, 
    the update is masked by the older version.

    The attached patch to Makefile.PL corrects this.

So Jerry suggests that I add the line below to my Makefile.PL

     INSTALLDIRS => ($] >= 5.009 ? 'perl' : 'site'),
+    INST_LIB    => 'blib/arch',

I seem to remember a discussion a while back about dual-life modules and
where they should install themselves. I *think* that is where the logic for
INSTALLDIRS line originated.

So is INST_LIB the way to deal with this issue?  


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About