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