Files
kata-containers/src
Fabiano Fidêncio 48ef1be3be runtime-rs: Drop misleading "unsupported arch" gates
The Makefile pretended to reject s390x, powerpc64le and riscv64gc
by wrapping `default`, `test` and `install` in `ifeq UNSUPPORTED_ARCHS`,
and `check` in `ifeq ($(ARCH),x86_64)`. In reality `default` and
`install` were byte-for-byte identical in both branches, so only
`test` and `check` were ever skipped. The user-visible "$(ARCH) is
not currently supported" message and the bare `exit 0` made it look
like the build was a no-op when in fact builds and installs were
proceeding -- which has burned at least one maintainer trying to
debug a downstream packaging failure (issue #12914).

The original reasons those targets were skipped were:

  * `test` (commit 389ae9702, 2022): `cargo test` would pull in the
    dragonball crate, which only builds on x86_64/aarch64.
  * `check`: delegates to `standard_rust_check` in utils.mk, which
    runs `cargo clippy --all-targets --all-features`. `--all-features`
    unconditionally turns on the `dragonball` (and `cloud-hypervisor`)
    feature regardless of arch, breaking the build wherever those
    crates can't compile.

Both are now obsolete. The preceding commit arch-gated the
dragonball and firecracker drivers (and their dependencies) at the
Cargo and Rust source level, so on s390x/ppc64le/riscv64gc:

  * the `dragonball` cargo feature is a safe no-op -- enabling it
    just doesn't pull in the dep,
  * the `cloud-hypervisor` cargo feature still pulls in `ch-config`
    (which is portable Rust), but the `ch` driver module that uses
    it remains arch-gated at the source level,
  * `dbs-utils` and `hyperlocal` are not built at all.

That means `cargo clippy --all-targets --all-features` -- exactly
what `standard_rust_check` runs -- is safe on every architecture,
and no runtime-rs-local override of `check` is needed. Drop both
`ifeq` blocks and let `test` and `check` run on every arch the way
`default` and `install` already did. Net result: `make {default,
test,check,install}` now Just Work everywhere, with no arch-specific
code paths in this Makefile and no misleading "not currently
supported" messages.

Fixes: #12914

Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
Made-with: Cursor
2026-04-28 16:25:31 +02:00
..