From: Ralf Wildenhues Date: Sun, 16 Jan 2011 22:00:35 +0000 (+0100) Subject: Avoid local $_ perl variable, for Perl before 5.9.1. X-Git-Tag: ng-0.5a~248^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4c1aa2d708ceb4c0f245a91a0e28a1ddff16c2f;p=thirdparty%2Fautomake.git Avoid local $_ perl variable, for Perl before 5.9.1. * lib/Automake/Options.pm (_process_option_list): Do not lexically localize $_. Fixes bootstrap on AIX 5.1. Bug introduced in commit `v1.11-622-gf90a06c'. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index 6c65edf38..8a8f3dd2f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-01-17 Ralf Wildenhues + + Avoid local $_ perl variable, for Perl before 5.9.1. + * lib/Automake/Options.pm (_process_option_list): Do not + lexically localize $_. Fixes bootstrap on AIX 5.1. + Bug introduced in commit `v1.11-622-gf90a06c'. + 2011-01-15 Stefano Lattarini For PR automake/547: diff --git a/lib/Automake/Options.pm b/lib/Automake/Options.pm index 9f221784a..c2edcd5d4 100644 --- a/lib/Automake/Options.pm +++ b/lib/Automake/Options.pm @@ -253,7 +253,7 @@ sub _process_option_list (\%@) foreach my $h (@list) { - my $_ = $h->{'option'}; + local $_ = $h->{'option'}; my $where = $h->{'where'}; $options->{$_} = $where; if ($_ eq 'gnits' || $_ eq 'gnu' || $_ eq 'foreign')