From 8ee0281b4fefc80b50ab3efd9489f85812ac36f2 Mon Sep 17 00:00:00 2001 From: Denis Benato Date: Wed, 5 Nov 2025 22:40:58 +0100 Subject: [PATCH] Fix: fedora build --- distro-packaging/asusctl.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/distro-packaging/asusctl.spec b/distro-packaging/asusctl.spec index a1d6524a..c4b851a5 100755 --- a/distro-packaging/asusctl.spec +++ b/distro-packaging/asusctl.spec @@ -92,7 +92,9 @@ EOF %build export RUSTFLAGS="%{rustflags}" %if %{defined fedora} -%cargo_build +%# Use an explicit cargo invocation for Fedora to avoid the macro adding `--locked`. +%# `--locked` breaks Fedora builds because the lockfile may not be appropriate for the distro buildroot. +/usr/bin/cargo auditable build --release %else /usr/bin/cargo auditable build --release %endif