From 42cbfd56ab41c61036ecb0d90c6866298b57eb97 Mon Sep 17 00:00:00 2001 From: dpd Date: Thu, 12 Mar 2026 20:24:39 +0800 Subject: [PATCH] add support for loongarch64 --- ...-etcd-3.5.21-add-support-for-loong64.patch | 24 +++++++++++++++++++ etcd.spec | 8 ++++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 0001-etcd-3.5.21-add-support-for-loong64.patch diff --git a/0001-etcd-3.5.21-add-support-for-loong64.patch b/0001-etcd-3.5.21-add-support-for-loong64.patch new file mode 100644 index 0000000..2ab0d40 --- /dev/null +++ b/0001-etcd-3.5.21-add-support-for-loong64.patch @@ -0,0 +1,24 @@ +From eab1f6723a920225d476ab18197ab62070eccf2b Mon Sep 17 00:00:00 2001 +From: doupengda +Date: Thu, 12 Mar 2026 20:19:41 +0800 +Subject: [PATCH] etcd-3.5.21 add support for loong64 + +--- + server/etcdmain/etcd.go | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/server/etcdmain/etcd.go b/server/etcdmain/etcd.go +index 9921b89..9808136 100644 +--- a/server/etcdmain/etcd.go ++++ b/server/etcdmain/etcd.go +@@ -472,6 +472,7 @@ func checkSupportArch() { + if runtime.GOARCH == "amd64" || + runtime.GOARCH == "arm64" || + runtime.GOARCH == "ppc64le" || ++ runtime.GOARCH == "loong64" || + runtime.GOARCH == "s390x" { + return + } +-- +2.43.7 + diff --git a/etcd.spec b/etcd.spec index 5e038bb..c355cad 100644 --- a/etcd.spec +++ b/etcd.spec @@ -3,7 +3,7 @@ Summary: Highly-available key value store for configuration and service discovery Name: etcd Version: 3.5.21 -Release: 1%{?dist} +Release: 2%{?dist} License: Apache-2.0 URL: https://github.com/etcd-io/etcd Source0: %{url}/archive/refs/tags/v%{version}.tar.gz @@ -11,6 +11,8 @@ Source1: vendor.tar.gz Source2: %{name}.conf Source3: %{name}.service +Patch3000: 0001-etcd-3.5.21-add-support-for-loong64.patch + BuildRequires: systemd-rpm-macros golang go-rpm-macros Requires(pre): shadow-utils @@ -75,6 +77,10 @@ getent passwd %{name} >/dev/null || useradd -r -g %{name} -d %{_sharedstatedir}/ %{_bindir}/%{name} %changelog +* Thu Mar 12 2026 doupengda - 3.5.21-2 +- [Type] other +- [DESC] add support for loongarch64 + * Tue Apr 22 2025 jackeyji - 3.5.21-1 - [Type] security - [DESC] upgrade to 3.5.21 to fix CVE-2024-4436 and CVE-2024-4438 -- Gitee