Debian Codegraph @

debian/patches/remove-local-hiredis

raw symbols SCIP
1 Description: patch build process (the hard way) to use system hiredis lib
2 Forwarded: not-needed
3 Author: Marc Haber <[email protected]>
4 Reviewed-by: gregor herrmann <[email protected]>
5 Last-Update: 2024-03-24
6
7 --- a/builder/MyBuilder.pm
8 +++ b/builder/MyBuilder.pm
9 @@ -13,8 +13,8 @@
10 generate_ppport_h => 'src/ppport.h',
11 c_source => 'src',
12 xs_files => { './src/Redis__Fast.xs' => './lib/Redis/Fast.xs', },
13 - include_dirs => ['src', 'deps/hiredis'],
14 - extra_linker_flags => ["deps/hiredis/libhiredis$Config{lib_ext}", "deps/hiredis/libhiredis_ssl$Config{lib_ext}", "-lssl", "-lcrypto"],
15 + include_dirs => ['src', '/usr/include', '/usr/include/hiredis'],
16 + extra_linker_flags => ["-lhiredis", "-lhiredis_ssl", "-lssl", "-lcrypto"],
17
18 test_requires => {
19 "Digest::SHA" => "0",
20 @@ -41,12 +41,6 @@
21 } else {
22 $make = $Config{make};
23 }
24 - if (-e '.git') {
25 - unless (-e 'deps/hiredis/Makefile') {
26 - $self->do_system('git','submodule','update','--init');
27 - }
28 - }
29 - $self->do_system($make, '-C', 'deps/hiredis', 'static', 'USE_SSL=1');
30 return $self;
31 }
32
33 --- a/src/Redis__Fast.xs
34 +++ b/src/Redis__Fast.xs
35 @@ -4,8 +4,8 @@
36 #include "XSUB.h"
37
38 #include "ppport.h"
39 -#include "hiredis.h"
40 -#include "hiredis_ssl.h"
41 +#include <hiredis.h>
42 +#include <hiredis_ssl.h>
43 #include "async.h"
44
45 #include <string.h>