diff --git a/0001-add-loongarch64-support.patch b/0001-add-loongarch64-support.patch new file mode 100644 index 0000000000000000000000000000000000000000..5418dd6b90d79259df64ca0bb07c2204b1683e03 --- /dev/null +++ b/0001-add-loongarch64-support.patch @@ -0,0 +1,29 @@ +From ecd6f4d20ab403dd4203f6f79735fb036e3224b4 Mon Sep 17 00:00:00 2001 +From: zhangxianting +Date: Fri, 28 Jun 2024 18:06:45 +0800 +Subject: [PATCH] add loongarch64 support + +--- + vendor/go.etcd.io/bbolt/bolt_loong64.go | 10 ++++++++++ + 1 file changed, 10 insertions(+) + create mode 100644 vendor/go.etcd.io/bbolt/bolt_loong64.go + +diff --git a/vendor/go.etcd.io/bbolt/bolt_loongarch64.go b/vendor/go.etcd.io/bbolt/bolt_loongarch64.go +new file mode 100644 +index 0000000..29bf04c +--- /dev/null ++++ b/vendor/go.etcd.io/bbolt/bolt_loong64.go +@@ -0,0 +1,10 @@ ++//go:build loong64 ++// +build loong64 ++ ++package bbolt ++ ++// maxMapSize represents the largest mmap size supported by Bolt. ++const maxMapSize = 0xFFFFFFFFFFFF // 256TB ++ ++// maxAllocSize is the size used when creating array pointers. ++const maxAllocSize = 0x7FFFFFFF +-- +2.43.0 + diff --git a/kubekey.spec b/kubekey.spec index b598d5323f7b12aa797f298cc598b85a56418a6c..96ee062c95e408b76deec867fc105aaff340e2c8 100644 --- a/kubekey.spec +++ b/kubekey.spec @@ -3,12 +3,12 @@ Name: kubekey Summary: Install Kubernetes/K3s only, both Kubernetes/K3s and KubeSphere, and related cloud-native add-ons, it supports all-in-one, multi-node, and HA. Version: v3.0.7 -Release: 2 +Release: 3 License: Apache-2.0 URL: https://github.com/kubesphere/kubekey Source0: https://github.com/kubesphere/kubekey/releases/download/%{version}-openEuler/kubekey-%{version}.tar.gz - +Patch0: 0001-add-loongarch64-support.patch BuildRequires: git go Requires: socat Requires: conntrack @@ -19,7 +19,7 @@ Install Kubernetes/K3s only, both Kubernetes/K3s and KubeSphere, and related clo %prep -%setup +%autosetup -p1 %build make kk @@ -33,6 +33,9 @@ cp bin/kk $RPM_BUILD_ROOT/usr/local/bin %changelog +* Fri Jun 28 2024 zhangxianting v3.0.7-3 +- Add loongarch64 support + * Tue Mar 14 2023 guofeng v3.0.7-2 - Add secure compilation parameters