From 822a8dc51f5a1e79c853c18783cb5fee3c8a1415 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Wed, 5 Jan 2022 10:25:16 +0000 Subject: [PATCH] Restrict to x86_64 only MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The rust code unconditionally does 'use std::arch::x86_64'. Since SEV is an AMD x86_64 CPU feature we don't need to care about other arches. Signed-off-by: Daniel P. Berrangé --- rust-sevctl.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rust-sevctl.spec b/rust-sevctl.spec index 86514d2..1c1a5c7 100644 --- a/rust-sevctl.spec +++ b/rust-sevctl.spec @@ -14,7 +14,9 @@ License: ASL 2.0 URL: https://crates.io/crates/sevctl Source: %{crates_source} -ExclusiveArch: %{rust_arches} +# SEV is an AMD x86_64 CPU feature so doesn't make sense to +# try to build on other arches +ExclusiveArch: x86_64 BuildRequires: rust-packaging @@ -54,6 +56,7 @@ Summary: %{summary} %changelog * Tue Jan 4 2022 Daniel P. Berrangé - 0.2.0-1 - Update to 0.2.0 release (rhbz #2034304) +- Restrict build arch to x86_64 only * Tue Sep 14 2021 Sahana Prasad - 0.1.0-3 - Rebuilt with OpenSSL 3.0.0