public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-quanta] epel10.3: Avoid the average dev-dependency by omitting three tests
@ 2026-11-25 13:50 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-11-25 13:50 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rust-quanta
Branch : epel10.3
Commit : b8298f814af01f62966c1488a3123372d4cdfdc8
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-11-25T10:24:17+00:00
Stats : +48/-8 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/rust-quanta/c/b8298f814af01f62966c1488a3123372d4cdfdc8?branch=epel10.3
Log:
Avoid the average dev-dependency by omitting three tests
---
diff --git a/quanta-0.12.6-no-average-dev-dep.patch b/quanta-0.12.6-no-average-dev-dep.patch
new file mode 100644
index 0000000..0393587
--- /dev/null
+++ b/quanta-0.12.6-no-average-dev-dep.patch
@@ -0,0 +1,30 @@
+diff -Naur a/src/lib.rs b/src/lib.rs
+--- a/src/lib.rs 2006-07-24 02:21:28.000000000 +0100
++++ b/src/lib.rs 2026-11-25 10:20:22.982378282 +0000
+@@ -548,6 +548,8 @@
+ use super::{Counter, Monotonic};
+
+ #[cfg(not(target_arch = "wasm32"))]
++ // Downstream patch: avoid a dev-dependency on the average crate
++ #[cfg(false)]
+ use average::{Merge as _, Variance};
+
+ #[cfg(not(target_arch = "wasm32"))]
+@@ -598,6 +600,8 @@
+ }
+
+ #[cfg(not(target_arch = "wasm32"))]
++ // Downstream patch: avoid a dev-dependency on the average crate
++ #[cfg(false)]
+ #[test]
+ #[cfg_attr(not(feature = "flaky_tests"), ignore)]
+ fn test_reference_source_calibration() {
+@@ -681,6 +685,8 @@
+ }
+
+ #[cfg(not(target_arch = "wasm32"))]
++ // Downstream patch: avoid a dev-dependency on the average crate
++ #[cfg(false)]
+ #[test]
+ #[cfg_attr(not(feature = "flaky_tests"), ignore)]
+ fn measure_source_reference_self_timing() {
diff --git a/quanta-fix-metadata-auto.diff b/quanta-fix-metadata-auto.diff
index ff7358b..d28c641 100644
--- a/quanta-fix-metadata-auto.diff
+++ b/quanta-fix-metadata-auto.diff
@@ -1,5 +1,5 @@
--- quanta-0.12.6/Cargo.toml 1970-01-01T00:00:01+00:00
-+++ quanta-0.12.6/Cargo.toml 2026-02-25T16:07:06.978909+00:00
++++ quanta-0.12.6/Cargo.toml 2026-11-25T10:23:21.149578+00:00
@@ -73,19 +73,6 @@
[dev-dependencies.criterion]
version = "=0.3.3"
diff --git a/quanta-fix-metadata.diff b/quanta-fix-metadata.diff
index 4574bc4..578b1d3 100644
--- a/quanta-fix-metadata.diff
+++ b/quanta-fix-metadata.diff
@@ -1,5 +1,5 @@
--- quanta-0.12.6/Cargo.toml 1970-01-01T00:00:01+00:00
-+++ quanta-0.12.6/Cargo.toml 2026-02-25T16:07:06.990260+00:00
++++ quanta-0.12.6/Cargo.toml 2026-11-25T10:23:26.673414+00:00
@@ -37,7 +37,7 @@
all-features = true
@@ -9,7 +9,7 @@
flaky_tests = []
prost = ["prost-types"]
-@@ -63,15 +63,12 @@
+@@ -63,15 +63,9 @@
version = "1.4"
[dependencies.prost-types]
@@ -17,13 +17,12 @@
+version = "0.14"
optional = true
default-features = false
-
- [dev-dependencies.average]
+-
+-[dev-dependencies.average]
-version = "0.14"
-
-[dev-dependencies.criterion]
-version = "=0.3.3"
-+version = "0.15"
[target.'cfg(not(any(target_os = "windows", target_arch = "wasm32")))'.dependencies.libc]
version = "0.2"
diff --git a/rust-quanta.spec b/rust-quanta.spec
index d43a424..00eef65 100644
--- a/rust-quanta.spec
+++ b/rust-quanta.spec
@@ -15,11 +15,14 @@ Source: %{crates_source}
# Automatically generated patch to strip dependencies and normalize metadata
Patch: quanta-fix-metadata-auto.diff
# Manually created patch for downstream crate metadata changes
-# * Bump average dependency
+# * Remove average dev-dep. to avoid maintaining rust-average/rust-float-ord
# * Bump prost-types dependency
# * Remove flaky_tests from default feature
# * Remove criterion dependency (benchmark only)
Patch: quanta-fix-metadata.diff
+# * Downstream patch: avoid a dev-dependency on the average crate
+# * Avoid maintaining rust-average and rust-float-ord packages.
+Patch10: quanta-0.12.6-no-average-dev-dep.patch
BuildRequires: cargo-rpm-macros >= 24
diff --git a/rust2rpm.toml b/rust2rpm.toml
index 0c12de0..d753e49 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -11,12 +11,20 @@ install.pre = [
[package]
cargo-toml-patch-comments = [
- "Bump average dependency",
+ "Remove average dev-dep. to avoid maintaining rust-average/rust-float-ord",
"Bump prost-types dependency",
"Remove flaky_tests from default feature",
"Remove criterion dependency (benchmark only)",
]
+[[package.extra-patches]]
+number = 10
+file = "quanta-0.12.6-no-average-dev-dep.patch"
+comments = [
+ "Downstream patch: avoid a dev-dependency on the average crate",
+ "Avoid maintaining rust-average and rust-float-ord packages.",
+]
+
[tests]
skip = [
"instant::tests::test_recent",
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-25 13:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-25 13:50 [rpms/rust-quanta] epel10.3: Avoid the average dev-dependency by omitting three tests 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