perl: avoid *.pmc and fix Error.pm further

The previous round tried to use *.pmc files but it confused RPM
dependency analysis on some distros.  Install them as plain
vanilla *.pm files instead.

Also "local @_" construct did not properly work when goto &sub
is used until recent versions of Perl.  Avoid it (and we do not
need to localize it here anyway).

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Ævar Arnfjörð Bjarmason
2017-12-22 11:07:21 -08:00
committed by Junio C Hamano
parent 20d2a30f8f
commit 805a378649
2 changed files with 5 additions and 5 deletions

View File

@ -39,7 +39,7 @@ sub import {
require Error;
};
local @_ = ($caller, @_);
unshift @_, $caller;
goto &Error::import;
}