From 2878b3cc5a77a8923af33997d91dba0591a8c4b3 Mon Sep 17 00:00:00 2001 From: Pragyan Poudyal Date: Tue, 5 May 2026 16:30:03 +0530 Subject: [PATCH] spec: add ExcludeArch ix86 on c9s and fedora In bootupd, we have not been handling ix86 architecture at all which ended up erroring out during rpm builds with the following errors ```rust --> src/cli/bootupctl.rs:155:44 | 155 | fn run_migrate_static_grub_config() -> Result<()> { | ------------------------------ ^^^^^^^^^^ expected `Result<(), Error>`, found `()` | | | implicitly returns `()` as its body has no tail or `return` expression | = note: expected enum `Result<(), anyhow::Error>` found unit type `()` warning: unreachable call --> src/component.rs:92:5 | 92 | Ok(match name { | _____^^_- | | | | | unreachable call 93 | | #[cfg(any( 94 | | target_arch = "x86_64", 95 | | target_arch = "aarch64", ... | 103 | | _ => anyhow::bail!("No component {}", name), 104 | | }) | |_____- any code following this `match` expression is unreachable, as all arms diverge | = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default warning: unused variable: `configs` --> src/bootupd.rs:58:5 | 58 | configs: ConfigMode, | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_configs` | = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default warning: variable does not need to be mutable --> src/bootupd.rs:231:9 | 231 | let mut components = BTreeMap::new(); | ----^^^^^^^^^^ | | | help: remove this `mut` | = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default For more information about this error, try `rustc --explain E0308`. ``` Signed-off-by: Pragyan Poudyal --- rust-bootupd.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-bootupd.spec b/rust-bootupd.spec index ed435dc..babf5f9 100644 --- a/rust-bootupd.spec +++ b/rust-bootupd.spec @@ -11,7 +11,7 @@ License: Apache-2.0 URL: https://github.com/coreos/bootupd Source0: %{crates_source} Source1: %{url}/releases/download/v%{version}/bootupd-%{version}-vendor.tar.zstd -%if 0%{?fedora} || 0%{?rhel} >= 10 +%if 0%{?fedora} || 0%{?rhel} >= 9 ExcludeArch: %{ix86} %endif