From 70b868feb750d817c6b07699513df7b6bb4ed561 Mon Sep 17 00:00:00 2001 From: Sergio Lopez Date: Thu, 9 Feb 2023 16:50:46 +0100 Subject: [PATCH] Include a patch to update sev dependency - Include a patch to update sev dependency Signed-off-by: Sergio Lopez --- rust-sevctl.spec | 5 +++++ sevctl-update-sev.diff | 29 +++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 sevctl-update-sev.diff diff --git a/rust-sevctl.spec b/rust-sevctl.spec index 5a9e300..f3a0ca8 100644 --- a/rust-sevctl.spec +++ b/rust-sevctl.spec @@ -12,6 +12,8 @@ License: Apache-2.0 URL: https://crates.io/crates/sevctl Source0: %{crates_source} Source1: LICENSE.dependencies +# Temporal patch to update the sev dependency +Patch: sevctl-update-sev.diff # SEV is an AMD x86_64 CPU feature so doesn't make sense to # try to build on other arches @@ -63,6 +65,9 @@ cp -pav %{SOURCE1} . %endif %changelog +* Thu Feb 09 2023 Sergio Lopez - 0.3.2-3 +- Include a patch to update sev dependency + * Sat Jan 21 2023 Fedora Release Engineering - 0.3.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild diff --git a/sevctl-update-sev.diff b/sevctl-update-sev.diff new file mode 100644 index 0000000..676d2ae --- /dev/null +++ b/sevctl-update-sev.diff @@ -0,0 +1,29 @@ +diff --git a/Cargo.toml b/Cargo.toml +index 8a106d2..9f0fa4f 100644 +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -71,7 +71,7 @@ features = ["derive"] + version = "1.0" + + [dependencies.sev] +-version = "1.0.1" ++version = "1.1.0" + features = ["openssl"] + + [dependencies.structopt] +diff --git a/src/main.rs b/src/main.rs +index 742aec2..fb337fc 100644 +--- a/src/main.rs ++++ b/src/main.rs +@@ -16,7 +16,10 @@ use structopt::StructOpt; + use codicon::*; + + use ::sev::certs::*; +-use ::sev::firmware::host::{types::Status, Firmware, PlatformStatusFlags}; ++use ::sev::firmware::host::{ ++ types::{PlatformStatusFlags, Status}, ++ Firmware, ++}; + use ::sev::Generation; + + use std::fs::File;