This looks like a permissions issue. Why not just remove /usr/share/perl5/Error.pm from git-core in <git-core-src>/perl/Makefile ?
# We come with our own bundled Error.pm. It's not in the set of default
# Perl modules so install it if it's not available on the system yet.
eval { require Error };
if ($@ || $Error::VERSION < 0.15009) {
$pm{'private-Error.pm'} = '$(INST_LIBDIR)/Error.pm';
}
Comment that out, depends are set correctly in debian/control to ensure Error.pm will be there (provided by liberror-perl).
This looks like a permissions issue. Why not just remove /usr/share/ perl5/Error. pm from git-core in <git-core- src>/perl/ Makefile ?
# We come with our own bundled Error.pm. It's not in the set of default Error.pm' } = '$(INST_ LIBDIR) /Error. pm';
# Perl modules so install it if it's not available on the system yet.
eval { require Error };
if ($@ || $Error::VERSION < 0.15009) {
$pm{'private-
}
Comment that out, depends are set correctly in debian/control to ensure Error.pm will be there (provided by liberror-perl).