From 94399775f48048fb362337e08f73eeeb0a4229a9 Mon Sep 17 00:00:00 2001 From: Huang Yang Date: Wed, 17 Apr 2024 01:50:32 +0000 Subject: [PATCH] fix build error on loongarch64 --- runc.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/runc.spec b/runc.spec index 0800d73..e7407f3 100644 --- a/runc.spec +++ b/runc.spec @@ -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 - 1.1.8-14 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:fix build error on loongarch64 + * Thu Feb 22 2024 zhongjiawei - 1.1.8-13 - Type:bugfix - CVE:NA -- Gitee