From cca34946a2ea3b9126e5cacded2b5f0a0fafbac6 Mon Sep 17 00:00:00 2001 From: EastDong Date: Wed, 14 Jun 2023 18:40:28 +0800 Subject: [PATCH] add riscv support --- add-riscv64-support.patch | 22 ++++++++++++++++++++++ gearmand.spec | 6 +++++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 add-riscv64-support.patch diff --git a/add-riscv64-support.patch b/add-riscv64-support.patch new file mode 100644 index 0000000..9df9c43 --- /dev/null +++ b/add-riscv64-support.patch @@ -0,0 +1,22 @@ +diff --git a/configure b/configure +index 49ac057..9c0a693 100755 +--- a/configure ++++ b/configure +@@ -17054,7 +17054,7 @@ $as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; } + libsubdirs="lib" + ax_arch=`uname -m` + case $ax_arch in +- x86_64|ppc64*|s390x|sparc64|aarch64|loongarch64) ++ x86_64|ppc64*|s390x|sparc64|aarch64|loongarch64|riscv64) + libsubdirs="lib64 lib lib64" + ;; + esac +@@ -27319,7 +27319,7 @@ if ac_fn_c_try_compile "$LINENO"; then : + for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do + if test -n "$ac_prev"; then + case $ac_word in +- i?86 | x86_64 | ppc | ppc64*) ++ i?86 | x86_64 | ppc | ppc64* | riscv64) + if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then + ac_arch=$ac_word + else diff --git a/gearmand.spec b/gearmand.spec index d2f1556..b184939 100644 --- a/gearmand.spec +++ b/gearmand.spec @@ -1,6 +1,6 @@ Name: gearmand Version: 1.1.20 -Release: 1 +Release: 2 Summary: A distributed job system License: BSD URL: http://www.gearman.org @@ -10,6 +10,7 @@ Source2: gearmand.sysconfig Source3: gearmand.service Patch0: gearmand-1.1.12-ppc64le.patch Patch2: 0001-add-loongarch64-support-for-gearmand.patch +Patch100: add-riscv64-support.patch ExcludeArch: ppc BuildRequires: gcc-c++ chrpath libuuid-devel boost-devel >= 1.37.0, boost-thread sqlite-devel BuildRequires: tokyocabinet-devel libevent-devel libmemcached-devel, memcached hiredis-devel @@ -104,6 +105,9 @@ exit 0 %{_mandir}/man3/* %changelog +* Wed Jun 14 2023 EastDong - 1.1.20-2 +- add riscv64 support for gearmand + * Thu Jun 8 2023 Wenlong Zhang - 1.1.19.1-2 - add loongarch64 support for gearmand