File: remove-local-hiredis

package info (click to toggle)
libredis-fast-perl 0.34%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 492 kB
  • sloc: perl: 2,630; makefile: 7
file content (43 lines) | stat: -rw-r--r-- 1,320 bytes parent folder | download | duplicates (2)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Description: patch build process (the hard way) to use system hiredis lib
Forwarded: not-needed
Author: Marc Haber <mh+debian-packages@zugschlus.de>
Reviewed-by: gregor herrmann <gregoa@debian.org>
Last-Update: 2020-08-11

--- a/builder/MyBuilder.pm
+++ b/builder/MyBuilder.pm
@@ -13,8 +13,8 @@
         generate_ppport_h    => 'src/ppport.h',
         c_source             => 'src',
         xs_files             => { './src/Redis__Fast.xs' => './lib/Redis/Fast.xs', },
-        include_dirs         => ['src', 'deps/hiredis'],
-        extra_linker_flags   => ["deps/hiredis/libhiredis$Config{lib_ext}"],
+        include_dirs         => ['src', '/usr/include', '/usr/include/hiredis'],
+        extra_linker_flags   => ["-lhiredis"],
 
         test_requires => {
             "Digest::SHA"           => "0",
@@ -41,12 +41,6 @@
     } else {
         $make = $Config{make};
     }
-    if (-e '.git') {
-        unless (-e 'deps/hiredis/Makefile') {
-            $self->do_system('git','submodule','update','--init');
-        }
-    }
-    $self->do_system($make, '-C', 'deps/hiredis', 'static');
     return $self;
 }
 
--- a/src/Redis__Fast.xs
+++ b/src/Redis__Fast.xs
@@ -3,7 +3,7 @@
 #include "XSUB.h"
 
 #include "ppport.h"
-#include "hiredis.h"
+#include <hiredis.h>
 #include "async.h"
 
 #include <string.h>