public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-tracing-indicatif] epel10: Update dialoguer from 0.11 to 0.12
@ 2026-07-10  5:58 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-07-10  5:58 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/rust-tracing-indicatif
            Branch : epel10
            Commit : da8c02035e5ee0d77522805f79a1029783c9ddc2
            Author : Benjamin A. Beasley <code@musicinmybrain.net>
            Date   : 2026-07-08T22:24:19+01:00
            Stats  : +135/-1 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/rust-tracing-indicatif/c/da8c02035e5ee0d77522805f79a1029783c9ddc2?branch=epel10

            Log:
            Update dialoguer from 0.11 to 0.12

- Update rand from 0.9 to 0.10 while we are at it

---
diff --git a/rust-tracing-indicatif.spec b/rust-tracing-indicatif.spec
index c1b4b41..966bd2c 100644
--- a/rust-tracing-indicatif.spec
+++ b/rust-tracing-indicatif.spec
@@ -1,4 +1,4 @@
-# Generated by rust2rpm 27
+# Generated by rust2rpm 28
 %bcond check 1
 %global debug_package %{nil}
 
@@ -12,6 +12,14 @@ Summary:        Tracing layer that automatically creates and manages progress ba
 License:        MIT
 URL:            https://crates.io/crates/tracing-indicatif
 Source:         %{crates_source}
+# Manually created patch for downstream crate metadata changes
+# * Update dialoguer to 0.12 and rand to 0.10:
+#   https://github.com/emersonford/tracing-indicatif/pull/32; rand 0.10 requires
+#   an accompanying source-code patch.
+Patch:          tracing-indicatif-fix-metadata.diff
+# * Source-code patch for rand 0.10, excerpted from
+#   https://github.com/emersonford/tracing-indicatif/pull/32
+Patch10:        tracing-indicatif-0.3.13-rand-0.10.patch
 
 BuildRequires:  cargo-rpm-macros >= 24
 

diff --git a/rust2rpm.toml b/rust2rpm.toml
index b10a184..eacba02 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -1,2 +1,19 @@
 [package]
 summary = "Tracing layer that automatically creates and manages progress bars"
+cargo-toml-patch-comments = [
+    """\
+Update dialoguer to 0.12 and rand to 0.10: \
+https://github.com/emersonford/tracing-indicatif/pull/32; \
+rand 0.10 requires an accompanying source-code patch.\
+""",
+]
+
+[[package.extra-patches]]
+number = 10
+file = "tracing-indicatif-0.3.13-rand-0.10.patch"
+comments = [
+    """\
+Source-code patch for rand 0.10, excerpted from \
+https://github.com/emersonford/tracing-indicatif/pull/32\
+""",
+]

