File: remove-local-hiredis

package info (click to toggle)
libredis-fast-perl 0.22%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 488 kB
  • sloc: perl: 2,539; makefile: 3
file content (41 lines) | stat: -rw-r--r-- 1,287 bytes parent folder | 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
30
31
32
33
34
35
36
37
38
39
40
41
Description: patch build process (the hard way) to use system hiredis lib
Author: Marc Haber <mh+debian-packages@zugschlus.de>
Forwarded: no
Last-Update: 2018-06-17
--- 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"],
         $ENV{REDIS_DEBUG} ? ( extra_compiler_flags => [qw/-DDEBUG/] ) : (),
 
         test_requires => {
@@ -42,12 +42,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>