Package: libgit-raw-perl / 0.90+ds-3

remove-convenience-libs Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 <mh+debian-packages@zugschlus.de>
Reviewed-by: gregor herrmann <gregoa@debian.org>
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",