public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-resctl-bench] f44: Fix compilation with recent versions of Rust
@ 2026-10-17 13:18 Fabio Valentini
0 siblings, 0 replies; only message in thread
From: Fabio Valentini @ 2026-10-17 13:18 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rust-resctl-bench
Branch : f44
Commit : 75098c95a0fd8396150a44f34edd09e8c82f7dff
Author : Fabio Valentini <decathorpe@gmail.com>
Date : 2026-10-17T14:47:20+02:00
Stats : +26/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/rust-resctl-bench/c/75098c95a0fd8396150a44f34edd09e8c82f7dff?branch=f44
Log:
Fix compilation with recent versions of Rust
---
diff --git a/0001-Fix-compilation-with-recent-versions-of-Rust.patch b/0001-Fix-compilation-with-recent-versions-of-Rust.patch
new file mode 100644
index 0000000..04de8d8
--- /dev/null
+++ b/0001-Fix-compilation-with-recent-versions-of-Rust.patch
@@ -0,0 +1,25 @@
+From f0bb60b66e9e9a8f803d211c41cc770a7a39979d Mon Sep 17 00:00:00 2001
+From: Fabio Valentini <decathorpe@gmail.com>
+Date: Sat, 17 Oct 2026 14:42:34 +0200
+Subject: [PATCH] Fix compilation with recent versions of Rust
+
+---
+ src/base.rs | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/base.rs b/src/base.rs
+index 8d1e234..8d1b88e 100644
+--- a/src/base.rs
++++ b/src/base.rs
+@@ -500,7 +500,7 @@ impl<'a> Base<'a> {
+ })?;
+
+ let protected = rctx.access_agent_files(|af| {
+- match af.report.data.sysloads.get(INODESTEAL_TEST.into()) {
++ match af.report.data.sysloads.get(INODESTEAL_TEST) {
+ Some(rep) => Ok(rep.svc.state == SvcStateReport::Exited),
+ None => Err(anyhow!(
+ "base: Can't find {} service after testing",
+--
+2.56.0
+
diff --git a/rust-resctl-bench.spec b/rust-resctl-bench.spec
index 88b913e..e1061bd 100644
--- a/rust-resctl-bench.spec
+++ b/rust-resctl-bench.spec
@@ -16,6 +16,7 @@ Source: %{crates_source}
# * allow indicatif 0.18 and console 0.16:
# https://github.com/facebookexperimental/resctl-demo/pull/332
Patch: resctl-bench-fix-metadata.diff
+Patch: 0001-Fix-compilation-with-recent-versions-of-Rust.patch
BuildRequires: cargo-rpm-macros >= 24
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-17 13:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-17 13:18 [rpms/rust-resctl-bench] f44: Fix compilation with recent versions of Rust Fabio Valentini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox