public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/bpftop] f43: Update circular-buffer dependency to version 2
Date: Fri, 17 Jul 2026 05:19:52 GMT	[thread overview]
Message-ID: <178426559241.1.721189711702759264.rpms-bpftop-7f1409e6cbe9@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/bpftop
            Branch : f43
            Commit : 7f1409e6cbe9956ddb1aa5aa69a71863e678179f
            Author : Benjamin A. Beasley <code@musicinmybrain.net>
            Date   : 2026-07-17T06:19:40+01:00
            Stats  : +49/-5 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/bpftop/c/7f1409e6cbe9956ddb1aa5aa69a71863e678179f?branch=f43

            Log:
            Update circular-buffer dependency to version 2

- Update License field based on a current build in Rawhide

---
diff --git a/bpftop-0.9.0-circular-buffer-2.patch b/bpftop-0.9.0-circular-buffer-2.patch
new file mode 100644
index 0000000..63a33f3
--- /dev/null
+++ b/bpftop-0.9.0-circular-buffer-2.patch
@@ -0,0 +1,43 @@
+diff --git a/Cargo.toml b/Cargo.toml
+index 444dc49..70e91d9 100644
+--- a/Cargo.toml
++++ b/Cargo.toml
+@@ -19,6 +19,6 @@ crossterm = "0.29.0"
+ anyhow = "1.0.99"
+ ratatui = { version = "0.30.0", default-features = false, features = ['crossterm'] }
+ nix = { version = "0.29.0", features = ["user", "net"] }
+-circular-buffer = "1.1.0"
++circular-buffer = "2.0.0"
+ tui-input = "0.15.0"
+ clap = { version = "4.5.45", features = ["derive"] }
+diff --git a/src/app.rs b/src/app.rs
+index 61db3d0..56ab0a6 100755
+--- a/src/app.rs
++++ b/src/app.rs
+@@ -20,7 +20,7 @@ use crate::{
+     bpf_program::{BpfProgram, Process},
+     helpers::program_type_as_str,
+ };
+-use circular_buffer::CircularBuffer;
++use circular_buffer::FixedCircularBuffer;
+ use libbpf_rs::{query::ProgInfoIter, Iter, Link};
+ use ratatui::widgets::ScrollbarState;
+ use ratatui::widgets::TableState;
+@@ -42,7 +42,7 @@ pub struct App {
+     pub vertical_scroll_state: ScrollbarState,
+     pub header_columns: [String; 7],
+     pub items: Arc<Mutex<Vec<BpfProgram>>>,
+-    pub data_buf: Arc<Mutex<CircularBuffer<20, PeriodMeasure>>>,
++    pub data_buf: Arc<Mutex<FixedCircularBuffer<PeriodMeasure, 20>>>,
+     pub max_cpu: f64,
+     pub max_eps: i64,
+     pub max_runtime: u64,
+@@ -140,7 +140,7 @@ impl App {
+                 String::from("Total CPU %"),
+             ],
+             items: Arc::new(Mutex::new(vec![])),
+-            data_buf: Arc::new(Mutex::new(CircularBuffer::<20, PeriodMeasure>::new())),
++            data_buf: Arc::new(Mutex::new(FixedCircularBuffer::<PeriodMeasure, 20>::new())),
+             max_cpu: 0.0,
+             max_eps: 0,
+             max_runtime: 0,

diff --git a/bpftop.spec b/bpftop.spec
index 37713b6..eee0e2e 100644
--- a/bpftop.spec
+++ b/bpftop.spec
@@ -10,7 +10,6 @@ Release:        %autorelease
 Summary:        Dynamic real-time view of running eBPF programs
 
 SourceLicense:  Apache-2.0
-# 0BSD OR MIT OR Apache-2.0
 # Apache-2.0
 # Apache-2.0 OR BSL-1.0
 # Apache-2.0 OR MIT
@@ -20,7 +19,6 @@ SourceLicense:  Apache-2.0
 # LGPL-2.1-only OR BSD-2-Clause
 # MIT
 # MIT OR Apache-2.0
-# MIT OR Zlib OR Apache-2.0
 # Zlib
 License:        %{shrink:
     Apache-2.0 AND
@@ -28,15 +26,18 @@ License:        %{shrink:
     BSD-3-Clause AND
     MIT AND
     Zlib AND
-    (0BSD OR MIT OR Apache-2.0) AND
     (Apache-2.0 OR BSL-1.0) AND
     (Apache-2.0 OR MIT) AND
     (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND
-    (LGPL-2.1-only OR BSD-2-Clause) AND
-    (MIT OR Zlib OR Apache-2.0)
+    (LGPL-2.1-only OR BSD-2-Clause)
     }
 # LICENSE.dependencies contains a full license breakdown
 
+# Update the circular-buffer dependency from v1 to v2
+# https://github.com/jfernandez/bpftop/pull/234
+# Without changes to Cargo.lock
+Patch:          bpftop-0.9.0-circular-buffer-2.patch
+
 URL:            https://github.com/jfernandez/%{name}
 Source:         %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
 

                 reply	other threads:[~2026-07-17  5:19 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=178426559241.1.721189711702759264.rpms-bpftop-7f1409e6cbe9@fedoraproject.org \
    --to=code@musicinmybrain.net \
    --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