summaryrefslogtreecommitdiff
path: root/packages/perl/perl-5.8.8/58_debian_cpan_config_path.patch
diff options
context:
space:
mode:
authorJamie Lenehan <lenehan@twibble.org>2007-04-26 07:10:41 +0000
committerJamie Lenehan <lenehan@twibble.org>2007-04-26 07:10:41 +0000
commit17bf542a4ab65015d5d10c9fbbe7759294d4821c (patch)
treecb263b090836e8f4444119c32093adcdb3366f44 /packages/perl/perl-5.8.8/58_debian_cpan_config_path.patch
parent8114f248dbede4b5f143efa14c444a2b0be69f0e (diff)
perl 5.8.8: Move configuration files for libnet and cpan to /etc/perl to
match the debian configuration. It moves these configuration files to /etc/ to allow for read only /usr installations.
Diffstat (limited to 'packages/perl/perl-5.8.8/58_debian_cpan_config_path.patch')
-rw-r--r--packages/perl/perl-5.8.8/58_debian_cpan_config_path.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/perl/perl-5.8.8/58_debian_cpan_config_path.patch b/packages/perl/perl-5.8.8/58_debian_cpan_config_path.patch
new file mode 100644
index 0000000000..b38c70c515
--- /dev/null
+++ b/packages/perl/perl-5.8.8/58_debian_cpan_config_path.patch
@@ -0,0 +1,14 @@
+Set location of CPAN::Config to /etc/perl as /usr may not be writable.
+
+diff -Naur --exclude=debian perl-5.8.8.orig/lib/CPAN.pm perl-5.8.8/lib/CPAN.pm
+--- perl-5.8.8.orig/lib/CPAN.pm 2006-02-01 01:11:22.000000000 +1100
++++ perl-5.8.8/lib/CPAN.pm 2006-02-02 23:49:26.000000000 +1100
+@@ -1246,7 +1246,7 @@
+ $configpm = $INC{"CPAN/MyConfig.pm"};
+ $redo++;
+ } else {
+- my($path_to_cpan) = File::Basename::dirname($INC{"CPAN.pm"});
++ my($path_to_cpan) = '/etc/perl';
+ 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)) {