diff --git a/dev-db/influxdb/files/influxdb-2.7.10-flux-no-deny-warnings.patch b/dev-db/influxdb/files/influxdb-2.7.10-flux-no-deny-warnings.patch new file mode 100644 index 0000000000000..02e181b213d64 --- /dev/null +++ b/dev-db/influxdb/files/influxdb-2.7.10-flux-no-deny-warnings.patch @@ -0,0 +1,23 @@ +Don't turn all warnings into errors with the default "strict" feature, +every new Rust release adds lints that break the build. + +Bug: https://bugs.gentoo.org/961269 +Upstream fixed the current warnings in: +https://github.com/influxdata/flux/pull/5560 +https://github.com/influxdata/flux/pull/5568 +https://github.com/influxdata/flux/pull/5585 + +--- a/libflux/flux/src/lib.rs ++++ b/libflux/flux/src/lib.rs +@@ -1,4 +1,3 @@ +-#![cfg_attr(feature = "strict", deny(warnings, missing_docs))] + + //! This module provides the public facing API for Flux's Go runtime, including formatting, + //! parsing, and standard library analysis. +--- a/libflux/flux-core/src/lib.rs ++++ b/libflux/flux-core/src/lib.rs +@@ -1,4 +1,3 @@ +-#![cfg_attr(feature = "strict", deny(warnings, missing_docs))] + #![allow( + clippy::needless_update, // + clippy::identity_op, // Warns on `1 * YEARS` which seems clearer than `YEARS` diff --git a/dev-db/influxdb/influxdb-2.7.10-r1.ebuild b/dev-db/influxdb/influxdb-2.7.10-r1.ebuild index d3b52ab1c291c..e265bf320abee 100644 --- a/dev-db/influxdb/influxdb-2.7.10-r1.ebuild +++ b/dev-db/influxdb/influxdb-2.7.10-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2025 Gentoo Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -189,8 +189,6 @@ CRATES=" yansi@0.5.1 " -# bug #961269 -RUST_MAX_VER=1.88.0 inherit cargo go-module systemd DESCRIPTION="Scalable datastore for metrics, events, and real-time analytics" @@ -229,6 +227,10 @@ src_prepare() { data_dir="${S}/static/data" mkdir "${data_dir}" || die mv "${WORKDIR}/build" "${data_dir}" || die + + pushd "${WORKDIR}/go-mod/github.com/influxdata/flux@v${FLUX_PV}" >/dev/null || die + eapply "${FILESDIR}"/${PN}-2.7.10-flux-no-deny-warnings.patch + popd >/dev/null || die } src_compile() { diff --git a/dev-db/influxdb/influxdb-2.7.11.ebuild b/dev-db/influxdb/influxdb-2.7.11.ebuild index fe8330a773fb8..591be4024d378 100644 --- a/dev-db/influxdb/influxdb-2.7.11.ebuild +++ b/dev-db/influxdb/influxdb-2.7.11.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2025 Gentoo Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -189,8 +189,6 @@ CRATES=" yansi@0.5.1 " -# bug #961269 -RUST_MAX_VER=1.88.0 inherit cargo go-module systemd DESCRIPTION="Scalable datastore for metrics, events, and real-time analytics" @@ -231,6 +229,10 @@ src_prepare() { data_dir="${S}/static/data" mkdir "${data_dir}" || die mv "${WORKDIR}/build" "${data_dir}" || die + + pushd "${WORKDIR}/go-mod/github.com/influxdata/flux@v${FLUX_PV}" >/dev/null || die + eapply "${FILESDIR}"/${PN}-2.7.10-flux-no-deny-warnings.patch + popd >/dev/null || die } src_compile() {