Accepting request 799525 from home:Andreas_Schwab:Factory

- ppc-atomic.patch: use libatomic also on ppc

OBS-URL: https://build.opensuse.org/request/show/799525
OBS-URL: https://build.opensuse.org/package/show/server:database/redis?expand=0&rev=141
This commit is contained in:
Martin Pluskal 2020-05-02 07:44:32 +00:00 committed by Git OBS Bridge
parent a822998a21
commit ae165de876
3 changed files with 22 additions and 0 deletions

15
ppc-atomic.patch Normal file
View File

@ -0,0 +1,15 @@
Index: redis-5.0.9/src/Makefile
===================================================================
--- redis-5.0.9.orig/src/Makefile
+++ redis-5.0.9/src/Makefile
@@ -83,6 +83,10 @@ ifneq (,$(filter aarch64 armv,$(uname_M)
else
ifneq (,$(findstring armv,$(uname_M)))
FINAL_LIBS+=-latomic
+else
+ifneq (,$(findstring ppc,$(uname_M)))
+ FINAL_LIBS+=-latomic
+endif
endif
endif

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri May 1 15:50:36 UTC 2020 - Andreas Schwab <schwab@suse.de>
- ppc-atomic.patch: use libatomic also on ppc
-------------------------------------------------------------------
Fri May 1 07:48:12 UTC 2020 - Andreas Stieger <andreas.stieger@gmx.de>

View File

@ -42,6 +42,7 @@ Patch0: %{name}-conf.patch
Patch1: %{name}-enable-bactrace-on-x86-ia64-and_arm32_only.patch
Patch2: %{name}-disable_integration_logging.patch
Patch3: reproducible.patch
Patch4: ppc-atomic.patch
BuildRequires: pkgconfig
BuildRequires: sysuser-shadow
BuildRequires: sysuser-tools
@ -67,6 +68,7 @@ echo "`grep -F %{name}-%{version}.tar.gz %{SOURCE10} | cut -d' ' -f4` %{SOURCE0
%patch2
%endif
%patch3 -p1
%patch4 -p1
%build
export HOST=OBS # for reproducible builds