From 630dea1fe63717a4578e576c3a32ef57ff534e30 Mon Sep 17 00:00:00 2001 From: Wenlong Zhang Date: Tue, 15 Oct 2024 20:54:22 +0800 Subject: [PATCH] fix build error on loongarch64 --- containerd.spec | 5 ++++- patch/0037-fix-build-error-for-loong64.patch | 22 ++++++++++++++++++++ series.conf | 1 + 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 patch/0037-fix-build-error-for-loong64.patch diff --git a/containerd.spec b/containerd.spec index 078d2b6..1f1d6fa 100644 --- a/containerd.spec +++ b/containerd.spec @@ -2,7 +2,7 @@ %global debug_package %{nil} Version: 1.6.22 Name: containerd -Release: 12 +Release: 13 Summary: An industry-standard container runtime License: ASL 2.0 URL: https://containerd.io @@ -68,6 +68,9 @@ install -D -p -m 0644 %{S:7} %{buildroot}%{_sysconfdir}/containerd/config.toml %exclude %{_bindir}/containerd-stress %changelog +* Tue Oct 15 2024 Wenlong Zhang - 1.6.22-13 +- fix build error on loongarch64 + * Tue Oct 08 2024 zhongjiawei - 1.6.22-12 - Type:bugfix - ID:NA diff --git a/patch/0037-fix-build-error-for-loong64.patch b/patch/0037-fix-build-error-for-loong64.patch new file mode 100644 index 0000000..de38eae --- /dev/null +++ b/patch/0037-fix-build-error-for-loong64.patch @@ -0,0 +1,22 @@ +From 9fdcd6d6ac3bf222d9b4bb45f282b0c47a6b2057 Mon Sep 17 00:00:00 2001 +From: build +Date: Tue, 15 Oct 2024 15:24:03 +0800 +Subject: [PATCH] fix build error for loong64 + +--- + sys/thp_loong64.go | 3 +++ + 1 file changed, 3 insertions(+) + create mode 100644 sys/thp_loong64.go + +diff --git a/sys/thp_loong64.go b/sys/thp_loong64.go +new file mode 100644 +index 0000000..a6db8d6 +--- /dev/null ++++ b/sys/thp_loong64.go +@@ -0,0 +1,3 @@ ++package sys ++ ++const PRCTL_SYSCALL = 167 +-- +2.43.0 + diff --git a/series.conf b/series.conf index a60945a..78a73bd 100644 --- a/series.conf +++ b/series.conf @@ -33,3 +33,4 @@ patch/0033-containerd-Fix-missing-closed-fifo.patch patch/0034-containerd-disable-Transparent-HugePage-for-shim-pro.patch patch/0035-containerd-modify-Makefile-for-go-build-options.patch patch/0036-containerd-modify-makefile-options.patch +patch/0037-fix-build-error-for-loong64.patch -- Gitee