From 4c8342a446372aca2fa834d3bd1ec2af57de224c Mon Sep 17 00:00:00 2001 From: eholzbach Date: Sat, 15 Aug 2026 16:46:03 -0400 Subject: [PATCH] influxdb: update to 3.11.1 --- srcpkgs/influxdb/files/influxdb/run | 2 +- srcpkgs/influxdb/template | 66 ++++++++++++++++++----------- 2 files changed, 43 insertions(+), 25 deletions(-) diff --git a/srcpkgs/influxdb/files/influxdb/run b/srcpkgs/influxdb/files/influxdb/run index 21a5285de281cc..01a8ec2d809cd1 100644 --- a/srcpkgs/influxdb/files/influxdb/run +++ b/srcpkgs/influxdb/files/influxdb/run @@ -1,4 +1,4 @@ #!/bin/sh exec 2>&1 -exec chpst -u _influxdb:_influxdb influxd -config /etc/influxdb/influxdb.conf 2>&1 +exec chpst -u _influxdb:_influxdb influxdb3 serve --node-id void --object-store file --data-dir /var/lib/influxdb diff --git a/srcpkgs/influxdb/template b/srcpkgs/influxdb/template index a4b442f924203b..7226bea434fffa 100644 --- a/srcpkgs/influxdb/template +++ b/srcpkgs/influxdb/template @@ -1,37 +1,55 @@ # Template file for 'influxdb' pkgname=influxdb -version=1.8.3 -revision=4 -build_style=go -go_import_path=github.com/influxdata/influxdb -go_package="${go_import_path}/cmd/influx - ${go_import_path}/cmd/influxd - ${go_import_path}/cmd/influx_tsm - ${go_import_path}/cmd/influx_inspect - ${go_import_path}/cmd/influx_stress" -go_ldflags="-X main.version=${version}" -hostmakedepends="asciidoc xmlto" +version=3.11.1 +revision=1 +# influxdb v3 dropped support for 32bit, build pulls wasm bins from influxdata/datafusion-udf-wasm +archs="x86_64 aarch64" +build_style=cargo +make_install_args="--path influxdb3" +hostmakedepends="lld pkg-config protobuf protobuf-devel python3 sqlite-devel" +makedepends="bzip2-devel libzstd-devel python3-devel sqlite-devel" short_desc="Scalable datastore for metrics, events, and real-time analytics" maintainer="Orphaned " -license="MIT" +license="Apache-2.0 AND MIT" homepage="https://influxdata.com/time-series-platform/influxdb/" -changelog="https://raw.githubusercontent.com/influxdata/influxdb/master/CHANGELOG.md" -distfiles="https://${go_import_path}/archive/v${version}.tar.gz" -checksum=d8b89e324ed7343c1397124ac3cc68c405406faf74e7369e733611cada54656d +changelog="https://raw.githubusercontent.com/influxdata/influxdb/main/CHANGELOG.md" +distfiles="https://github.com/influxdata/influxdb/archive/v${version}.tar.gz" +checksum=fc4b2df6d75a628e8973ed7f601a820140a19825a67cd399314274db6bf78316 + +# release tag commit, update with version bump +export GIT_HASH=a95809c862448e050a2f6db3df202984e058bac3 system_accounts="_influxdb" -_influxdb_homedir="/var/lib/influxdb" -make_dirs="${_influxdb_homedir} 0755 _influxdb _influxdb" -conf_files="/etc/${pkgname}/${pkgname}.conf" +make_dirs="/var/lib/influxdb 0755 _influxdb _influxdb" + +# https://github.com/rust-lang/cc-rs/issues/1469 +_build_env() { + export CFLAGS_${RUST_TARGET//-/_}="${CFLAGS}" + export HOST_CFLAGS="-fstack-clash-protection ${CFLAGS_host}" + export CFLAGS_${RUST_BUILD//-/_}="-fstack-clash-protection ${CFLAGS_host}" + unset CFLAGS +} + + +# lto causes memory exhaustion +pre_configure() { + vsed -i Cargo.toml -e 's/lto = "fat"/lto = "thin"/' +} -post_build() { - make -C man build +pre_build() { + _build_env +} + +pre_check() { + _build_env +} + +pre_install() { + _build_env } post_install() { - vlicense LICENSE + vlicense LICENSE-MIT + vlicense LICENSE-APACHE vsv ${pkgname} - vinstall etc/config.sample.toml 644 etc/${pkgname} ${pkgname}.conf - - make -C man DESTDIR="${DESTDIR}/usr" install }