From 0bca0c7784b6df955ff8da2bb6721d14a7e19595 Mon Sep 17 00:00:00 2001 From: Draco Lunaris <331325+Draco-Lunaris@users.noreply.github.com> Date: Sun, 31 May 2026 09:22:16 -0500 Subject: [PATCH] fix: remove cargo env sourcing from debian/rules The debian/rules override_dh_auto_build was sourcing $HOME/.cargo/env which fails under sudo where HOME=/root while cargo is at /home/runner/.cargo/. The CI workflow already passes PATH via "sudo env PATH=$PATH", so cargo is in PATH without sourcing. Co-authored-by: git-echo --- debian/rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100755 => 100644 debian/rules diff --git a/debian/rules b/debian/rules old mode 100755 new mode 100644 index 3126d4a..4221a99 --- a/debian/rules +++ b/debian/rules @@ -8,7 +8,7 @@ export DEB_CARGO_BUILD_FLAGS=--release dh $@ override_dh_auto_build: - . "$$HOME/.cargo/env" && cargo build --release --target x86_64-unknown-linux-gnu + cargo build --release --target x86_64-unknown-linux-gnu override_dh_auto_install: dh_auto_install