fix build error on loongarch64

This commit is contained in:
Huang Yang 2024-04-17 01:50:32 +00:00
parent 8d08b8b575
commit 94399775f4

View File

@ -3,7 +3,7 @@
Name: runc Name: runc
Version: 1.1.8 Version: 1.1.8
Release: 13 Release: 14
Summary: runc is a CLI tool for spawning and running containers according to the OCI specification. Summary: runc is a CLI tool for spawning and running containers according to the OCI specification.
License: ASL 2.0 License: ASL 2.0
@ -31,7 +31,6 @@ cp %{SOURCE3} .
cp %{SOURCE4} . cp %{SOURCE4} .
cp %{SOURCE5} . cp %{SOURCE5} .
%install %install
sh ./apply-patch sh ./apply-patch
@ -40,6 +39,10 @@ export GO111MODULE=off
export GOPATH=`pwd`/.gopath export GOPATH=`pwd`/.gopath
ln -sf `pwd` .gopath/src/github.com/opencontainers/runc ln -sf `pwd` .gopath/src/github.com/opencontainers/runc
cd .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 make BUILDTAGS="seccomp selinux" static
rm -rf .gopath rm -rf .gopath
strip runc strip runc
@ -54,6 +57,12 @@ install -p -m 755 runc $RPM_BUILD_ROOT/%{_bindir}/runc
%{_bindir}/runc %{_bindir}/runc
%changelog %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 * Thu Feb 22 2024 zhongjiawei<zhongjiawei1@huawei.com> - 1.1.8-13
- Type:bugfix - Type:bugfix
- CVE:NA - CVE:NA