!6 Add riscv64 support

From: @East_x 
Reviewed-by: @jimmy_hero 
Signed-off-by: @jimmy_hero
This commit is contained in:
openeuler-ci-bot 2023-08-17 03:20:49 +00:00 committed by Gitee
commit 9b6117a284
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 27 additions and 1 deletions

22
add-riscv64-support.patch Normal file
View File

@ -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

View File

@ -1,6 +1,6 @@
Name: gearmand Name: gearmand
Version: 1.1.20 Version: 1.1.20
Release: 1 Release: 2
Summary: A distributed job system Summary: A distributed job system
License: BSD License: BSD
URL: http://www.gearman.org URL: http://www.gearman.org
@ -10,6 +10,7 @@ Source2: gearmand.sysconfig
Source3: gearmand.service Source3: gearmand.service
Patch0: gearmand-1.1.12-ppc64le.patch Patch0: gearmand-1.1.12-ppc64le.patch
Patch2: 0001-add-loongarch64-support-for-gearmand.patch Patch2: 0001-add-loongarch64-support-for-gearmand.patch
Patch100: add-riscv64-support.patch
ExcludeArch: ppc ExcludeArch: ppc
BuildRequires: gcc-c++ chrpath libuuid-devel boost-devel >= 1.37.0, boost-thread sqlite-devel 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 BuildRequires: tokyocabinet-devel libevent-devel libmemcached-devel, memcached hiredis-devel
@ -104,6 +105,9 @@ exit 0
%{_mandir}/man3/* %{_mandir}/man3/*
%changelog %changelog
* Wed Jun 14 2023 EastDong <xudong23@iscas.ac.cn> - 1.1.20-2
- add riscv64 support for gearmand
* Thu Jun 8 2023 Wenlong Zhang<zhangwenlong@loongson.cn> - 1.1.19.1-2 * Thu Jun 8 2023 Wenlong Zhang<zhangwenlong@loongson.cn> - 1.1.19.1-2
- add loongarch64 support for gearmand - add loongarch64 support for gearmand