fix build error on loongarch64
Signed-off-by: shechenglong <shechenglong@xfusion.com>
This commit is contained in:
parent
adb475cdf8
commit
b9af4a08ac
24
0002-Set-CGO_ENABLED-1-on-loong64.patch
Normal file
24
0002-Set-CGO_ENABLED-1-on-loong64.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
From 846b34f112fd9684a95238dd3a6352e0f3f58a48 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Wenlong Zhang <zhangwenlong@loongson.cn>
|
||||||
|
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
|
||||||
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
Name: moby
|
Name: moby
|
||||||
Version: 25.0.3
|
Version: 25.0.3
|
||||||
Release: 23
|
Release: 24
|
||||||
Summary: The open-source application container engine
|
Summary: The open-source application container engine
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: https://www.docker.com
|
URL: https://www.docker.com
|
||||||
@ -22,6 +22,7 @@ Source4: docker.socket
|
|||||||
Source5: docker.sysconfig
|
Source5: docker.sysconfig
|
||||||
# Patch 0001-0999 for cli
|
# Patch 0001-0999 for cli
|
||||||
Patch0001: 0001-Set-CGO_ENABLED-1-on-riscv64.patch
|
Patch0001: 0001-Set-CGO_ENABLED-1-on-riscv64.patch
|
||||||
|
Patch0002: 0002-Set-CGO_ENABLED-1-on-loong64.patch
|
||||||
# Patch 1001-1999 for moby
|
# Patch 1001-1999 for moby
|
||||||
Patch1001: 1001-fix-cve-2024-29018.patch
|
Patch1001: 1001-fix-cve-2024-29018.patch
|
||||||
Patch1002: 1002-fix-cve-2024-32473.patch
|
Patch1002: 1002-fix-cve-2024-32473.patch
|
||||||
@ -226,6 +227,9 @@ fi
|
|||||||
%systemd_postun_with_restart docker.service
|
%systemd_postun_with_restart docker.service
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Apr 17 2025 shechenglong <shechenglong@xfusion.com> - 25.0.3-24
|
||||||
|
- fix build error on loongarch64
|
||||||
|
|
||||||
* Fri Jan 17 2025 laokz <zhangkai@iscas.ac.cn> - 25.0.3-23
|
* Fri Jan 17 2025 laokz <zhangkai@iscas.ac.cn> - 25.0.3-23
|
||||||
- backport cli v26.1.0 patch to fix riscv64 build error
|
- backport cli v26.1.0 patch to fix riscv64 build error
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user