diff options
Diffstat (limited to 'meta/recipes-devtools/perl/files/perl-configpm-switch.patch')
-rw-r--r-- | meta/recipes-devtools/perl/files/perl-configpm-switch.patch | 67 |
1 files changed, 33 insertions, 34 deletions
diff --git a/meta/recipes-devtools/perl/files/perl-configpm-switch.patch b/meta/recipes-devtools/perl/files/perl-configpm-switch.patch index 80ce4a6de7..3721277933 100644 --- a/meta/recipes-devtools/perl/files/perl-configpm-switch.patch +++ b/meta/recipes-devtools/perl/files/perl-configpm-switch.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 5120acaa2be5787d9657f6b91bc8ee3c2d664fbe Mon Sep 17 00:00:00 2001 | 1 | From 7a48538a7e8614a3342151b646d2105c0cb0cdd9 Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
3 | Date: Sun, 27 May 2007 21:04:11 +0000 | 3 | Date: Sun, 27 May 2007 21:04:11 +0000 |
4 | Subject: [PATCH] perl: 5.8.7 -> 5.8.8 (from OE) | 4 | Subject: [PATCH] perl: 5.8.7 -> 5.8.8 (from OE) |
@@ -14,44 +14,43 @@ values would be valid for the host only. | |||
14 | 14 | ||
15 | Upstream-Status: Inappropriate [native] | 15 | Upstream-Status: Inappropriate [native] |
16 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | 16 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
17 | |||
18 | --- | 17 | --- |
19 | configpm | 18 ++++++++++++++++-- | 18 | configpm | 18 ++++++++++++++++-- |
20 | 1 file changed, 16 insertions(+), 2 deletions(-) | 19 | 1 file changed, 16 insertions(+), 2 deletions(-) |
21 | 20 | ||
22 | diff --git a/configpm b/configpm | 21 | diff --git a/configpm b/configpm |
23 | index c8de8bf..204613c 100755 | 22 | index 07219d8..01a23fa 100755 |
24 | --- a/configpm | 23 | --- a/configpm |
25 | +++ b/configpm | 24 | +++ b/configpm |
26 | @@ -687,7 +687,7 @@ sub FETCH { | 25 | @@ -718,7 +718,7 @@ $config_txt .= uncomment <<'ENDOFEND'; |
27 | my($self, $key) = @_; | 26 | # my($self, $key) = @_; |
28 | 27 | # | |
29 | # check for cached value (which may be undef so we use exists not defined) | 28 | # # check for cached value (which may be undef so we use exists not defined) |
30 | - return exists $self->{$key} ? $self->{$key} : $self->fetch_string($key); | 29 | -# return exists $self->{$key} ? $self->{$key} : $self->fetch_string($key); |
31 | + return $self->fetch_string($key); | 30 | +# return $self->fetch_string($key); |
32 | } | 31 | # } |
33 | 32 | # | |
34 | ENDOFEND | 33 | ENDOFEND |
35 | @@ -845,7 +845,21 @@ $config_txt .= sprintf <<'ENDOFTIE', $fast_config; | 34 | @@ -876,7 +876,21 @@ $config_txt .= sprintf uncomment <<'ENDOFTIE', $fast_config; |
36 | sub DESTROY { } | 35 | # sub DESTROY { } |
37 | 36 | # | |
38 | sub AUTOLOAD { | 37 | # sub AUTOLOAD { |
39 | - require 'Config_heavy.pl'; | 38 | -# require 'Config_heavy.pl'; |
40 | + my $cfgfile = 'Config_heavy.pl'; | 39 | +# my $cfgfile = 'Config_heavy.pl'; |
41 | + if (defined $ENV{PERLCONFIGTARGET} and $ENV{PERLCONFIGTARGET} eq "yes") | 40 | +# if (defined $ENV{PERLCONFIGTARGET} and $ENV{PERLCONFIGTARGET} eq "yes") |
42 | + { | 41 | +# { |
43 | + $cfgfile = 'Config_heavy-target.pl'; | 42 | +# $cfgfile = 'Config_heavy-target.pl'; |
44 | + } | 43 | +# } |
45 | + if (defined $ENV{PERL_ARCHLIB}) | 44 | +# if (defined $ENV{PERL_ARCHLIB}) |
46 | + { | 45 | +# { |
47 | + push @INC, $ENV{PERL_ARCHLIB}; | 46 | +# push @INC, $ENV{PERL_ARCHLIB}; |
48 | + require $cfgfile; | 47 | +# require $cfgfile; |
49 | + pop @INC; | 48 | +# pop @INC; |
50 | + } | 49 | +# } |
51 | + else | 50 | +# else |
52 | + { | 51 | +# { |
53 | + require $cfgfile; | 52 | +# require $cfgfile; |
54 | + } | 53 | +# } |
55 | goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/; | 54 | # goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/; |
56 | die "&Config::AUTOLOAD failed on $Config::AUTOLOAD"; | 55 | # die "&Config::AUTOLOAD failed on $Config::AUTOLOAD"; |
57 | } | 56 | # } |