public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-sev] update-8.0.0: Update to 7.1.0
@ 2026-10-23 19:05 Attila Lakatos
  0 siblings, 0 replies; only message in thread
From: Attila Lakatos @ 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 : 97d60dacca619b1a3d282d5e69528dc45b30ffcc
            Author : Attila Lakatos <alakatos@redhat.com>
            Date   : 2026-09-16T07:54:04+02:00
            Stats  : +52/-35 in 5 file(s)
            URL    : https://src.fedoraproject.org/rpms/rust-sev/c/97d60dacca619b1a3d282d5e69528dc45b30ffcc?branch=update-8.0.0

            Log:
            Update to 7.1.0

Replace ad-hoc .diff patches with proper git-format-patch files.
Drop the dirs relaxation hunk — 7.1.0 already requires ^6.0 and
Fedora ships dirs 6.0.0, so no adjustment is needed there.

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

---
diff --git a/0002-Fix-missing-trailing-semicolon-for-bitfield-0.15.patch b/0002-Fix-missing-trailing-semicolon-for-bitfield-0.15.patch
new file mode 100644
index 0000000..d46ae85
--- /dev/null
+++ b/0002-Fix-missing-trailing-semicolon-for-bitfield-0.15.patch
@@ -0,0 +1,30 @@
+From 44d95fa18177ff368bd2d75a993b1243a4ea0f3a Mon Sep 17 00:00:00 2001
+From: Attila Lakatos <alakatos@redhat.com>
+Date: Wed, 16 Sep 2026 07:53:38 +0200
+Subject: [PATCH] Fix missing trailing semicolon for compatibility with
+ bitfield 0.15
+
+bitfield 0.15 requires every field accessor in a bitfield! block to end
+with a semicolon, including the last one.  Upstream targets bitfield
+^0.19 where the trailing semicolon is optional; without this fix, the
+crate fails to compile against the Fedora-packaged bitfield 0.15.
+---
+ src/firmware/guest/types/snp.rs | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/firmware/guest/types/snp.rs b/src/firmware/guest/types/snp.rs
+index e3d4cdb..84a3b5f 100644
+--- a/src/firmware/guest/types/snp.rs
++++ b/src/firmware/guest/types/snp.rs
+@@ -951,7 +951,7 @@ bitfield! {
+     /// Indicates that alias detection has completed since the last system reset and there are no aliasing addresses. Resets to 0.
+     pub alias_check_complete, _: 5;
+     /// Indicates that SEV-TIO is enabled.
+-    pub tio_enabled, _ : 7
++    pub tio_enabled, _ : 7;
+ 
+ }
+ 
+-- 
+2.55.0
+

diff --git a/bitfield0.15-compat.patch b/bitfield0.15-compat.patch
deleted file mode 100644
index d883d22..0000000
--- a/bitfield0.15-compat.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/src/firmware/guest/types/snp.rs b/src/firmware/guest/types/snp.rs
-index 3afec65..c588813 100644
---- a/src/firmware/guest/types/snp.rs
-+++ b/src/firmware/guest/types/snp.rs
-@@ -908,7 +908,7 @@ bitfield! {
-     /// Indicates that alias detection has completed since the last system reset and there are no aliasing addresses. Resets to 0.
-     pub alias_check_complete, _: 5;
-     /// Indicates that SEV-TIO is enabled.
--    pub tio_enabled, _ : 7
-+    pub tio_enabled, _ : 7;
- 
- }
- 

diff --git a/rust-sev.spec b/rust-sev.spec
index 549a730..89aafb8 100644
--- a/rust-sev.spec
+++ b/rust-sev.spec
@@ -1,4 +1,4 @@
-# Generated by rust2rpm 27
+# Generated by rust2rpm 28
 %bcond check 1
 %global debug_package %{nil}
 
@@ -8,7 +8,7 @@
 %global supported_arches x86_64
 
 Name:           rust-sev
-Version:        6.3.1
+Version:        7.1.0
 Release:        %autorelease
 Summary:        Library for AMD SEV
 
@@ -16,11 +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 and dirs dependencies to what's packaged in Fedora
+# * Relax bitfield dependency to what's packaged in Fedora
 # * Drop the vendored feature from the openssl dependency
-# * update kvm-bindings dep
 Patch:          sev-fix-metadata.diff
-Patch:          bitfield0.15-compat.patch
+# Fix missing trailing semicolon for bitfield 0.15 compatibility
+Patch:          0002-Fix-missing-trailing-semicolon-for-bitfield-0.15.patch
 
 BuildRequires:  cargo-rpm-macros >= 24
 
@@ -67,6 +67,18 @@ use the "openssl" feature of the "%{crate}" crate.
 %files       -n %{name}+openssl-devel
 %ghost %{crate_instdir}/Cargo.toml
 
+%package     -n %{name}+serde-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+serde-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "serde" feature of the "%{crate}" crate.
+
+%files       -n %{name}+serde-devel
+%ghost %{crate_instdir}/Cargo.toml
+
 %package     -n %{name}+sev-devel
 Summary:        %{summary}
 BuildArch:      noarch

diff --git a/sev-fix-metadata.diff b/sev-fix-metadata.diff
index 0977ba7..5fb928a 100644
--- a/sev-fix-metadata.diff
+++ b/sev-fix-metadata.diff
@@ -1,5 +1,5 @@
---- sev-6.3.1/Cargo.toml	1970-01-01T00:00:01+00:00
-+++ sev-6.3.1/Cargo.toml	2025-11-02T16:06:28.301849+00:00
+--- 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
 @@ -73,7 +73,6 @@
  default = [
      "sev",
@@ -9,7 +9,7 @@
  hw_tests = []
  openssl = [
 @@ -128,7 +127,7 @@
- features = ["serde"]
+ version = "0.22.1"
  
  [dependencies.bitfield]
 -version = "^0.19"
@@ -17,19 +17,7 @@
  
  [dependencies.bitflags]
  version = "2.9.0"
-@@ -140,7 +139,7 @@
- version = "3.0"
- 
- [dependencies.dirs]
--version = "^6.0"
-+version = ">=5.0, <7.0"
- 
- [dependencies.hex]
- version = "0.4.3"
-diff -rup ../rust-sev-6.3.1-build/sev-6.3.1/Cargo.toml sev-6.3.1/Cargo.toml
---- sev-6.3.1/Cargo.toml	2025-11-07 10:31:59.849097446 -0500
-+++ sev-6.3.1/Cargo.toml	2025-11-07 10:34:48.160757930 -0500
-@@ -208,7 +208,7 @@ version = "3.0"
+@@ -205,7 +204,7 @@
  version = "^0.1"
  
  [target.'cfg(target_os = "linux")'.dev-dependencies.kvm-bindings]

diff --git a/sources b/sources
index cd7ce2a..1c5020e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (sev-6.3.1.crate) = 3d95139643102adf7fd2b6b1a80d138a4a59b38f6d58e7ff7d6e4f03bcdce451d79315ccf6be43034a9107f1da90901cf1c2db757f92ab7207664fe75e561e9f
+SHA512 (sev-7.1.0.crate) = d52143a27f7f5d1f8bba7bc0ab7379a1df929f7fb13c519812773cdaeadb72bf4f8453b5a4996dd5179e70ba7fa7318adfbebf7b2faecd853d097d1847d263ba

^ 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: Update to 7.1.0 Attila Lakatos

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