public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-sev] update-8.0.0: Fix FailsToInstall
@ 2026-10-23 19:05 Cole Robinson
  0 siblings, 0 replies; only message in thread
From: Cole Robinson @ 2026-10-23 19:05 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/rust-sev
            Branch : update-8.0.0
            Commit : 456495c1fd7451cc339b15c59257b5ca0f558b45
            Author : Cole Robinson <crobinso@redhat.com>
            Date   : 2024-12-14T19:37:56-05:00
            Stats  : +23/-2 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/rust-sev/c/456495c1fd7451cc339b15c59257b5ca0f558b45?branch=update-8.0.0

            Log:
            Fix FailsToInstall

Mark the rdrand dep as optional, like upstream does, and rust2rpm
will handle the rest for us

Signed-off-by: Cole Robinson <crobinso@redhat.com>

---
diff --git a/rust-sev.spec b/rust-sev.spec
index 1e36139..b7abdbb 100644
--- a/rust-sev.spec
+++ b/rust-sev.spec
@@ -1,5 +1,5 @@
-# Generated by rust2rpm 26
-%bcond_without check
+# Generated by rust2rpm 27
+%bcond check 1
 %global debug_package %{nil}
 
 %global crate sev
@@ -17,6 +17,10 @@ Source:         %{crates_source}
 # try to build on other arches
 ExclusiveArch:  x86_64
 
+# Manually created patch for downstream crate metadata changes
+# * Mark rdrand dep optional like is done upstream
+Patch:          sev-fix-metadata.diff
+
 BuildRequires:  cargo-rpm-macros >= 24
 
 %global _description %{expand:

diff --git a/rust2rpm.toml b/rust2rpm.toml
index 635ba23..55dff92 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -1,3 +1,9 @@
+[package]
+cargo-toml-patch-comments = [
+    "Mark rdrand dep optional like is done upstream",
+]
+
+
 [features]
 hide = [
     # These features require particular hardware:

diff --git a/sev-fix-metadata.diff b/sev-fix-metadata.diff
new file mode 100644
index 0000000..0eb250c
--- /dev/null
+++ b/sev-fix-metadata.diff
@@ -0,0 +1,11 @@
+--- sev-4.0.0/Cargo.toml	1970-01-01T00:00:01+00:00
++++ sev-4.0.0/Cargo.toml	2024-12-15T00:32:26.892440+00:00
+@@ -178,7 +178,7 @@
+ hw_tests = []
+ openssl = [
+     "dep:openssl",
+-    "rdrand",
++    "dep:rdrand",
+ ]
+ sev = []
+ snp = []

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

only message in thread, other threads:[~2026-10-23 19:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-23 19:05 [rpms/rust-sev] update-8.0.0: Fix FailsToInstall Cole Robinson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox