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 <ppoudyal@redhat.com>
This commit is contained in:
Pragyan Poudyal 2026-05-05 16:30:03 +05:30
parent 1657e3c1c1
commit 2878b3cc5a
No known key found for this signature in database
GPG Key ID: CA5FA172E4153FFE

View File

@ -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