agama/rust/package
Ladislav Slezák 87a04f1769
Do not build on 32bit architectures (and PPC64-BE) (bsc#1251846) (#2880)
## Problem

- https://bugzilla.suse.com/show_bug.cgi?id=1251846
- Agama does not build on i586
- The reason is that the dependant libsuseconnect does not support that
architecture (because of [this
line](5a200487c5/internal/util/system.go (L24-L27)))

## Solution

- Disable the same architectures also in Agama builds, use [the same
line](5a200487c5/build/packaging/suseconnect-ng.spec (L42))
from libsuseconnect to be compatible with it (this also disables build
on PPC64-BE)
- I was wondering whether `ExcludeArch` is allowed for noarch packages
but the [Fedora packaging
documentation](https://docs.fedoraproject.org/en-US/packaging-guidelines/#_noarch_with_unported_dependencies)
actually suggests this approach exactly for this situation.

## Testing

- Tested manually with agama-web-ui, the package built fine locally
2025-11-20 11:58:48 +01:00
..
_constraints due to new xtasks compilation we need to increase a bit size of machine to build 2025-01-09 13:51:57 +01:00
_service Include the abbreviated Git commit hash in the package version 2025-04-07 20:06:45 +02:00
agama.changes Do not build on 32bit architectures (and PPC64-BE) (bsc#1251846) (#2880) 2025-11-20 11:58:48 +01:00
agama.spec Do not build on 32bit architectures (and PPC64-BE) (bsc#1251846) (#2880) 2025-11-20 11:58:48 +01:00