diff options
Diffstat (limited to 'meta/recipes-devtools/perl/perl-5.8.8/58_debian_cpan_config_path.patch')
-rw-r--r-- | meta/recipes-devtools/perl/perl-5.8.8/58_debian_cpan_config_path.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl-5.8.8/58_debian_cpan_config_path.patch b/meta/recipes-devtools/perl/perl-5.8.8/58_debian_cpan_config_path.patch new file mode 100644 index 0000000000..b38c70c515 --- /dev/null +++ b/meta/recipes-devtools/perl/perl-5.8.8/58_debian_cpan_config_path.patch | |||
@@ -0,0 +1,14 @@ | |||
1 | Set location of CPAN::Config to /etc/perl as /usr may not be writable. | ||
2 | |||
3 | diff -Naur --exclude=debian perl-5.8.8.orig/lib/CPAN.pm perl-5.8.8/lib/CPAN.pm | ||
4 | --- perl-5.8.8.orig/lib/CPAN.pm 2006-02-01 01:11:22.000000000 +1100 | ||
5 | +++ perl-5.8.8/lib/CPAN.pm 2006-02-02 23:49:26.000000000 +1100 | ||
6 | @@ -1246,7 +1246,7 @@ | ||
7 | $configpm = $INC{"CPAN/MyConfig.pm"}; | ||
8 | $redo++; | ||
9 | } else { | ||
10 | - my($path_to_cpan) = File::Basename::dirname($INC{"CPAN.pm"}); | ||
11 | + my($path_to_cpan) = '/etc/perl'; | ||
12 | my($configpmdir) = File::Spec->catdir($path_to_cpan,"CPAN"); | ||
13 | my($configpmtest) = File::Spec->catfile($configpmdir,"Config.pm"); | ||
14 | if (-d $configpmdir or File::Path::mkpath($configpmdir)) { | ||