mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 23:07:10 -08:00
dev-db/influxdb: disable warnings, support newer rust
Closes: https://bugs.gentoo.org/961269 Closes: https://bugs.gentoo.org/972380 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org> Part-of: https://codeberg.org/gentoo/gentoo/pulls/2100
This commit is contained in:
@@ -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`
|
||||
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user