Fix Rust target architecture for Debian package build
- Add explicit target x86_64-unknown-linux-gnu to cargo build - Update install path to use target-specific directory - Fixes proc-macro compilation error for clap_derive - Ensures proper host architecture compilation
This commit is contained in:
parent
3495b126c1
commit
252124c6df
1 changed files with 4 additions and 3 deletions
7
debian/rules
vendored
7
debian/rules
vendored
|
|
@ -7,12 +7,13 @@
|
|||
override_dh_auto_configure:
|
||||
dh_auto_configure
|
||||
|
||||
override_dh_auto_build:
|
||||
cargo build --release
|
||||
override_dh_auto_build:
|
||||
rustup target add x86_64-unknown-linux-gnu
|
||||
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/release/bootupd 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue