fix build error on loongarch64

This commit is contained in:
Wenlong Zhang 2024-10-15 21:04:11 +08:00
parent 73330bccd4
commit 469421d89f

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