From 85ecb667602bc1d402de385b062cf423d7abf636 Mon Sep 17 00:00:00 2001 From: Wenlong Zhang Date: Tue, 15 Oct 2024 21:02:11 +0800 Subject: [PATCH] add loongarch64 support --- lxcfs-tools.spec | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/lxcfs-tools.spec b/lxcfs-tools.spec index 59f9285..f75c328 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,12 @@ rm -rfv %{buildroot} %changelog +* Tue Oct 15 2024 Wenlong Zhang - 0.3-35 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:add loongarch64 support + * Fri Feb 2 2024 yangjiaqi - 0.3-34 - Type:bugfix - CVE:NA -- Gitee