public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-sev] rawhide: Fix missing serde_bytes dep in sev feature
@ 2026-10-16 5:48 Attila Lakatos
0 siblings, 0 replies; only message in thread
From: Attila Lakatos @ 2026-10-16 5:48 UTC (permalink / raw)
To: git-commits
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]
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-16 5:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-16 5:48 [rpms/rust-sev] rawhide: Fix missing serde_bytes dep in sev feature Attila Lakatos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox