public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Attila Lakatos <alakatos@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-sev] rawhide: Fix missing serde_bytes dep in sev feature
Date: Fri, 16 Oct 2026 05:48:30 GMT	[thread overview]
Message-ID: <179212971057.1.5224654064321643717.rpms-rust-sev-5cfbe1627805@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/rust-sev
            Branch : rawhide
            Commit : 5cfbe1627805ca3d82aac5f12bdcdf37ea4e5240
            Author : Attila Lakatos <alakatos@redhat.com>
            Date   : 2026-10-13T11:40:58+02:00
            Stats  : +27/-4 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/rust-sev/c/5cfbe1627805ca3d82aac5f12bdcdf37ea4e5240?branch=rawhide

            Log:
            Fix missing serde_bytes dep in sev feature

sev 7.1.0 uses serde_bytes under #[cfg(feature = "serde")] in the
certificate modules but omits it from Cargo.toml, causing a build
failure when the serde feature is enabled.

Add serde_bytes as an optional dependency wired into the serde feature
in sev-fix-metadata.diff.

Signed-off-by: Attila Lakatos <alakatos@redhat.com>

---
diff --git a/rust-sev.spec b/rust-sev.spec
index 89aafb8..e97d010 100644
--- a/rust-sev.spec
+++ b/rust-sev.spec
@@ -16,8 +16,11 @@ License:        Apache-2.0
 URL:            https://crates.io/crates/sev
 Source:         %{crates_source}
 # Manually created patch for downstream crate metadata changes
-# * Relax bitfield dependency to what's packaged in Fedora
+# * Relax bitfield and dirs dependencies to what's packaged in Fedora
 # * Drop the vendored feature from the openssl dependency
+# * Add missing serde_bytes optional dependency used under the serde feature
+#   (merged upstream: https://github.com/virtee/sev/pull/341; drop when upgrading
+#   past the release that includes this fix)
 Patch:          sev-fix-metadata.diff
 # Fix missing trailing semicolon for bitfield 0.15 compatibility
 Patch:          0002-Fix-missing-trailing-semicolon-for-bitfield-0.15.patch

diff --git a/rust2rpm.toml b/rust2rpm.toml
index 915dd9b..083a57e 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -2,6 +2,7 @@
 cargo-toml-patch-comments = [
     "Relax bitfield and dirs dependencies to what's packaged in Fedora",
     "Drop the vendored feature from the openssl dependency",
+    "Add missing serde_bytes optional dependency used under the serde feature",
 ]
 supported-arches = ["x86_64"]
 

diff --git a/sev-fix-metadata.diff b/sev-fix-metadata.diff
index 5fb928a..e797561 100644
--- a/sev-fix-metadata.diff
+++ b/sev-fix-metadata.diff
@@ -1,5 +1,5 @@
 --- sev-7.1.0/Cargo.toml	1970-01-01T00:00:01+00:00
-+++ sev-7.1.0/Cargo.toml	2026-09-16T05:31:09.606949+00:00
++++ sev-7.1.0/Cargo.toml	2026-10-12T12:52:08.085367+00:00
 @@ -73,7 +73,6 @@
  default = [
      "sev",
@@ -8,7 +8,15 @@
  ]
  hw_tests = []
  openssl = [
-@@ -128,7 +127,7 @@
+@@ -83,6 +82,7 @@
+ serde = [
+     "dep:serde",
+     "dep:serde-big-array",
++    "dep:serde_bytes",
+ ]
+ sev = []
+ snp = []
+@@ -128,7 +128,7 @@
  version = "0.22.1"
  
  [dependencies.bitfield]
@@ -17,7 +25,18 @@
  
  [dependencies.bitflags]
  version = "2.9.0"
-@@ -205,7 +204,7 @@
+@@ -178,6 +178,10 @@
+ version = "0.5.1"
+ optional = true
+ 
++[dependencies.serde_bytes]
++version = "0.11"
++optional = true
++
+ [dependencies.sha2]
+ version = "0.10.9"
+ optional = true
+@@ -205,7 +209,7 @@
  version = "^0.1"
  
  [target.'cfg(target_os = "linux")'.dev-dependencies.kvm-bindings]

                 reply	other threads:[~2026-10-16  5: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=179212971057.1.5224654064321643717.rpms-rust-sev-5cfbe1627805@fedoraproject.org \
    --to=alakatos@redhat.com \
    --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