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

INSTALLDIRS and dual-life modules

Thread Next
From:
Paul Marquess
Date:
April 26, 2008 04:18
Subject:
INSTALLDIRS and dual-life modules
Message ID:
032a01c8a78f$2a880ba0$203c140a@myopwv.com
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
http://rt.cpan.org/Ticket/Display.html?id=35342

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?  

Paul


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About