From 5323e865beb095ae8ff626d05f0676c1569ebf5b Mon Sep 17 00:00:00 2001 From: doupengda Date: Tue, 16 Apr 2024 20:43:22 +0800 Subject: [PATCH] add support for loongarch64 --- lxcfs-tools.spec | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/lxcfs-tools.spec b/lxcfs-tools.spec index 59f9285..938e4b6 100644 --- a/lxcfs-tools.spec +++ b/lxcfs-tools.spec @@ -1,7 +1,7 @@ #Basic Information Name: lxcfs-tools Version: 0.3 -Release: 34 +Release: 35 Summary: toolkit for lxcfs to remount a running isulad License: Mulan PSL v2 URL: https://gitee.com/openeuler/lxcfs-tools @@ -31,6 +31,17 @@ A toolkit for lxcfs to remount a running isulad when crashes recover #Build sections %prep %autosetup -n %{name}-v%{version} -p1 +%ifarch loongarch64 +sed -i '/golang.org\/x\/sys =>/d' go.mod +export GOSUMDB="sum.golang.org" +export GOPROXY="https://goproxy.cn" +go get -d golang.org/x/sys@v0.19.0 +go mod tidy +go mod download +go mod vendor +# add loong64 to syscall_linux_64.go file +sed 's/mips64/mips64 loong64/g' -i vendor/github.com/opencontainers/runc/libcontainer/system/syscall_linux_64.go +%endif %build make @@ -103,6 +114,9 @@ rm -rfv %{buildroot} %changelog +* Tue Apr 16 2024 Pengda Dou - 0.3-35 +- add support for loongarch64 + * Fri Feb 2 2024 yangjiaqi - 0.3-34 - Type:bugfix - CVE:NA -- Gitee