deb-bootupd/debian/rules
robojerk 5e263d2e83
All checks were successful
Build deb-bootupd Artifacts / build (push) Successful in 8m45s
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
2025-08-10 13:38:54 -07:00

28 lines
985 B
Makefile
Executable file

#!/usr/bin/make -f
%:
dh $@
# Enable systemd integration
override_dh_auto_configure:
dh_auto_configure
override_dh_auto_build:
rustup target add 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
install -D -m 755 target/x86_64-unknown-linux-gnu/release/bootupd debian/deb-bootupd/usr/libexec/
# Create symlink for multicall binary (following RPM pattern)
ln -sf ../libexec/bootupd debian/deb-bootupd/usr/bin/bootupctl
# Install documentation
install -D -m 644 README.md debian/deb-bootupd/usr/share/doc/deb-bootupd/
install -D -m 644 deb-bootupd.md debian/deb-bootupd/usr/share/doc/deb-bootupd/
install -D -m 644 VERSION.md debian/deb-bootupd/usr/share/doc/deb-bootupd/
# Clean up build artifacts
override_dh_auto_clean:
dh_auto_clean
rm -rf target/