Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37733242
en ru br
ALT Linux repos
S:2.36-alt1
5.0: 1.93.01-alt1
4.1: 1.76-alt2
4.0: 1.76-alt2
3.0: 1.76-alt2

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


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)) {
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin