On 2005-08-23 21:04:11 +0200, Peter J. Holzer wrote:
> On 2005-08-23 14:16:08 -0400, Charlie Brady wrote:
> > Is it impractical to build your RPMs so that they are version agnostic? 
> > Installing the modules directly into /usr/lib/perl5/site_perl would work 
> > for all supported versions, would it not?
> 
> I think this should work, or at least reduce the number of required
> versions (dependencies may still be different). I'll look into it.

I can force installation of the modules into /usr/lib/perl5/site_perl
with 

    perl Makefile.PL INSTALLSITELIB=/usr/lib/perl5/site_perl

That should work for any Redhat/Fedora version I can think of. But I'm
still wondering if this is a good idea. 

Maybe I should at least check if the the path is part of INC or maybe do
something like 

perl -e 'for (@INC) { unless (m{/\d+\.\d+\.\d+(/|$)}) {print "$_\n"; exit 0} }'

to find a directory without a version number.

        hp


-- 
   _  | Peter J. Holzer    | Ich sehe nun ein, dass Computer wenig
|_|_) | Sysadmin WSR       | geeignet sind, um sich was zu merken.
| |   | [EMAIL PROTECTED]         |
__/   | http://www.hjp.at/ |    -- Holger Lembke in dan-am

Attachment: pgpHkx68LS7mp.pgp
Description: PGP signature

Reply via email to