diff --git a/redis-enable-bactrace-on-x86-and-ia64-only.patch b/redis-enable-bactrace-on-x86-and-ia64-only.patch new file mode 100644 index 0000000..cab8670 --- /dev/null +++ b/redis-enable-bactrace-on-x86-and-ia64-only.patch @@ -0,0 +1,16 @@ +Index: redis-2.6.9/src/config.h +=================================================================== +--- redis-2.6.9.orig/src/config.h ++++ redis-2.6.9/src/config.h +@@ -54,9 +54,11 @@ + #endif + + /* Test for backtrace() */ ++#if defined(__i386__) || defined(__x86_64__) || defined(__ia64__) + #if defined(__APPLE__) || defined(__linux__) || defined(__sun) + #define HAVE_BACKTRACE 1 + #endif ++#endif + + /* Test for polling API */ + #ifdef __linux__ diff --git a/redis.changes b/redis.changes index 88bc7ec..dd6bb72 100644 --- a/redis.changes +++ b/redis.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jul 4 16:10:47 UTC 2013 - dvaleev@suse.com + +- enable backtrace for x86 and ia64 only + redis-enable-bactrace-on-x86-and-ia64-only.patch + ------------------------------------------------------------------- Mon Jun 24 14:15:49 UTC 2013 - vjt@openssl.it diff --git a/redis.spec b/redis.spec index 8ac4c61..817d52f 100644 --- a/redis.spec +++ b/redis.spec @@ -37,6 +37,7 @@ Patch1: %{name}-conf.patch # PATCH-FIX-UPSTREAM -- Fixed AOF: Server should have been started: Expected '1' to equal or match '0' Patch2: skip-aof-test.patch # for make test +Patch3: redis-enable-bactrace-on-x86-and-ia64-only.patch BuildRequires: tcl Requires: logrotate BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -54,6 +55,7 @@ different kind of sorting abilities. %patch0 %patch1 %patch2 +%patch3 -p1 %build make %{?_smp_mflags} CFLAGS="%{optflags}" V=1