summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/perl/perl-5.12.3/debian/perlivp.diff
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/perl/perl-5.12.3/debian/perlivp.diff')
-rw-r--r--meta/recipes-devtools/perl/perl-5.12.3/debian/perlivp.diff40
1 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl-5.12.3/debian/perlivp.diff b/meta/recipes-devtools/perl/perl-5.12.3/debian/perlivp.diff
new file mode 100644
index 0000000000..304e4c1af8
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl-5.12.3/debian/perlivp.diff
@@ -0,0 +1,40 @@
1Upstream-Status:Inappropriate [debian patch]
2
3From: Niko Tyni <ntyni@debian.org>
4Subject: Make perlivp skip include directories in /usr/local
5Closes: 510895
6
7On Sat, Jan 10, 2009 at 12:37:18AM +1100, Brendan O'Dea wrote:
8> On Wed, Jan 7, 2009 at 12:21 AM, Niko Tyni <ntyni@debian.org> wrote:
9
10> > We could create the directories in a postinst script, but I'm not sure
11> > I see the point. They will be created automatically when installing
12> > CPAN modules.
13>
14> The directories are intentionally not created, as this way they are
15> excluded from the search path at start-up, saving a bunch of wasted
16> stats at use/require time in the common case that the user has not
17> installed any local packages. As Niko points out, they will be
18> created as required.
19
20
21Signed-off-by: Niko Tyni <ntyni@debian.org>
22
23---
24 utils/perlivp.PL | 1 +
25 1 files changed, 1 insertions(+), 0 deletions(-)
26
27diff --git a/utils/perlivp.PL b/utils/perlivp.PL
28index 9783261..156146f 100644
29--- a/utils/perlivp.PL
30+++ b/utils/perlivp.PL
31@@ -142,6 +142,7 @@ my $INC_total = 0;
32 my $INC_there = 0;
33 foreach (@INC) {
34 next if $_ eq '.'; # skip -d test here
35+ next if m|/usr/local|; # not shipped on Debian
36 if ($^O eq 'MacOS') {
37 next if $_ eq ':'; # skip -d test here
38 next if $_ eq 'Dev:Pseudo:'; # why is this in @INC?
39--
40tg: (a508b62..) debian/perlivp (depends on: upstream)