summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/perl/perl-5.12.3/debian/cpan_config_path.diff
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/perl/perl-5.12.3/debian/cpan_config_path.diff')
-rw-r--r--meta/recipes-devtools/perl/perl-5.12.3/debian/cpan_config_path.diff24
1 files changed, 24 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl-5.12.3/debian/cpan_config_path.diff b/meta/recipes-devtools/perl/perl-5.12.3/debian/cpan_config_path.diff
new file mode 100644
index 0000000000..27b4a45440
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl-5.12.3/debian/cpan_config_path.diff
@@ -0,0 +1,24 @@
1Upstream-Status:Inappropriate [debian patch]
2
3Subject: Set location of CPAN::Config to /etc/perl as /usr may not be writable.
4
5
6---
7 cpan/CPAN/lib/CPAN/HandleConfig.pm | 2 +-
8 1 files changed, 1 insertions(+), 1 deletions(-)
9
10diff --git a/cpan/CPAN/lib/CPAN/HandleConfig.pm b/cpan/CPAN/lib/CPAN/HandleConfig.pm
11index 76cd81e..65a3b27 100644
12--- a/cpan/CPAN/lib/CPAN/HandleConfig.pm
13+++ b/cpan/CPAN/lib/CPAN/HandleConfig.pm
14@@ -543,7 +543,7 @@ sub load {
15 $configpm = $INC{"CPAN/MyConfig.pm"};
16 $redo++;
17 } else {
18- my($path_to_cpan) = File::Basename::dirname($INC{"CPAN.pm"});
19+ my($path_to_cpan) = '/etc/perl';
20 my($configpmdir) = File::Spec->catdir($path_to_cpan,"CPAN");
21 my($configpmtest) = File::Spec->catfile($configpmdir,"Config.pm");
22 my $inc_key;
23--
24tg: (a508b62..) debian/cpan_config_path (depends on: upstream)