add loongarch64 support for runc

This commit is contained in:
zhaozhen 2023-03-16 17:42:51 +08:00
parent 2548e734e7
commit 2a4953bb4b
5 changed files with 228560 additions and 1 deletions

View File

@ -0,0 +1,21 @@
From 21f915e95f260af0f716f0ffcea0362d6b38f665 Mon Sep 17 00:00:00 2001
From: zhaozhen <zhaozhen@loongson.cn>
Date: Wed, 9 Nov 2022 10:58:21 +0800
Subject: [PATCH] add loongarch support for libcontainer
---
libcontainer/system/syscall_linux_64.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libcontainer/system/syscall_linux_64.go b/libcontainer/system/syscall_linux_64.go
index 6e89196..77d011b 100644
--- a/libcontainer/system/syscall_linux_64.go
+++ b/libcontainer/system/syscall_linux_64.go
@@ -1,4 +1,4 @@
-// +build linux,arm64 linux,amd64 linux,ppc linux,ppc64 linux,ppc64le linux,s390x linux,riscv64
+// +build linux,arm64 linux,amd64 linux,ppc linux,ppc64 linux,ppc64le linux,s390x linux,riscv64 linux,loong64
package system
--
2.33.0

View File

@ -0,0 +1,24 @@
From 34adecd11a87b5995ce3a482987944d4d8644008 Mon Sep 17 00:00:00 2001
From: zhaozhen <zhaozhen@loongson.cn>
Date: Wed, 9 Nov 2022 11:22:38 +0800
Subject: [PATCH] SIGUNUSED is nolonger support for loongarch
---
kill.go | 1 -
1 file changed, 1 deletion(-)
diff --git a/kill.go b/kill.go
index f80c4db..3d0e8b2 100644
--- a/kill.go
+++ b/kill.go
@@ -39,7 +39,6 @@ var signalMap = map[string]syscall.Signal{
"TSTP": syscall.SIGTSTP,
"TTIN": syscall.SIGTTIN,
"TTOU": syscall.SIGTTOU,
- "UNUSED": syscall.SIGUNUSED,
"URG": syscall.SIGURG,
"USR1": syscall.SIGUSR1,
"USR2": syscall.SIGUSR2,
--
2.33.0

File diff suppressed because it is too large Load Diff

View File

@ -3,7 +3,7 @@
Name: docker-runc
Version: 1.1.3
Release: 11
Release: 12
Summary: runc is a CLI tool for spawning and running containers according to the OCI specification.
License: ASL 2.0
@ -34,6 +34,10 @@ cp %{SOURCE5} .
%install
sh ./apply-patch
%ifarch loongarch64
patch -p1 < %{_builddir}/patch/0034-SIGUNUSED-is-nolonger-support-for-loongarch.patch
patch -p1 < %{_builddir}/patch/0035-update-sys-to-v0.4.0-to-support-loong64.patch
%endif
mkdir -p .gopath/src/github.com/opencontainers
export GO111MODULE=off
@ -54,6 +58,12 @@ install -p -m 755 runc $RPM_BUILD_ROOT/%{_bindir}/runc
%{_bindir}/runc
%changelog
* Thu Mar 16 2023 zhaozhen <zhaozhen@loongson.cn> - 1.1.3-12
- Type:feature
- CVE:NA
- SUG:NA
- DESC:Add loongarch64 support
* Thu Feb 9 2023 zhongjiawei<zhongjiawei1@huawei.com> - 1.1.3-11
- Type:bugfix
- CVE:NA

View File

@ -30,3 +30,4 @@ patch/0029-runc-runc-log-forward-to-syslog.patch
patch/0030-runc-support-specify-umask.patch
patch/0031-runc-modify-linuxcontainer-starttime-uint64-type-tob.patch
patch/0032-runc-make-runc-spec-compatible-1.0.0.rc3.patch
patch/0033-add-loongarch-support-for-libcontainer.patch