Skip to content

bug: obs-util: the release gate's Linux arm64 cross lint fails, gio-2.0 not found #1688

Closed

Description

@rdoupe

Found by running the release gate's cross-release lane locally on current master. It passed on 2026-10-20, before #1577 (port of the session D-Bus sleep inhibitor to obs-util). No release has run since #1577 merged, so the next daily release (09:00 UTC) will fail its gate and publish nothing.

Location

  • rust/obs-util/build.rs, main(): with the gio feature on a Linux or FreeBSD target, it runs pkg_config::Config::new().probe("gio-2.0").expect("GIO feature needs gio-2.0"). It panics when gio-2.0 isn't found, also for a cross target.
  • rust/libobs-rust/Cargo.toml: default = ["gio"], so every --workspace build turns on obs-util/gio.
  • ci/local_gate.py, lane_cross_release(): cargo clippy --workspace --exclude obs-c-oracle --lib --bins --target aarch64-unknown-linux-gnu. soldr's aarch64 Linux sysroot has no GIO, and PKG_CONFIG_ALLOW_CROSS=1 doesn't help: there is no gio-2.0.pc for the target.

The Rust inhibitor (ffi::dbus_inhibit) declares GIO's functions itself, with no headers or bindgen, so the probe only adds link flags. Those are needed where Cargo links something against GIO: the native test binaries. The cross gates only lint or build the staticlib. In a real build, CMake links hybrid libobs with gio::gio itself (libobs/cmake/os-linux.cmake). The C oracle's probe (rust/obs-c-oracle/build.rs) is already optional.

Class

Build failure, in the release gate only. The PR and master gates don't lint Linux arm64. No shipped binary is affected: releases don't ship Linux arm64, and the native Linux build is unchanged.

How it is reached

  • uv run ci/local_gate.py --lane cross-release, or the release gate's job Rust Cross Lint 🦀 (release targets) (build-project.yaml with full: true, called by release-rust.yaml).
  • release-rust.yaml publishes only when needs.gate.result == 'success', so a failed gate means no daily release.

Reproduced on master

Linux x86_64 host, soldr toolchain, as the lane runs it:

Build Step Result
master 4ffe715 (2026-10-20, before #1577) release gate, Rust Cross Lint (release targets) passed
master eaf4903 cargo clippy --workspace --exclude obs-c-oracle --lib --bins --target aarch64-unknown-linux-gnu obs-util build script panics: GIO feature needs gio-2.0, "Package 'gio-2.0' not found"

Fix

A cross build (Cargo's HOST differs from TARGET) still probes gio-2.0 and uses it when found. Without it, the build script prints a Cargo warning instead of failing; the final link has to provide GIO, as CMake does. A native build still requires GIO, so its test binaries link as before. Adding GIO to soldr's aarch64 sysroot would also work, but that's a toolchain change, and nothing in a cross lint needs it. PR follows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions