diff --git a/0001-fix-bbolt-build-error-on-loongarch64.patch b/0001-fix-bbolt-build-error-on-loongarch64.patch new file mode 100644 index 0000000000000000000000000000000000000000..d5e122b8c244aec4785f70f50a3241deb6994e48 --- /dev/null +++ b/0001-fix-bbolt-build-error-on-loongarch64.patch @@ -0,0 +1,28 @@ +From 755b383af3606030ebcfe5437de42d0f8c185d42 Mon Sep 17 00:00:00 2001 +From: zhangwenlong +Date: Thu, 12 Feb 2026 02:53:34 +0000 +Subject: [PATCH] fix build error for bbolt + +--- + vendor/go.etcd.io/bbolt/bolt_loong64.go | 9 +++++++++ + 1 file changed, 9 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 0000000..c5bb7cb +--- /dev/null ++++ b/vendor/go.etcd.io/bbolt/bolt_loong64.go +@@ -0,0 +1,9 @@ ++// +build loong64 ++ ++package bbolt ++ ++// maxMapSize represents the largest mmap size supported by Bolt. ++const maxMapSize = 0xFFFFFFFFFFFF // 256TB ++ ++// maxAllocSize is the size used when creating array pointers. ++const maxAllocSize = 0x7FFFFFFF +-- +2.47.3 + diff --git a/influxdb-2.7.1.tar.xz b/influxdb-2.7.1.tar.xz deleted file mode 100644 index e12447797763121d256765528a983b67fc37e2ef..0000000000000000000000000000000000000000 Binary files a/influxdb-2.7.1.tar.xz and /dev/null differ diff --git a/influxdb.spec b/influxdb.spec index 96d24fe3545fa7546adbf2f05309fcef0c00db81..be8d61effd27ee30ad4954b9ffc828fada26a415 100644 --- a/influxdb.spec +++ b/influxdb.spec @@ -6,17 +6,20 @@ Name: influxdb Summary: Scalable datastore for metrics, events, and real-time analytics License: MIT Group: Productivity/Databases/Servers -Version: 2.7.1 +Version: 2.8.0 Release: %{anolis_release}%{?dist} URL: https://github.com/influxdata/influxdb -Source0: https://github.com/influxdata/influxdb/%{name}-%{version}.tar.xz +Source0: https://github.com/influxdata/influxdb/archive/refs/tags/v%{version}.tar.gz Source1: influxdb.service Source2: influxdb.tmpfiles Source3: influxdb-user.conf Source4: config.yaml -# https://github.com/influxdata/ui/releases/download/OSS-v2.6.1/build.tar.gz -Source98: ui-assets-%{version}.tar.xz -Source99: vendor.tar.xz +# https://github.com/influxdata/ui/releases/download/OSS-v2.7.12/build.tar.gz +Source98: ui-assets-v%{version}.tar.gz +Source99: vendor.tar.gz + +# fix bbolt build error on loongarch64 +Patch0001: 0001-fix-bbolt-build-error-on-loongarch64.patch BuildRequires: fdupes BuildRequires: go >= 1.19 @@ -41,6 +44,7 @@ Go sources and other development files for InfluxDB %setup -q %setup -q -T -D -a 99 %setup -q -T -D -a 98 +%patch0001 -p1 mv build ui echo 'UI assets predownloaded!' > ui/fetch_ui_assets.sh @@ -100,5 +104,10 @@ rm -rf %{buildroot}%{gocode_url}/influxdata/influxdb/v2/bin %{gocode_url}/influxdata/influxdb %changelog +* Tue Feb 10 2026 tomcruiseqi - 2.8.0-1 +- Update to 2.8.0 +- Fix CVE-2024-30896 + * Mon Sep 25 2023 happy_orange - 2.7.1-1 - init package + diff --git a/vendor.tar.xz b/ui-assets-v2.8.0.tar.gz similarity index 41% rename from vendor.tar.xz rename to ui-assets-v2.8.0.tar.gz index 0345d4f828cfc4131f1b744be62a77a806bf8704..0f6f9eb6b186f0e1110027052edea9d93d8c5cb5 100644 Binary files a/vendor.tar.xz and b/ui-assets-v2.8.0.tar.gz differ diff --git a/ui-assets-2.7.1.tar.xz b/v2.8.0.tar.gz similarity index 61% rename from ui-assets-2.7.1.tar.xz rename to v2.8.0.tar.gz index 76a651c5b33356e8e56f21953cb3d999af07f22e..f502fd8ac6d208fedf630b05c59a48e4a74224f8 100644 Binary files a/ui-assets-2.7.1.tar.xz and b/v2.8.0.tar.gz differ diff --git a/vendor.tar.gz b/vendor.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..cfc7fa7cbf353d7725418e1b933eecce9f06e19f Binary files /dev/null and b/vendor.tar.gz differ