public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-ctr] f44: Run most of the tests
@ 2026-08-29  6:48 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-08-29  6:48 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rust-ctr
Branch : f44
Commit : e0217ae8f4edca4f6437010798ef4a154732cbc4
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-08-28T08:51:32+01:00
Stats  : +30/-5 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-ctr/c/e0217ae8f4edca4f6437010798ef4a154732cbc4?branch=f44

Log:
Run most of the tests

---
diff --git a/ctr-fix-metadata.diff b/ctr-fix-metadata.diff
new file mode 100644
index 0000000..8d96cfd
--- /dev/null
+++ b/ctr-fix-metadata.diff
@@ -0,0 +1,15 @@
+--- ctr-0.9.2/Cargo.toml	1970-01-01T00:00:01+00:00
++++ ctr-0.9.2/Cargo.toml	2026-08-28T07:51:15.377600+00:00
+@@ -52,12 +52,6 @@
+ [dev-dependencies.hex-literal]
+ version = "0.3.3"
+ 
+-[dev-dependencies.kuznyechik]
+-version = "0.8"
+-
+-[dev-dependencies.magma]
+-version = "0.8"
+-
+ [features]
+ alloc = ["cipher/alloc"]
+ block-padding = ["cipher/block-padding"]

diff --git a/rust-ctr.spec b/rust-ctr.spec
index 12f1228..f37716d 100644
--- a/rust-ctr.spec
+++ b/rust-ctr.spec
@@ -1,6 +1,5 @@
 # Generated by rust2rpm 28
-# * missing dev-dependencies: kuznyechik, magma
-%bcond check 0
+%bcond check 1
 %global debug_package %{nil}
 
 %global crate ctr
@@ -13,6 +12,9 @@ Summary:        CTR block modes of operation
 License:        MIT OR Apache-2.0
 URL:            https://crates.io/crates/ctr
 Source:         %{crates_source}
+# Manually created patch for downstream crate metadata changes
+# * omit unpackaged dev-deps. on kuznyechik, magma, only for test:gost
+Patch:          ctr-fix-metadata.diff
 
 BuildRequires:  cargo-rpm-macros >= 24
 
@@ -100,6 +102,8 @@ use the "zeroize" feature of the "%{crate}" crate.
 %prep
 %autosetup -n %{crate}-%{version} -p1
 %cargo_prep
+# Unpackaged dev-dependencies for gost tests: kuznyechik, magma
+sed --regexp-extended --in-place 's@^mod gost;$@// &@' tests/mod.rs
 
 %generate_buildrequires
 %cargo_generate_buildrequires

diff --git a/rust2rpm.toml b/rust2rpm.toml
index 4c1a549..aa12c85 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -1,4 +1,10 @@
-[tests]
-run = false
-comments = ["missing dev-dependencies: kuznyechik, magma"]
+[package]
+cargo-toml-patch-comments = [
+    "omit unpackaged dev-deps. on kuznyechik, magma, only for test:gost",
+]
 
+[scripts.prep]
+post = [
+    "# Unpackaged dev-dependencies for gost tests: kuznyechik, magma",
+    "sed --regexp-extended --in-place 's@^mod gost;$@// &@' tests/mod.rs",
+]

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

only message in thread, other threads:[~2026-08-29  6:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-29  6:48 [rpms/rust-ctr] f44: Run most of the 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