diff --git a/containerd.spec b/containerd.spec index 078d2b61cbef130c26ed83bab8811b22e0a77cf8..1f1d6fa26ce3dd96d4c76b9842f0f49aa81721fe 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 0000000000000000000000000000000000000000..de38eae9876620765c428d87d3473c80f70166c5 --- /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 a60945a98b2ed22cb9514667e7c518307929a5c4..78a73bdf99d133e6485e55d685974b3222871736 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