blob: 572f1495142cb3d4589976ca2b87bb79a16056a2 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001From 5ff1f21484aab68efe321ff4ba5d35928f72af96 Mon Sep 17 00:00:00 2001
2From: Brendan O'Dea <bod@debian.org>
3Date: Tue, 8 Mar 2005 19:30:38 +1100
4Subject: Provide a sensible INSTALLDIRS default for modules installed from
5 CPAN.
6
7Some modules which are included in core set INSTALLDIRS => 'perl'
8explicitly in Makefile.PL or Build.PL. This makes sense for the normal @INC
9ordering, but not ours.
10
11Patch-Name: debian/cpan_definstalldirs.diff
Brad Bishopd7bf8c12018-02-25 22:55:05 -050012Upstream-Status: Pending
Patrick Williamsc124f4f2015-09-15 14:41:29 -050013---
14 cpan/CPAN/lib/CPAN/FirstTime.pm | 4 ++--
15 1 file changed, 2 insertions(+), 2 deletions(-)
16
17diff --git a/cpan/CPAN/lib/CPAN/FirstTime.pm b/cpan/CPAN/lib/CPAN/FirstTime.pm
18index 918e009..33054cd 100644
19--- a/cpan/CPAN/lib/CPAN/FirstTime.pm
20+++ b/cpan/CPAN/lib/CPAN/FirstTime.pm
21@@ -1024,7 +1024,7 @@ sub init {
22 my_prompt_loop(prefer_installer => 'MB', $matcher, 'MB|EUMM|RAND');
23
24 if (!$matcher or 'makepl_arg make_arg' =~ /$matcher/) {
25- my_dflt_prompt(makepl_arg => "", $matcher);
26+ my_dflt_prompt(makepl_arg => "INSTALLDIRS=site", $matcher);
27 my_dflt_prompt(make_arg => "", $matcher);
28 if ( $CPAN::Config->{makepl_arg} =~ /LIBS=|INC=/ ) {
29 $CPAN::Frontend->mywarn(
30@@ -1056,7 +1056,7 @@ sub init {
31 my_dflt_prompt(make_install_arg => $CPAN::Config->{make_arg} || "",
32 $matcher);
33
34- my_dflt_prompt(mbuildpl_arg => "", $matcher);
35+ my_dflt_prompt(mbuildpl_arg => "--installdirs site", $matcher);
36 my_dflt_prompt(mbuild_arg => "", $matcher);
37
38 if (exists $CPAN::HandleConfig::keys{mbuild_install_build_command}