Repository navigation
Description
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 thegiofeature on a Linux or FreeBSD target, it runspkg_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--workspacebuild turns onobs-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, andPKG_CONFIG_ALLOW_CROSS=1doesn't help: there is nogio-2.0.pcfor 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 jobRust Cross Lint 🦀 (release targets)(build-project.yamlwithfull: true, called byrelease-rust.yaml).release-rust.yamlpublishes only whenneeds.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
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
rust: Let obs-util's gio-2.0 probe warn on cross targets (obs-rust#1689)