Add loong64 support

This commit is contained in:
zhangxianting 2024-07-02 15:08:16 +08:00
parent 14bbf13f36
commit 7a25bdc381
2 changed files with 139 additions and 1 deletions

View File

@ -0,0 +1,133 @@
From b9e95e2cef32512c6edc5395d08b2c102a8c4019 Mon Sep 17 00:00:00 2001
From: zhangxianting <zhangxianting@uniontech.com>
Date: Tue, 2 Jul 2024 15:05:59 +0800
Subject: [PATCH] add loong64 support
---
.../zsysconf_values_linux_loong64.go | 114 ++++++++++++++++++
1 file changed, 114 insertions(+)
create mode 100644 vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_loong64.go
diff --git a/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_loong64.go b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_loong64.go
new file mode 100644
index 0000000..95a71f4
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_loong64.go
@@ -0,0 +1,114 @@
+// Code generated by cmd/cgo -godefs; DO NOT EDIT.
+// cgo -godefs sysconf_values_linux.go
+
+//go:build linux && loong64
+// +build linux,loong64
+
+package sysconf
+
+const (
+ _AIO_PRIO_DELTA_MAX = 0x14
+ _BC_BASE_MAX = 0x63
+ _BC_DIM_MAX = 0x800
+ _BC_SCALE_MAX = 0x63
+ _BC_STRING_MAX = 0x3e8
+ _COLL_WEIGHTS_MAX = 0xff
+ _DELAYTIMER_MAX = 0x7fffffff
+ _EXPR_NEST_MAX = 0x20
+ _HOST_NAME_MAX = 0x40
+ _LINE_MAX = 0x800
+ _LOGIN_NAME_MAX = 0x100
+ _MQ_PRIO_MAX = 0x8000
+ _NGROUPS_MAX = 0x10000
+ _NSS_BUFLEN_GROUP = 0x400
+ _NSS_BUFLEN_PASSWD = 0x400
+ _OPEN_MAX = 0x100
+ _PTHREAD_KEYS_MAX = 0x400
+ _PTHREAD_STACK_MIN = 0x20000
+ _RE_DUP_MAX = 0x7fff
+ _RTSIG_MAX = 0x20
+ _SEM_VALUE_MAX = 0x7fffffff
+ _STREAM_MAX = 0x10
+ _SYMLOOP_MAX = -0x1
+ _TTY_NAME_MAX = 0x20
+
+ _UIO_MAXIOV = 0x400
+
+ _INT_MAX = 0x7fffffff
+
+ _POSIX_ADVISORY_INFO = 0x31069
+ _POSIX_ARG_MAX = 0x1000
+ _POSIX_ASYNCHRONOUS_IO = 0x31069
+ _POSIX_BARRIERS = 0x31069
+ _POSIX_CHILD_MAX = 0x19
+ _POSIX_CLOCK_SELECTION = 0x31069
+ _POSIX_CPUTIME = 0x0
+ _POSIX_FSYNC = 0x31069
+ _POSIX_IPV6 = 0x31069
+ _POSIX_JOB_CONTROL = 0x1
+ _POSIX_MAPPED_FILES = 0x31069
+ _POSIX_MEMLOCK = 0x31069
+ _POSIX_MEMLOCK_RANGE = 0x31069
+ _POSIX_MEMORY_PROTECTION = 0x31069
+ _POSIX_MESSAGE_PASSING = 0x31069
+ _POSIX_MONOTONIC_CLOCK = 0x0
+ _POSIX_PRIORITIZED_IO = 0x31069
+ _POSIX_PRIORITY_SCHEDULING = 0x31069
+ _POSIX_RAW_SOCKETS = 0x31069
+ _POSIX_READER_WRITER_LOCKS = 0x31069
+ _POSIX_REALTIME_SIGNALS = 0x31069
+ _POSIX_REGEXP = 0x1
+ _POSIX_SAVED_IDS = 0x1
+ _POSIX_SEMAPHORES = 0x31069
+ _POSIX_SHARED_MEMORY_OBJECTS = 0x31069
+ _POSIX_SHELL = 0x1
+ _POSIX_SIGQUEUE_MAX = 0x20
+ _POSIX_SPAWN = 0x31069
+ _POSIX_SPIN_LOCKS = 0x31069
+ _POSIX_SPORADIC_SERVER = -0x1
+ _POSIX_SYNCHRONIZED_IO = 0x31069
+ _POSIX_THREAD_ATTR_STACKADDR = 0x31069
+ _POSIX_THREAD_ATTR_STACKSIZE = 0x31069
+ _POSIX_THREAD_DESTRUCTOR_ITERATIONS = 0x4
+ _POSIX_THREAD_PRIO_INHERIT = 0x31069
+ _POSIX_THREAD_PRIO_PROTECT = 0x31069
+ _POSIX_THREAD_PRIORITY_SCHEDULING = 0x31069
+ _POSIX_THREAD_PROCESS_SHARED = 0x31069
+ _POSIX_THREAD_SAFE_FUNCTIONS = 0x31069
+ _POSIX_THREAD_SPORADIC_SERVER = -0x1
+ _POSIX_THREADS = 0x31069
+ _POSIX_TIMEOUTS = 0x31069
+ _POSIX_TIMERS = 0x31069
+ _POSIX_TRACE = -0x1
+ _POSIX_TRACE_EVENT_FILTER = -0x1
+ _POSIX_TRACE_INHERIT = -0x1
+ _POSIX_TRACE_LOG = -0x1
+ _POSIX_TYPED_MEMORY_OBJECTS = -0x1
+ _POSIX_VERSION = 0x31069
+
+ _POSIX_V7_ILP32_OFF32 = -0x1
+ _POSIX_V7_ILP32_OFFBIG = -0x1
+ _POSIX_V7_LP64_OFF64 = 0x1
+ _POSIX_V7_LPBIG_OFFBIG = -0x1
+
+ _POSIX_V6_ILP32_OFF32 = -0x1
+ _POSIX_V6_ILP32_OFFBIG = -0x1
+ _POSIX_V6_LP64_OFF64 = 0x1
+ _POSIX_V6_LPBIG_OFFBIG = -0x1
+
+ _POSIX2_C_BIND = 0x31069
+ _POSIX2_C_DEV = 0x31069
+ _POSIX2_C_VERSION = 0x31069
+ _POSIX2_CHAR_TERM = 0x31069
+ _POSIX2_LOCALEDEF = 0x31069
+ _POSIX2_SW_DEV = 0x31069
+ _POSIX2_VERSION = 0x31069
+
+ _XOPEN_ENH_I18N = 0x1
+ _XOPEN_REALTIME = 0x1
+ _XOPEN_REALTIME_THREADS = 0x1
+ _XOPEN_SHM = 0x1
+ _XOPEN_UNIX = 0x1
+ _XOPEN_VERSION = 0x2bc
+ _XOPEN_XCU_VERSION = 0x4
+)
--
2.43.0

View File

@ -2,12 +2,13 @@
Name: openGemini
Version: 1.0.0
Release: 1
Release: 2
Summary: An open source distributed time-series database with high concurrency, high performance, and high scalability
License: Apache 2.0
Group: Applications/Databases
URL: https://www.openGemini.org/
Source0: %{name}-%{version}.tar.gz
Patch0: 0001-add-loong64-support.patch
BuildRequires: gcc,make,golang >= 1.16
@ -15,6 +16,7 @@ BuildRequires: gcc,make,golang >= 1.16
An open source distributed time-series database with high concurrency, high performance, and high scalability.
%prep
%setup -q -n %{name}
%patch0 -p1
%build
# set up temporary build gopath, and put our directory there
@ -60,5 +62,8 @@ install -p -m 0644 ./config/* %{buildroot}/etc/%{name}
%dir /var/log/%{name}
%changelog
* Tue Jul 02 2024 zhangxianting <zhangxianting@uniontech.com> - 1.0.0-2
- Add loong64 support
* Fri Feb 24 2023 opengemini_admin <xiangyu9@huawei.com> - 1.0.0-1
- Initial version