diff --git a/ppc-atomic.patch b/ppc-atomic.patch new file mode 100644 index 0000000..c0fa419 --- /dev/null +++ b/ppc-atomic.patch @@ -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 + diff --git a/redis.changes b/redis.changes index 4c79224..bc585cf 100644 --- a/redis.changes +++ b/redis.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 1 15:50:36 UTC 2020 - Andreas Schwab + +- ppc-atomic.patch: use libatomic also on ppc + ------------------------------------------------------------------- Fri May 1 07:48:12 UTC 2020 - Andreas Stieger diff --git a/redis.spec b/redis.spec index a545df3..c1a9c83 100644 --- a/redis.spec +++ b/redis.spec @@ -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