add loong64 support for bbolt
(cherry picked from commit 3745aea654a512efe8ec578bb49d006e1028681e)
This commit is contained in:
parent
09b8ce71a1
commit
8d33e9c870
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
|
Summary: Application and environment virtualization formerly known as Singularity
|
||||||
Name: apptainer
|
Name: apptainer
|
||||||
Version: 1.1.6
|
Version: 1.1.6
|
||||||
Release: 2
|
Release: 3
|
||||||
# See LICENSE.md for first party code (BSD-3-Clause and LBNL BSD)
|
# 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_THIRD_PARTY.md for incorporated code (ASL 2.0)
|
||||||
# See LICENSE_DEPENDENCIES.md for dependencies
|
# See LICENSE_DEPENDENCIES.md for dependencies
|
||||||
@ -59,6 +59,7 @@ Patch10: 70.patch
|
|||||||
Patch11: 77.patch
|
Patch11: 77.patch
|
||||||
Patch12: 81.patch
|
Patch12: 81.patch
|
||||||
%endif
|
%endif
|
||||||
|
Patch13: add-loong64-support-for-bbolt.patch
|
||||||
|
|
||||||
# This Conflicts is in case someone tries to install the main apptainer
|
# This Conflicts is in case someone tries to install the main apptainer
|
||||||
# package when an old singularity package is installed. An Obsoletes is on
|
# 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
|
%patch -P 12 -p1
|
||||||
%setup -n %{name}-%{package_version}
|
%setup -n %{name}-%{package_version}
|
||||||
%patch -P 0 -p1
|
%patch -P 0 -p1
|
||||||
|
%patch -P 13 -p1
|
||||||
%else
|
%else
|
||||||
%autosetup -n %{name}-%{package_version}
|
%autosetup -n %{name}-%{package_version}
|
||||||
%endif
|
%endif
|
||||||
@ -435,6 +437,9 @@ fi
|
|||||||
%attr(4755, root, root) %{_libexecdir}/%{name}/bin/starter-suid
|
%attr(4755, root, root) %{_libexecdir}/%{name}/bin/starter-suid
|
||||||
|
|
||||||
%changelog
|
%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
|
* Tue Apr 02 2024 zhengting <zhengting13@huawei.com> - 1.1.6-2
|
||||||
- Patch golang verison fro openEuler 24.03
|
- Patch golang verison fro openEuler 24.03
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user