From a2f0d3bed3e368a4824e0f9303d8d050ad0814b5016477f3ac99b14885154839 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 4 Jul 2013 17:12:05 +0000 Subject: [PATCH] Accepting request 182226 from home:k0da:ppc - enable backtrace for x86 only redis-x86-backtrace.patch OBS-URL: https://build.opensuse.org/request/show/182226 OBS-URL: https://build.opensuse.org/package/show/server:database/redis?expand=0&rev=41 --- redis-x86-backtrace.patch | 16 ++++++++++++++++ redis.changes | 6 ++++++ redis.spec | 2 ++ 3 files changed, 24 insertions(+) create mode 100644 redis-x86-backtrace.patch diff --git a/redis-x86-backtrace.patch b/redis-x86-backtrace.patch new file mode 100644 index 0000000..cab8670 --- /dev/null +++ b/redis-x86-backtrace.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..22372c3 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 only + redis-x86-backtrace.patch + ------------------------------------------------------------------- Mon Jun 24 14:15:49 UTC 2013 - vjt@openssl.it diff --git a/redis.spec b/redis.spec index 8ac4c61..d233630 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-x86-backtrace.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