!255 修复在loongarch架构上的编译错误

From: @streamlet_hy 
Reviewed-by: @zhangsong234 
Signed-off-by: @zhangsong234
This commit is contained in:
openeuler-ci-bot 2024-04-23 11:35:00 +00:00 committed by Gitee
commit 0d43346b69
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: 13
Release: 14
Summary: runc is a CLI tool for spawning and running containers according to the OCI specification.
License: ASL 2.0
@ -31,7 +31,6 @@ cp %{SOURCE3} .
cp %{SOURCE4} .
cp %{SOURCE5} .
%install
sh ./apply-patch
@ -40,6 +39,10 @@ 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,12 @@ install -p -m 755 runc $RPM_BUILD_ROOT/%{_bindir}/runc
%{_bindir}/runc
%changelog
* Wed Apr 17 2024 Huang Yang <huangyang@loongson.cn> - 1.1.8-14
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:fix build error on loongarch64
* Thu Feb 22 2024 zhongjiawei<zhongjiawei1@huawei.com> - 1.1.8-13
- Type:bugfix
- CVE:NA