The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / redis / 0001-uclibc.patch
1 redis-001-uclibc.patch: This patch fixes redis so that it can be compiled
2 against uclibc.  Patch originates from:
3
4   Support cross-compiling for uClibc targets
5   https://github.com/antirez/redis/pull/537
6   Mike Steinert, mike.steinert@gmail.com
7
8 Signed-off-by: Daniel Price <daniel.price@gmail.com>
9
10 =========================================================================
11 diff -ur old/src/config.h new/src/config.h
12 --- old/src/config.h    2012-10-26 07:20:24.000000000 -0700
13 +++ new/src/config.h    2012-10-31 13:41:51.206309564 -0700
14 @@ -1,6 +1,10 @@
15  #ifndef __CONFIG_H
16  #define __CONFIG_H
17  
18 +#if defined(__unix) || defined(__linux__)
19 +#include <features.h>
20 +#endif
21 +
22  #ifdef __APPLE__
23  #include <AvailabilityMacros.h>
24  #endif
25 @@ -25,7 +29,7 @@
26  #endif
27  
28  /* Test for backtrace() */
29 -#if defined(__APPLE__) || defined(__linux__)
30 +#if (defined(__APPLE__) || defined(__linux__) && !defined(__UCLIBC__))
31  #define HAVE_BACKTRACE 1
32  #endif
33  
34 diff -ur old/src/Makefile new/src/Makefile
35 --- old/src/Makefile    2012-10-26 07:20:24.000000000 -0700
36 +++ new/src/Makefile    2012-10-31 13:40:39.224728830 -0700
37 @@ -135,7 +135,7 @@
38         echo REDIS_LDFLAGS=$(REDIS_LDFLAGS) >> .make-settings
39         echo PREV_FINAL_CFLAGS=$(FINAL_CFLAGS) >> .make-settings
40         echo PREV_FINAL_LDFLAGS=$(FINAL_LDFLAGS) >> .make-settings
41 -       -(cd ../deps && $(MAKE) $(DEPENDENCY_TARGETS))
42 +       -(cd ../deps && $(MAKE) CC="$(CC)" $(DEPENDENCY_TARGETS))
43  
44  .PHONY: persist-settings
45