| 1 |
Description: This patch makes the upstream source use the locally delivered |
| 2 |
libraries instead of the convenience copies of compatible libs included in |
| 3 |
the upstream tarball. Since libgit has not declared a stable interface, upstream |
| 4 |
didn't bother to make the code fall back to the system versions of the libs |
| 5 |
and rejected the respective issue. |
| 6 |
Bug: https://github.com/jacquesg/p5-Git-Raw/issues/195 |
| 7 |
Author: Marc Haber <[email protected]> |
| 8 |
Reviewed-by: gregor herrmann <[email protected]> |
| 9 |
Last-Update: 2022-10-29 |
| 10 |
|
| 11 |
--- a/Makefile.PL |
| 12 |
+++ b/Makefile.PL |
| 13 |
@@ -251,6 +251,7 @@ |
| 14 |
my @srcs = glob 'deps/libgit2/src/libgit2/{*.c,transports/*.c,xdiff/*.c,streams/*.c}'; |
| 15 |
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}'; |
| 16 |
$inc .= ' -Ideps/libgit2/deps/pcre'; |
| 17 |
+$lib .= ' -lgit2'; |
| 18 |
|
| 19 |
if ($is_windows) { |
| 20 |
push @srcs, glob 'deps/libgit2/src/util/win32/*.c'; |
| 21 |
@@ -336,7 +337,7 @@ |
| 22 |
"Getopt::Long" => "2.35" |
| 23 |
}, |
| 24 |
"DISTNAME" => "Git-Raw", |
| 25 |
|
| 26 |
+ "INC" => "-I. ", |
| 27 |
"LICENSE" => "perl", |
| 28 |
"MIN_PERL_VERSION" => "5.006", |
| 29 |
"NAME" => "Git::Raw", |