diff options
Diffstat (limited to 'meta/recipes-devtools/perl/perl-5.12.2/debian/cpanplus_config_path.diff')
-rw-r--r-- | meta/recipes-devtools/perl/perl-5.12.2/debian/cpanplus_config_path.diff | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl-5.12.2/debian/cpanplus_config_path.diff b/meta/recipes-devtools/perl/perl-5.12.2/debian/cpanplus_config_path.diff new file mode 100644 index 0000000000..6956218f8a --- /dev/null +++ b/meta/recipes-devtools/perl/perl-5.12.2/debian/cpanplus_config_path.diff | |||
@@ -0,0 +1,43 @@ | |||
1 | From: Niko Tyni <ntyni@debian.org> | ||
2 | Subject: Save local versions of CPANPLUS::Config::System into /etc/perl. | ||
3 | |||
4 | This is a configuration file and needs to go in /etc by policy. | ||
5 | Besides, /usr may not even be writable. | ||
6 | |||
7 | This mirrors the Debian setup of CPAN.pm in debian/cpan_config_path. | ||
8 | |||
9 | See #533707. | ||
10 | |||
11 | --- | ||
12 | cpan/CPANPLUS/lib/CPANPLUS/Configure.pm | 1 + | ||
13 | cpan/CPANPLUS/lib/CPANPLUS/Internals/Constants.pm | 3 +++ | ||
14 | 2 files changed, 4 insertions(+), 0 deletions(-) | ||
15 | |||
16 | diff --git a/cpan/CPANPLUS/lib/CPANPLUS/Configure.pm b/cpan/CPANPLUS/lib/CPANPLUS/Configure.pm | ||
17 | index baac91d..a3794de 100644 | ||
18 | --- a/cpan/CPANPLUS/lib/CPANPLUS/Configure.pm | ||
19 | +++ b/cpan/CPANPLUS/lib/CPANPLUS/Configure.pm | ||
20 | @@ -276,6 +276,7 @@ Saves the configuration to the package name you provided. | ||
21 | If this package is not C<CPANPLUS::Config::System>, it will | ||
22 | be saved in your C<.cpanplus> directory, otherwise it will | ||
23 | be attempted to be saved in the system wide directory. | ||
24 | +(On Debian systems, this system wide directory is /etc/perl.) | ||
25 | |||
26 | If no argument is provided, it will default to your personal | ||
27 | config. | ||
28 | diff --git a/cpan/CPANPLUS/lib/CPANPLUS/Internals/Constants.pm b/cpan/CPANPLUS/lib/CPANPLUS/Internals/Constants.pm | ||
29 | index 1a38200..6ee0d82 100644 | ||
30 | --- a/cpan/CPANPLUS/lib/CPANPLUS/Internals/Constants.pm | ||
31 | +++ b/cpan/CPANPLUS/lib/CPANPLUS/Internals/Constants.pm | ||
32 | @@ -199,6 +199,9 @@ use constant CONFIG_USER_FILE => sub { | ||
33 | ) . '.pm'; | ||
34 | }; | ||
35 | use constant CONFIG_SYSTEM_FILE => sub { | ||
36 | + # Debian-specific shortcut | ||
37 | + return '/etc/perl/CPANPLUS/Config/System.pm'; | ||
38 | + | ||
39 | require CPANPLUS::Internals; | ||
40 | require File::Basename; | ||
41 | my $dir = File::Basename::dirname( | ||
42 | -- | ||
43 | tg: (c823880..) debian/cpanplus_config_path (depends on: upstream) | ||