diff options
Diffstat (limited to 'meta/recipes-devtools/perl/perl-5.12.2/debian/cpanplus_definstalldirs.diff')
-rw-r--r-- | meta/recipes-devtools/perl/perl-5.12.2/debian/cpanplus_definstalldirs.diff | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl-5.12.2/debian/cpanplus_definstalldirs.diff b/meta/recipes-devtools/perl/perl-5.12.2/debian/cpanplus_definstalldirs.diff new file mode 100644 index 0000000000..3a1e209943 --- /dev/null +++ b/meta/recipes-devtools/perl/perl-5.12.2/debian/cpanplus_definstalldirs.diff | |||
@@ -0,0 +1,52 @@ | |||
1 | From: Niko Tyni <ntyni@debian.org> | ||
2 | Subject: Configure CPANPLUS to use the site directories by default. | ||
3 | Closes: 533707 | ||
4 | |||
5 | The core modules usually default to INSTALLDIRS=perl (ExtUtils::MakeMaker) | ||
6 | or installdirs=core (Module::Build), so we need to explicitly ask for | ||
7 | the site destination to get upgraded versions into /usr/local. | ||
8 | |||
9 | See also the sister patch, debian/cpan_definstalldirs . | ||
10 | |||
11 | --- | ||
12 | cpan/CPANPLUS/lib/CPANPLUS/Config/System.pm | 30 +++++++++++++++++++++++++++ | ||
13 | 1 files changed, 30 insertions(+), 0 deletions(-) | ||
14 | |||
15 | diff --git a/cpan/CPANPLUS/lib/CPANPLUS/Config/System.pm b/cpan/CPANPLUS/lib/CPANPLUS/Config/System.pm | ||
16 | new file mode 100644 | ||
17 | index 0000000..5e6e11e | ||
18 | --- /dev/null | ||
19 | +++ b/cpan/CPANPLUS/lib/CPANPLUS/Config/System.pm | ||
20 | @@ -0,0 +1,30 @@ | ||
21 | +### minimal pod, so you can find it with perldoc -l, etc | ||
22 | +=pod | ||
23 | + | ||
24 | +=head1 NAME | ||
25 | + | ||
26 | +CPANPLUS::Config::System | ||
27 | + | ||
28 | +=head1 DESCRIPTION | ||
29 | + | ||
30 | +This is a CPANPLUS configuration file that sets appropriate default | ||
31 | +settings on Debian systems. | ||
32 | + | ||
33 | +The only preconfigured settings are C<makemakerflags> (set to | ||
34 | +C<INSTALLDIRS=site>) and C<buildflags> (set to C<--installdirs site>). | ||
35 | + | ||
36 | +These settings will not have any effect if | ||
37 | +C</etc/perl/CPANPLUS/Config/System.pm> is present. | ||
38 | + | ||
39 | +=cut | ||
40 | + | ||
41 | + | ||
42 | +package CPANPLUS::Config::System; | ||
43 | + | ||
44 | +sub setup { | ||
45 | + my $conf = shift; | ||
46 | + $conf->set_conf( makemakerflags => 'INSTALLDIRS=site' ); | ||
47 | + $conf->set_conf( buildflags => '--installdirs site' ); | ||
48 | +} | ||
49 | + | ||
50 | +1; | ||
51 | -- | ||
52 | tg: (c823880..) debian/cpanplus_definstalldirs (depends on: upstream) | ||