bootc-deb/debian/rules
robojerk 3b59e37d1c
Some checks failed
Build bootc Package / Build bootc Package (push) Failing after 4m57s
Test Build / Test bootc Build (with existing libostree) (push) Failing after 2m6s
Fix bootc build: resolve rustup environment and binary path issues
- Set rustup environment variables in workflow instead of debian/rules
- Fix binary install path to use debian/cargo/target/release/bootc
- Simplify debian/rules by removing complex rustup handling
- Ensure cargo builds successfully and binary is found during install
2025-07-21 23:02:33 +00:00

35 lines
No EOL
787 B
Makefile
Executable file

#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE = 1
# This has to be exported to make some magic below work.
export DH_OPTIONS
# Build system
export CARGO_HOME = $(CURDIR)/debian/cargo
export CARGO_TARGET_DIR = $(CURDIR)/debian/cargo/target
# Apply our compatibility patch
override_dh_auto_patch:
# Apply the libostree compatibility patch
patch -p1 < ../bootc-libostree-compatibility.patch
dh_auto_patch
override_dh_auto_build:
# Build bootc with cargo
cargo build --release
dh_auto_build
override_dh_auto_install:
# Install the bootc binary
install -D -m 755 debian/cargo/target/release/bootc debian/bootc/usr/bin/bootc
dh_auto_install
override_dh_auto_clean:
# Clean cargo build artifacts
rm -rf debian/cargo
dh_auto_clean
%:
dh $@