Description: This patch makes the upstream source use the locally delivered libraries instead of the convenience copies of compatible libs included in the upstream tarball. Since libgit has not declared a stable interface, upstream didn't bother to make the code fall back to the system versions of the libs and rejected the respective issue. Bug: https://github.com/jacquesg/p5-Git-Raw/issues/195 Author: Marc Haber Reviewed-by: gregor herrmann Last-Update: 2022-10-29 --- a/Makefile.PL +++ b/Makefile.PL @@ -251,6 +251,7 @@ my @srcs = glob 'deps/libgit2/src/libgit2/{*.c,transports/*.c,xdiff/*.c,streams/*.c}'; push @srcs, glob 'deps/libgit2/src/util/{*.c,allocators/*.c,hash/collision*.c,hash/hash*.c,hash/builtin*.c,hash/sha1dc/*.c,hash/rfc6234/*.c}'; $inc .= ' -Ideps/libgit2/deps/pcre'; +$lib .= ' -lgit2'; if ($is_windows) { push @srcs, glob 'deps/libgit2/src/util/win32/*.c'; @@ -336,7 +337,7 @@ "Getopt::Long" => "2.35" }, "DISTNAME" => "Git-Raw", - "INC" => "-I. -Ideps/libgit2 -I deps/libgit2/include -Ideps/libgit2/src/libgit2 -Ideps/libgit2/src/util -Ideps/libgit2/deps/http-parser -Ideps/libgit2/deps/zlib", + "INC" => "-I. ", "LICENSE" => "perl", "MIN_PERL_VERSION" => "5.006", "NAME" => "Git::Raw",