public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Cole Robinson <crobinso@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-sev] update-8.0.0: Use rust2rpm.toml `supported-arches` instead of ExclusiveArch
Date: Fri, 23 Oct 2026 19:05:39 GMT [thread overview]
Message-ID: <179278233947.1.13861837229356014216.rpms-rust-sev-1b8df0d6ed6b@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rust-sev
Branch : update-8.0.0
Commit : 1b8df0d6ed6b69cf4c34949ec2c418b4822bf6b7
Author : Cole Robinson <crobinso@redhat.com>
Date : 2024-12-14T19:38:16-05:00
Stats : +9/-6 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/rust-sev/c/1b8df0d6ed6b69cf4c34949ec2c418b4822bf6b7?branch=update-8.0.0
Log:
Use rust2rpm.toml `supported-arches` instead of ExclusiveArch
Signed-off-by: Cole Robinson <crobinso@redhat.com>
---
diff --git a/rust-sev.spec b/rust-sev.spec
index b7abdbb..b1d83df 100644
--- a/rust-sev.spec
+++ b/rust-sev.spec
@@ -4,6 +4,9 @@
%global crate sev
+# compile and run tests only on supported architectures
+%global supported_arches x86_64
+
Name: rust-sev
Version: 4.0.0
Release: %autorelease
@@ -12,11 +15,6 @@ Summary: Library for AMD SEV
License: Apache-2.0
URL: https://crates.io/crates/sev
Source: %{crates_source}
-
-# SEV is an AMD x86_64 CPU feature so doesn't make sense to
-# try to build on other arches
-ExclusiveArch: x86_64
-
# Manually created patch for downstream crate metadata changes
# * Mark rdrand dep optional like is done upstream
Patch: sev-fix-metadata.diff
@@ -98,15 +96,19 @@ use the "snp" feature of the "%{crate}" crate.
%cargo_generate_buildrequires
%build
+%ifarch %{supported_arches}
%cargo_build
+%endif
%install
%cargo_install
%if %{with check}
+%ifarch %{supported_arches}
%check
%cargo_test
%endif
+%endif
%changelog
%autochangelog
diff --git a/rust2rpm.toml b/rust2rpm.toml
index 55dff92..7e6f989 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -2,6 +2,7 @@
cargo-toml-patch-comments = [
"Mark rdrand dep optional like is done upstream",
]
+supported-arches = ["x86_64"]
[features]
diff --git a/sev-fix-metadata.diff b/sev-fix-metadata.diff
index 0eb250c..7bb97a9 100644
--- a/sev-fix-metadata.diff
+++ b/sev-fix-metadata.diff
@@ -1,5 +1,5 @@
--- sev-4.0.0/Cargo.toml 1970-01-01T00:00:01+00:00
-+++ sev-4.0.0/Cargo.toml 2024-12-15T00:32:26.892440+00:00
++++ sev-4.0.0/Cargo.toml 2024-12-15T00:38:10.086667+00:00
@@ -178,7 +178,7 @@
hw_tests = []
openssl = [
reply other threads:[~2026-10-23 19:05 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=179278233947.1.13861837229356014216.rpms-rust-sev-1b8df0d6ed6b@fedoraproject.org \
--to=crobinso@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