diff --git a/tracing-indicatif-0.3.13-rand-0.10.patch b/tracing-indicatif-0.3.13-rand-0.10.patch
new file mode 100644
index 0000000..cc01e96
--- /dev/null
+++ b/tracing-indicatif-0.3.13-rand-0.10.patch
@@ -0,0 +1,91 @@
+diff --git a/examples/basic.rs b/examples/basic.rs
+index a1ec6a6..f9e8d8d 100644
+--- a/examples/basic.rs
++++ b/examples/basic.rs
+@@ -2,7 +2,7 @@ use std::time::Duration;
+ 
+ use futures::stream::StreamExt;
+ use futures::stream::{self};
+-use rand::Rng;
++use rand::RngExt;
+ use tracing::info;
+ use tracing::instrument;
+ use tracing_indicatif::IndicatifLayer;
+diff --git a/examples/build_console.rs b/examples/build_console.rs
+index da05f1d..0ac5751 100644
+--- a/examples/build_console.rs
++++ b/examples/build_console.rs
+@@ -4,7 +4,7 @@ use futures::stream::StreamExt;
+ use futures::stream::{self};
+ use indicatif::ProgressState;
+ use indicatif::ProgressStyle;
+-use rand::Rng;
++use rand::RngExt;
+ use tracing::info;
+ use tracing::info_span;
+ use tracing::instrument;
+diff --git a/examples/child_spans.rs b/examples/child_spans.rs
+index 2540814..d83ba1c 100644
+--- a/examples/child_spans.rs
++++ b/examples/child_spans.rs
+@@ -2,7 +2,7 @@ use std::time::Duration;
+ 
+ use futures::stream::StreamExt;
+ use futures::stream::{self};
+-use rand::Rng;
++use rand::RngExt;
+ use tracing::instrument;
+ use tracing_indicatif::IndicatifLayer;
+ use tracing_subscriber::layer::SubscriberExt;
+diff --git a/examples/filter.rs b/examples/filter.rs
+index 8264939..9215384 100644
+--- a/examples/filter.rs
++++ b/examples/filter.rs
+@@ -2,7 +2,7 @@ use std::time::Duration;
+ 
+ use futures::stream::StreamExt;
+ use futures::stream::{self};
+-use rand::Rng;
++use rand::RngExt;
+ use tracing::instrument;
+ use tracing_indicatif::IndicatifLayer;
+ use tracing_indicatif::filter::IndicatifFilter;
+diff --git a/examples/per_span_style.rs b/examples/per_span_style.rs
+index f913a99..909bd4e 100644
+--- a/examples/per_span_style.rs
++++ b/examples/per_span_style.rs
+@@ -3,7 +3,7 @@ use std::time::Duration;
+ use futures::stream::StreamExt;
+ use futures::stream::{self};
+ use indicatif::ProgressStyle;
+-use rand::Rng;
++use rand::RngExt;
+ use tracing::Span;
+ use tracing::instrument;
+ use tracing_indicatif::IndicatifLayer;
+diff --git a/examples/progress_bar.rs b/examples/progress_bar.rs
+index 2019750..897dfbf 100644
+--- a/examples/progress_bar.rs
++++ b/examples/progress_bar.rs
+@@ -3,7 +3,7 @@ use std::time::Duration;
+ use futures::stream::StreamExt;
+ use futures::stream::{self};
+ use indicatif::ProgressStyle;
+-use rand::Rng;
++use rand::RngExt;
+ use tracing::Span;
+ use tracing::info_span;
+ use tracing::instrument;
+diff --git a/examples/stdout_stderr_printing.rs b/examples/stdout_stderr_printing.rs
+index 53ab0f5..db0d152 100644
+--- a/examples/stdout_stderr_printing.rs
++++ b/examples/stdout_stderr_printing.rs
+@@ -2,7 +2,7 @@ use std::time::Duration;
+ 
+ use futures::stream::StreamExt;
+ use futures::stream::{self};
+-use rand::Rng;
++use rand::RngExt;
+ use tracing::instrument;
+ use tracing_indicatif::IndicatifLayer;
+ use tracing_indicatif::indicatif_eprintln;

diff --git a/tracing-indicatif-fix-metadata.diff b/tracing-indicatif-fix-metadata.diff
new file mode 100644
index 0000000..a796c86
--- /dev/null
+++ b/tracing-indicatif-fix-metadata.diff
@@ -0,0 +1,18 @@
+--- tracing-indicatif-0.3.13/Cargo.toml	1970-01-01T00:00:01+00:00
++++ tracing-indicatif-0.3.13/Cargo.toml	2026-07-08T21:23:49.730835+00:00
+@@ -88,13 +88,13 @@
+ version = "0.3.19"
+ 
+ [dev-dependencies.dialoguer]
+-version = "0.11.0"
++version = "0.12.0"
+ 
+ [dev-dependencies.futures]
+ version = "0.3.31"
+ 
+ [dev-dependencies.rand]
+-version = "0.9.1"
++version = "0.10.1"
+ features = ["std_rng"]
+ 
+ [dev-dependencies.tokio]

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

only message in thread, other threads:[~2026-07-10  5:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-10  5:58 [rpms/rust-tracing-indicatif] epel10: Update dialoguer from 0.11 to 0.12 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