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..9c9add5a1e983c6b1dba4e67827c7970d4f1d1e4 --- /dev/null +++ b/0002-Set-CGO_ENABLED-1-on-loong64.patch @@ -0,0 +1,25 @@ +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 5fd5e2e8856c866bf55a2903200e6bb3e5abb4f7..e71caeb8464d7dceb97b63e7fbd6912c1ea98be4 100644 --- a/moby.spec +++ b/moby.spec @@ -8,7 +8,7 @@ Name: moby Version: 25.0.7 -Release: 3 +Release: 4 Summary: The open-source application container engine License: Apache-2.0 URL: https://www.docker.com @@ -23,6 +23,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 Patch1002: 1002-fix-cve-2024-32473.patch Patch1003: 1003-add-loongarch64-seccomp-support.patch @@ -220,6 +221,9 @@ fi %systemd_postun_with_restart docker.service %changelog +* Wed Apr 16 14:32:36 CST 2025 Wenlong Zhang - 25.0.7-4 +- fix build error on loongarch64 + * Thu Mar 06 2025 Funda Wang - 25.0.7-3 - build with cmake 4.0