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