public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Fabio Valentini <decathorpe@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-resctl-bench] f43: Fix compilation with recent versions of Rust
Date: Sat, 17 Oct 2026 13:31:50 GMT	[thread overview]
Message-ID: <179224391098.1.9180400086704085202.rpms-rust-resctl-bench-75098c95a0fd@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rust-resctl-bench
Branch : f43
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=f43

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
 

                 reply	other threads:[~2026-10-17 13:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179224391098.1.9180400086704085202.rpms-rust-resctl-bench-75098c95a0fd@fedoraproject.org \
    --to=decathorpe@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox