Group :: Development/Perl
RPM: perl-CPAN
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: perl-CPAN-1.70-alt-deb-etc-perl5.patch
Download
Download
Set location of CPAN::Config to /etc/perl5 as /usr may not be writable.
diff -ur perl-5.8.0.orig/lib/CPAN.pm perl-5.8.0/lib/CPAN.pm
--- perl-5.8.0.orig/lib/CPAN.pm Sun Jun 2 03:03:15 2002
+++ perl-5.8.0/lib/CPAN.pm Sun Jul 21 22:54:21 2002
@@ -1190,7 +1190,7 @@
$configpm = $INC{"CPAN/MyConfig.pm"};
$redo++;
} else {
- my($path_to_cpan) = File::Basename::dirname($INC{"CPAN.pm"});
+ my($path_to_cpan) = '/etc/perl5';
my($configpmdir) = File::Spec->catdir($path_to_cpan,"CPAN");
my($configpmtest) = File::Spec->catfile($configpmdir,"Config.pm");
if (-d $configpmdir or File::Path::mkpath($configpmdir)) {