diff --git a/0002-Set-CGO_ENABLED-1-on-loong64.patch b/0002-Set-CGO_ENABLED-1-on-loong64.patch new file mode 100644 index 0000000000000000000000000000000000000000..b0be75f928c4402ce53d1fba04ee185c60c9b7c9 --- /dev/null +++ b/0002-Set-CGO_ENABLED-1-on-loong64.patch @@ -0,0 +1,24 @@ +From 846b34f112fd9684a95238dd3a6352e0f3f58a48 Mon Sep 17 00:00:00 2001 +From: Wenlong Zhang +Date: Wed, 16 Apr 2025 11:41:32 +0800 +Subject: [PATCH] Set CGO_ENABLED=1 on loong64 + +--- + scripts/build/.variables | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/scripts/build/.variables b/scripts/build/.variables +index de7945d..a9af6cb 100755 +--- a/scripts/build/.variables ++++ b/scripts/build/.variables +@@ -48,7 +48,7 @@ if [ -z "$CGO_ENABLED" ]; then + case "$(go env GOOS)" in + linux) + case "$(go env GOARCH)" in +- amd64|arm64|arm|s390x|riscv64) ++ amd64|arm64|arm|s390x|riscv64|loong64) + CGO_ENABLED=1 + ;; + *) +-- +2.43.0 diff --git a/moby.spec b/moby.spec index d029f7eb7f82ad45c7f54c5b97317c778f674d59..51ccede1e4030e2f7a96fc379a9825095352df9c 100644 --- a/moby.spec +++ b/moby.spec @@ -7,7 +7,7 @@ Name: moby Version: 25.0.3 -Release: 23 +Release: 24 Summary: The open-source application container engine License: Apache-2.0 URL: https://www.docker.com @@ -22,6 +22,7 @@ Source4: docker.socket Source5: docker.sysconfig # Patch 0001-0999 for cli Patch0001: 0001-Set-CGO_ENABLED-1-on-riscv64.patch +Patch0002: 0002-Set-CGO_ENABLED-1-on-loong64.patch # Patch 1001-1999 for moby Patch1001: 1001-fix-cve-2024-29018.patch Patch1002: 1002-fix-cve-2024-32473.patch @@ -226,6 +227,9 @@ fi %systemd_postun_with_restart docker.service %changelog +* Thu Apr 17 2025 shechenglong - 25.0.3-24 +- fix build error on loongarch64 + * Fri Jan 17 2025 laokz - 25.0.3-23 - backport cli v26.1.0 patch to fix riscv64 build error