public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-futures-intrusive] f44: Update dev-deps: signal-hook 0.3, rand 0.9
@ 2026-06-19  5:20 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-06-19  5:20 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rust-futures-intrusive
Branch : f44
Commit : 8b192015964931608eb8d1bb743b2d1fe8c5db1a
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-06-18T19:37:11+01:00
Stats  : +59/-18 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-futures-intrusive/c/8b192015964931608eb8d1bb743b2d1fe8c5db1a?branch=f44

Log:
Update dev-deps: signal-hook 0.3, rand 0.9

---
diff --git a/futures-intrusive-0.5.0-signal-hook-0.3.patch b/futures-intrusive-0.5.0-signal-hook-0.3.patch
new file mode 100644
index 0000000..89dd3e6
--- /dev/null
+++ b/futures-intrusive-0.5.0-signal-hook-0.3.patch
@@ -0,0 +1,18 @@
+diff --git a/examples/cancellation.rs b/examples/cancellation.rs
+index 6f5358d..199ad4c 100644
+--- a/examples/cancellation.rs
++++ b/examples/cancellation.rs
+@@ -268,8 +268,11 @@ fn main() {
+     let cloned_token = cancellation_token.clone(); // Clone for the background thread
+     std::thread::spawn(move || {
+         let term = Arc::new(AtomicBool::new(false));
+-        signal_hook::flag::register(signal_hook::SIGINT, Arc::clone(&term))
+-            .unwrap();
++        signal_hook::flag::register(
++            signal_hook::consts::SIGINT,
++            Arc::clone(&term),
++        )
++        .unwrap();
+         while !term.load(Ordering::Relaxed) {
+             std::thread::sleep(Duration::from_millis(100));
+         }

diff --git a/futures-intrusive-fix-metadata.diff b/futures-intrusive-fix-metadata.diff
index b15a716..f749b1c 100644
--- a/futures-intrusive-fix-metadata.diff
+++ b/futures-intrusive-fix-metadata.diff
@@ -1,11 +1,28 @@
 --- futures-intrusive-0.5.0/Cargo.toml	1970-01-01T00:00:01+00:00
-+++ futures-intrusive-0.5.0/Cargo.toml	2025-01-07T13:29:47.970656+00:00
-@@ -62,7 +62,7 @@
- version = "0.3.0"
++++ futures-intrusive-0.5.0/Cargo.toml	2026-06-18T18:37:05.140264+00:00
+@@ -58,11 +58,8 @@
+ [dev-dependencies.async-std]
+ version = "1.4"
  
+-[dev-dependencies.criterion]
+-version = "0.3.0"
+-
  [dev-dependencies.crossbeam]
 -version = "0.7"
 +version = "0.8"
  
  [dev-dependencies.futures]
  version = "0.3.0"
+@@ -80,10 +77,10 @@
+ version = "0.1.0"
+ 
+ [dev-dependencies.rand]
+-version = "0.7"
++version = "0.9"
+ 
+ [dev-dependencies.signal-hook]
+-version = "0.1.11"
++version = "0.3"
+ 
+ [dev-dependencies.tokio]
+ version = "1.14"

diff --git a/rust-futures-intrusive.spec b/rust-futures-intrusive.spec
index ab91786..b0f7c57 100644
--- a/rust-futures-intrusive.spec
+++ b/rust-futures-intrusive.spec
@@ -1,4 +1,4 @@
-# Generated by rust2rpm 27
+# Generated by rust2rpm 28
 %bcond check 1
 %global debug_package %{nil}
 
@@ -13,11 +13,17 @@ License:        MIT OR Apache-2.0
 URL:            https://crates.io/crates/futures-intrusive
 Source:         %{crates_source}
 # Manually created patch for downstream crate metadata changes
-# * bump crossbeam dev-dependency from 0.7 to 0.8
+# * drop unused, benchmark-only dev-dependency on criterion
+# * update some dev-dependencies: crossbeam 0.7 to 0.8, rand 0.7 to 0.9, and
+#   signal-hook 0.1 to 0.3, the last requiring an accompanying source-code
+#   patch;
+#   https://github.com/Matthias247/futures-intrusive/commit/67037087dd0e46e09995420003d718f89e3c24b0
 Patch:          futures-intrusive-fix-metadata.diff
+# * Source-code changes for signal-hook 0.3
+# * https://github.com/Matthias247/futures-intrusive/commit/67037087dd0e46e09995420003d718f89e3c24b0
+Patch10:        futures-intrusive-0.5.0-signal-hook-0.3.patch
 
 BuildRequires:  cargo-rpm-macros >= 24
-BuildRequires:  tomcli
 
 %global _description %{expand:
 Futures based on intrusive data structures - for std and no-std
@@ -91,8 +97,6 @@ use the "std" feature of the "%{crate}" crate.
 %prep
 %autosetup -n %{crate}-%{version} -p1
 %cargo_prep
-# Do not depend on criterion; it is needed only for benchmarks.
-tomcli set Cargo.toml del dev-dependencies.criterion
 
 %generate_buildrequires
 %cargo_generate_buildrequires

diff --git a/rust2rpm.toml b/rust2rpm.toml
index bdbc985..187c366 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -1,17 +1,19 @@
 [package]
 cargo-toml-patch-comments = [
-    "bump crossbeam dev-dependency from 0.7 to 0.8",
+    "drop unused, benchmark-only dev-dependency on criterion",
+    """\
+update some dev-dependencies: crossbeam 0.7 to 0.8, rand 0.7 to 0.9, and \
+signal-hook 0.1 to 0.3, the last requiring an accompanying source-code patch; \
+https://github.com/Matthias247/futures-intrusive/commit/67037087dd0e46e09995420003d718f89e3c24b0\
+""",
 ]
 
-[requires]
-build = [
-    "tomcli",
-]
-
-[scripts.prep]
-post = [
-    "# Do not depend on criterion; it is needed only for benchmarks.",
-    "tomcli set Cargo.toml del dev-dependencies.criterion",
+[[package.extra-patches]]
+number = 10
+file = "futures-intrusive-0.5.0-signal-hook-0.3.patch"
+comments = [
+    "Source-code changes for signal-hook 0.3",
+    "https://github.com/Matthias247/futures-intrusive/commit/67037087dd0e46e09995420003d718f89e3c24b0",
 ]
 
 [tests]

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-19  5:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-19  5:20 [rpms/rust-futures-intrusive] f44: Update dev-deps: signal-hook 0.3, rand 0.9 Benjamin A. Beasley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox