!7 add loong64 support for bbolt
From: @zhangwenlong01 Reviewed-by: @iotwins Signed-off-by: @iotwins
This commit is contained in:
commit
ffdfd81be7
32
add-loong64-support-for-bbolt.patch
Normal file
32
add-loong64-support-for-bbolt.patch
Normal file
@ -0,0 +1,32 @@
|
||||
From 8617d4d44d055b19301a815ec070479d9e8e00ff Mon Sep 17 00:00:00 2001
|
||||
From: Your Name <you@example.com>
|
||||
Date: Fri, 6 Jan 2023 01:20:46 +0000
|
||||
Subject: [PATCH] add loong64 support for bbolt
|
||||
|
||||
---
|
||||
vendor/go.etcd.io/bbolt/bolt_loong64.go | 12 ++++++++++++
|
||||
1 file changed, 12 insertions(+)
|
||||
create mode 100644 vendor/go.etcd.io/bbolt/bolt_loong64.go
|
||||
|
||||
diff --git a/vendor/go.etcd.io/bbolt/bolt_loong64.go b/vendor/go.etcd.io/bbolt/bolt_loong64.go
|
||||
new file mode 100644
|
||||
index 00000000..aa8de7b1
|
||||
--- /dev/null
|
||||
+++ b/vendor/go.etcd.io/bbolt/bolt_loong64.go
|
||||
@@ -0,0 +1,12 @@
|
||||
+// +build loong64
|
||||
+
|
||||
+package bbolt
|
||||
+
|
||||
+// maxMapSize represents the largest mmap size supported by Bolt.
|
||||
+const maxMapSize = 0x8000000000 // 512GB
|
||||
+
|
||||
+// maxAllocSize is the size used when creating array pointers.
|
||||
+const maxAllocSize = 0x7FFFFFFF
|
||||
+
|
||||
+// Are unaligned load/stores broken on this arch?
|
||||
+var brokenUnaligned = false
|
||||
--
|
||||
2.33.0
|
||||
|
||||
|
||||
@ -42,7 +42,7 @@
|
||||
Summary: Application and environment virtualization formerly known as Singularity
|
||||
Name: apptainer
|
||||
Version: 1.1.6
|
||||
Release: 2
|
||||
Release: 3
|
||||
# See LICENSE.md for first party code (BSD-3-Clause and LBNL BSD)
|
||||
# See LICENSE_THIRD_PARTY.md for incorporated code (ASL 2.0)
|
||||
# See LICENSE_DEPENDENCIES.md for dependencies
|
||||
@ -59,6 +59,7 @@ Patch10: 70.patch
|
||||
Patch11: 77.patch
|
||||
Patch12: 81.patch
|
||||
%endif
|
||||
Patch13: add-loong64-support-for-bbolt.patch
|
||||
|
||||
# This Conflicts is in case someone tries to install the main apptainer
|
||||
# package when an old singularity package is installed. An Obsoletes is on
|
||||
@ -290,6 +291,7 @@ Provides the optional setuid-root portion of Apptainer.
|
||||
%patch -P 12 -p1
|
||||
%setup -n %{name}-%{package_version}
|
||||
%patch -P 0 -p1
|
||||
%patch -P 13 -p1
|
||||
%else
|
||||
%autosetup -n %{name}-%{package_version}
|
||||
%endif
|
||||
@ -435,6 +437,9 @@ fi
|
||||
%attr(4755, root, root) %{_libexecdir}/%{name}/bin/starter-suid
|
||||
|
||||
%changelog
|
||||
* Tue Jun 18 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 1.1.6-3
|
||||
- add loong64 support for bbolt
|
||||
|
||||
* Tue Apr 02 2024 zhengting <zhengting13@huawei.com> - 1.1.6-2
|
||||
- Patch golang verison fro openEuler 24.03
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user