!308 fix build error on loongarch64

From: @zhangwenlong01 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
This commit is contained in:
openeuler-ci-bot 2024-10-16 01:58:02 +00:00 committed by Gitee
commit cb73dad511
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -3,7 +3,7 @@
Name: runc
Version: 1.1.8
Release: 24
Release: 25
Summary: runc is a CLI tool for spawning and running containers according to the OCI specification.
License: ASL 2.0
@ -40,6 +40,9 @@ export GO111MODULE=off
export GOPATH=`pwd`/.gopath
ln -sf `pwd` .gopath/src/github.com/opencontainers/runc
cd .gopath/src/github.com/opencontainers/runc
%ifarch loongarch64
sed '1s/mips64le/mips64le || loong64/g' -i libcontainer/system/syscall_linux_64.go
%endif
make BUILDTAGS="seccomp selinux" static
rm -rf .gopath
strip runc
@ -54,6 +57,9 @@ install -p -m 755 runc $RPM_BUILD_ROOT/%{_bindir}/runc
%{_bindir}/runc
%changelog
* Tue Oct 15 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 1.1.8-25
- fix build error on loongarch64
* Sun Sep 29 2024 zhongjiawei<zhongjiawei1@huawei.com> - 1.1.8-24
- Type:bugfix
- CVE:NA