public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-circular-buffer] f44: Patch for drop-tracker 0.2, rand 0.10
@ 2026-06-26 9:14 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-06-26 9:14 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rust-circular-buffer
Branch : f44
Commit : fbd7624e69daf8a2555529a85401b4564c906711
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-06-26T10:11:25+01:00
Stats : +58/-4 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/rust-circular-buffer/c/fbd7624e69daf8a2555529a85401b4564c906711?branch=f44
Log:
Patch for drop-tracker 0.2, rand 0.10
---
diff --git a/0001-Update-rand-dev-dependency-from-0.9.2-to-0.10.1.patch b/0001-Update-rand-dev-dependency-from-0.9.2-to-0.10.1.patch
new file mode 100644
index 0000000..cfc7ea7
--- /dev/null
+++ b/0001-Update-rand-dev-dependency-from-0.9.2-to-0.10.1.patch
@@ -0,0 +1,26 @@
+From 6980a67a52b1adf4d76f6a702ed676fc2f4a82be Mon Sep 17 00:00:00 2001
+From: "Benjamin A. Beasley" <code@musicinmybrain.net>
+Date: Fri, 26 Jun 2026 09:59:45 +0100
+Subject: [PATCH] Update rand dev-dependency from 0.9.2 to 0.10.1
+
+https://github.com/rust-random/rand/blob/0.10.1/CHANGELOG.md
+---
+ tests/randomized.rs | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/randomized.rs b/tests/randomized.rs
+index 4f495f3..1569d99 100644
+--- a/tests/randomized.rs
++++ b/tests/randomized.rs
+@@ -17,7 +17,7 @@ use drop_tracker::DropTracker;
+ use rand::distr::Distribution;
+ use rand::distr::StandardUniform;
+ use rand::distr::Uniform;
+-use rand::Rng;
++use rand::{Rng, RngExt};
+ use std::collections::VecDeque;
+ use std::fmt;
+ use std::mem;
+--
+2.54.0
+
diff --git a/circular-buffer-fix-metadata.diff b/circular-buffer-fix-metadata.diff
index e5d3038..b53d40c 100644
--- a/circular-buffer-fix-metadata.diff
+++ b/circular-buffer-fix-metadata.diff
@@ -1,6 +1,6 @@
--- circular-buffer-1.2.0/Cargo.toml 1970-01-01T00:00:01+00:00
-+++ circular-buffer-1.2.0/Cargo.toml 2025-09-08T10:47:17.510803+00:00
-@@ -79,9 +79,6 @@
++++ circular-buffer-1.2.0/Cargo.toml 2026-06-26T09:10:15.414187+00:00
+@@ -79,14 +79,11 @@
optional = true
default-features = false
@@ -8,5 +8,12 @@
-version = "0.7.0"
-
[dev-dependencies.drop-tracker]
- version = "0.1.3"
+-version = "0.1.3"
++version = "0.2.0"
+ [dev-dependencies.futures-lite]
+ version = "2.6"
+
+ [dev-dependencies.rand]
+-version = "0.9.2"
++version = "0.10.1"
diff --git a/rust-circular-buffer.spec b/rust-circular-buffer.spec
index 362f9db..bfa87a9 100644
--- a/rust-circular-buffer.spec
+++ b/rust-circular-buffer.spec
@@ -1,4 +1,4 @@
-# Generated by rust2rpm 27
+# Generated by rust2rpm 28
%bcond check 1
%global debug_package %{nil}
@@ -14,7 +14,13 @@ URL: https://crates.io/crates/circular-buffer
Source: %{crates_source}
# Manually created patch for downstream crate metadata changes
# * Do not depend on criterion; it is needed only for benchmarks.
+# * Update a couple of dev-dependencies across SemVer boundaries (drop-tracker
+# 0.2, rand 0.10; rand requires a source-code patch):
+# https://github.com/andreacorbellini/rust-circular-buffer/pull/21
Patch: circular-buffer-fix-metadata.diff
+# * Source-code patch for rand 0.10, backported to v1.2.0, from
+# https://github.com/andreacorbellini/rust-circular-buffer/pull/21
+Patch10: 0001-Update-rand-dev-dependency-from-0.9.2-to-0.10.1.patch
BuildRequires: cargo-rpm-macros >= 24
diff --git a/rust2rpm.toml b/rust2rpm.toml
index d85fa48..cdd3f8a 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -1,6 +1,21 @@
[package]
cargo-toml-patch-comments = [
"Do not depend on criterion; it is needed only for benchmarks.",
+ """\
+Update a couple of dev-dependencies across SemVer boundaries \
+(drop-tracker 0.2, rand 0.10; rand requires a source-code patch): \
+https://github.com/andreacorbellini/rust-circular-buffer/pull/21\
+""",
+]
+
+[[package.extra-patches]]
+number = 10
+file = "0001-Update-rand-dev-dependency-from-0.9.2-to-0.10.1.patch"
+comments = [
+ """\
+Source-code patch for rand 0.10, backported to v1.2.0, from \
+https://github.com/andreacorbellini/rust-circular-buffer/pull/21\
+""",
]
[features]
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-26 9:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-26 9:14 [rpms/rust-circular-buffer] f44: Patch for drop-tracker 0.2, rand 0.10 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