diff options
Diffstat (limited to 'meta/recipes-devtools/perl/perl-5.12.2/debian/cpan_definstalldirs.diff')
-rw-r--r-- | meta/recipes-devtools/perl/perl-5.12.2/debian/cpan_definstalldirs.diff | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl-5.12.2/debian/cpan_definstalldirs.diff b/meta/recipes-devtools/perl/perl-5.12.2/debian/cpan_definstalldirs.diff new file mode 100644 index 0000000000..f64af15eea --- /dev/null +++ b/meta/recipes-devtools/perl/perl-5.12.2/debian/cpan_definstalldirs.diff | |||
@@ -0,0 +1,35 @@ | |||
1 | Subject: Provide a sensible INSTALLDIRS default for modules installed from CPAN. | ||
2 | |||
3 | Some modules which are included in core set INSTALLDIRS => 'perl' | ||
4 | explicitly in Makefile.PL or Build.PL. This makes sense for the normal @INC | ||
5 | ordering, but not ours. | ||
6 | |||
7 | |||
8 | --- | ||
9 | cpan/CPAN/lib/CPAN/FirstTime.pm | 4 ++-- | ||
10 | 1 files changed, 2 insertions(+), 2 deletions(-) | ||
11 | |||
12 | diff --git a/cpan/CPAN/lib/CPAN/FirstTime.pm b/cpan/CPAN/lib/CPAN/FirstTime.pm | ||
13 | index 53ffbf1..53976ff 100644 | ||
14 | --- a/cpan/CPAN/lib/CPAN/FirstTime.pm | ||
15 | +++ b/cpan/CPAN/lib/CPAN/FirstTime.pm | ||
16 | @@ -947,7 +947,7 @@ sub init { | ||
17 | my_prompt_loop(prefer_installer => 'MB', $matcher, 'MB|EUMM|RAND'); | ||
18 | |||
19 | if (!$matcher or 'makepl_arg make_arg' =~ /$matcher/) { | ||
20 | - my_dflt_prompt(makepl_arg => "", $matcher); | ||
21 | + my_dflt_prompt(makepl_arg => "INSTALLDIRS=site", $matcher); | ||
22 | my_dflt_prompt(make_arg => "", $matcher); | ||
23 | if ( $CPAN::Config->{makepl_arg} =~ /LIBS=|INC=/ ) { | ||
24 | $CPAN::Frontend->mywarn( | ||
25 | @@ -969,7 +969,7 @@ sub init { | ||
26 | my_dflt_prompt(make_install_arg => $CPAN::Config->{make_arg} || "", | ||
27 | $matcher); | ||
28 | |||
29 | - my_dflt_prompt(mbuildpl_arg => "", $matcher); | ||
30 | + my_dflt_prompt(mbuildpl_arg => "--installdirs site", $matcher); | ||
31 | my_dflt_prompt(mbuild_arg => "", $matcher); | ||
32 | |||
33 | if (exists $CPAN::HandleConfig::keys{mbuild_install_build_command} | ||
34 | -- | ||
35 | tg: (c823880..) debian/cpan_definstalldirs (depends on: upstream) | ||