blob: 5c7413b9657e36d4bbf4c5ddba9af25a8c4bfb40 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001From fbfbeb7a690d703a3cdc56f923e89eb7b7997d31 Mon Sep 17 00:00:00 2001
2From: Niko Tyni <ntyni@debian.org>
3Date: Fri, 9 Jan 2009 18:54:47 +0200
4Subject: Make perlivp skip include directories in /usr/local
5
6Bug-Debian: http://bugs.debian.org/510895
7
8On Sat, Jan 10, 2009 at 12:37:18AM +1100, Brendan O'Dea wrote:
9> On Wed, Jan 7, 2009 at 12:21 AM, Niko Tyni <ntyni@debian.org> wrote:
10
11> > We could create the directories in a postinst script, but I'm not sure
12> > I see the point. They will be created automatically when installing
13> > CPAN modules.
14>
15> The directories are intentionally not created, as this way they are
16> excluded from the search path at start-up, saving a bunch of wasted
17> stats at use/require time in the common case that the user has not
18> installed any local packages. As Niko points out, they will be
19> created as required.
20
21Signed-off-by: Niko Tyni <ntyni@debian.org>
22
23Patch-Name: debian/perlivp.diff
Brad Bishopd7bf8c12018-02-25 22:55:05 -050024Upstream-Status: Pending
Patrick Williamsc124f4f2015-09-15 14:41:29 -050025---
26 utils/perlivp.PL | 1 +
27 1 file changed, 1 insertion(+)
28
29diff --git a/utils/perlivp.PL b/utils/perlivp.PL
30index c2f0a11..cc49f96 100644
31--- a/utils/perlivp.PL
32+++ b/utils/perlivp.PL
33@@ -153,6 +153,7 @@ my $INC_total = 0;
34 my $INC_there = 0;
35 foreach (@INC) {
36 next if $_ eq '.'; # skip -d test here
37+ next if m|/usr/local|; # not shipped on Debian
38 if (-d $_) {
39 print "## Perl \@INC directory '$_' exists.\n" if $opt{'v'};
40 $INC_there++;