add loongarch64 support for runc
This commit is contained in:
parent
2548e734e7
commit
2a4953bb4b
21
patch/0033-add-loongarch-support-for-libcontainer.patch
Normal file
21
patch/0033-add-loongarch-support-for-libcontainer.patch
Normal 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
|
||||
24
patch/0034-SIGUNUSED-is-nolonger-support-for-loongarch.patch
Normal file
24
patch/0034-SIGUNUSED-is-nolonger-support-for-loongarch.patch
Normal 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
|
||||
|
||||
228503
patch/0035-update-sys-to-v0.4.0-to-support-loong64.patch
Normal file
228503
patch/0035-update-sys-to-v0.4.0-to-support-loong64.patch
Normal file
File diff suppressed because it is too large
Load Diff
12
runc.spec
12
runc.spec
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user