public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-ctr] f44: Run most of the tests
Date: Sat, 29 Aug 2026 06:48:45 GMT	[thread overview]
Message-ID: <178798612547.1.487694864084839088.rpms-rust-ctr-e0217ae8f4ed@fedoraproject.org> (raw)

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",
+]

                 reply	other threads:[~2026-08-29  6:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178798612547.1.487694864084839088.rpms-rust-ctr-e0217ae8f4ed@fedoraproject.org \
    --to=code@musicinmybrain.net \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox