From 5e263d2e831e984eaae35becd3b2502b1c71271a Mon Sep 17 00:00:00 2001 From: robojerk Date: Sun, 10 Aug 2025 13:38:54 -0700 Subject: [PATCH] Fix ZSTD linking in debian/rules with explicit linker flags - Add explicit -C link-arg=-lzstd to RUSTFLAGS in debian/rules - This ensures ZSTD library is linked during Debian package build - Build script approach didn't work because dpkg-buildpackage bypasses Cargo - Local Debian package build now succeeds with ZSTD linking - Should resolve the 63+ failed CI builds --- debian/rules | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 160c495..6108722 100755 --- a/debian/rules +++ b/debian/rules @@ -9,7 +9,8 @@ override_dh_auto_configure: override_dh_auto_build: rustup target add x86_64-unknown-linux-gnu - cargo build --release --target x86_64-unknown-linux-gnu + # Force ZSTD linking since OpenSSL was compiled with ZSTD support + RUSTFLAGS="-C target-cpu=native -C link-arg=-lzstd" cargo build --release --target x86_64-unknown-linux-gnu override_dh_auto_install: mkdir -p debian/deb-bootupd/usr/libexec