[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Non-versioned install*lib directories



I have a local package of a Perl program with a few attached modules,
which are version-independent (at least assuming you have >= 5.004). I'd
like to have these installed into /usr/lib/perl5 rather than any
versioned subdirectory, so that the same package will run on potato
systems. Previously I was using:

  perl -MConfig -e 'print $Config{installprivlib}'

... in debian/rules to get hold of this directory. With perl-5.004 and
perl-5.005, this returned /usr/lib/perl5; with perl-5.6, it returns
/usr/lib/perl5/5.6.

Is there any %Config-like incantation that will give me the system's
non-versioned library directory across all of Debian's perl packages, or
do I have to resort to hard-coding paths now? It won't be a massive
problem within Debian systems, but it just feels less elegant.

Thanks,

-- 
Colin Watson                                     [cjw44@flatline.org.uk]



Reply to: