diff --git a/0004-add-riscv64-arch.patch b/0004-add-riscv64-arch.patch new file mode 100644 index 0000000000000000000000000000000000000000..7701e09760a49deddedf38fe32397317e0725c42 --- /dev/null +++ b/0004-add-riscv64-arch.patch @@ -0,0 +1,11 @@ +--- a/etcdmain/etcd.go 2023-02-07 15:07:24.546618364 +0800 ++++ b/etcdmain/etcd.go 2023-02-07 15:08:46.419513938 +0800 +@@ -603,7 +603,7 @@ + + func checkSupportArch() { + // TODO qualify arm64 +- if runtime.GOARCH == "amd64" || runtime.GOARCH == "ppc64le" || runtime.GOARCH == "arm64" { ++ if runtime.GOARCH == "amd64" || runtime.GOARCH == "ppc64le" || runtime.GOARCH == "arm64" || runtime.GOARCH == "riscv64" { + return + } + // unsupported arch only configured via environment variable diff --git a/etcd.spec b/etcd.spec index 21d3255e50730c09ac0c0b1a7f829c6fc16f6ddb..860b446475fedb9180b99cc0d785e8b2827097b9 100644 --- a/etcd.spec +++ b/etcd.spec @@ -31,7 +31,7 @@ system.} %global gosupfiles integration/fixtures/* etcdserver/api/v2http/testdata/* Name: etcd -Release: 5 +Release: 6 Summary: Distributed reliable key-value store for the most critical data of a distributed system # Upstream license specification: Apache-2.0 @@ -47,6 +47,7 @@ Source10: genmanpages.sh Patch1: 0001-Convert-int-to-string-using-strconv.Itoa.patch Patch2: 0002-Etcd-on-unsupported-platform-without-ETCD_UNSUPPORTED_ARCH=arm64-set.patch Patch3: 0003-etcd-Add-sw64-architecture.patch +Patch4: 0004-add-riscv64-arch.patch BuildRequires: golang BuildRequires: python3-devel @@ -67,6 +68,7 @@ Requires(pre): shadow-utils %ifarch sw_64 %patch3 -p1 %endif +%patch4 -p1 # For compatibility cp -aR etcdserver/api/snap snap cp -aR etcdserver/api/membership etcdserver/membership @@ -152,6 +154,9 @@ getent passwd %{name} >/dev/null || useradd -r -g %{name} -d %{_sharedstatedir}/ %endif %changelog +* Wed Feb 08 2023 laokz - 3.4.14-6 +- add riscv64 to supported arch + * Wed Oct 19 2022 wuzx - 3.4.14-5 - add sw64 patch