Subject: | INSTALLDIRS needs to be 'perl' for >= perl-5.9.3 |
Hi,
Archive::Tar is part of the core distribution since perl-5.9.3, and
is thus installed in lib/<version>/Archive/Tar*.
However, the install dir for the Archive::Tar CPAN distribution is
currently lib/site_perl/<version>/. This means you can install newer
versions of Archive::Tar, but perl-5.9.3 and later will still only
find the old version.
The attached patch (against A::T 1.29) will set EU::MM's INSTALLDIRS
variable depending on the perl version, to ensure the module is
installed in the correct location for all perl versions.
-- Marcus
Subject: | AT-1.29-MakefilePL.diff |
--- Makefile.PL.orig 2006-03-05 12:46:17.000000000 +0100
+++ Makefile.PL 2006-03-05 13:15:03.000000000 +0100
@@ -50,6 +50,7 @@
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz' },
EXE_FILES => ['bin/ptar', 'bin/ptardiff'],
PREREQ_PM => $prereqs,
+ INSTALLDIRS => ($] >= 5.009003 ? 'perl' : 'site'),
AUTHOR => 'Jos Boumans <kane[at]cpan.org>',
ABSTRACT => 'Manipulates TAR archives'
);