#!/bin/bash set -euo pipefail cp $PATCH_DIR/Add-support-mips32.patch debian/patches/debian-hacks/ echo 'debian-hacks/Add-support-mips32.patch' >> debian/patches/series patch --no-backup-if-mismatch -p1 <<'PATCH' --- a/debian/rules +++ b/debian/rules @@ -156,6 +156,7 @@ ifneq (,$(filter mips mipsel,$(DEB_HOST_ARCH))) CONFIGURE_FLAGS += --disable-jit +CONFIGURE_FLAGS += --enable-linker=bfd endif RUSTFLAGS = --remap-path-prefix=$(CURDIR)=. PATCH sed -i "s|nodejs|nodejs:native|" $PACKAGE_DSC debian/control sed -i "s|rustc|rustc:native, libstd-rust-web-dev|" $PACKAGE_DSC debian/control sed -i "s|cargo|cargo:native|" $PACKAGE_DSC debian/control sed -i "s|llvm-dev|llvm-dev:native|" $PACKAGE_DSC debian/control sed -i "s|python3|python3:native|" $PACKAGE_DSC debian/control sed -i "s|clang,|clang:native,|" $PACKAGE_DSC debian/control sed -i "s|libclang-dev|libclang-dev:native|" $PACKAGE_DSC debian/control sed -i "s|locales|locales:all|" $PACKAGE_DSC debian/control sed -i "s|ttf-bitstream-vera|ttf-bitstream-vera:all|" $PACKAGE_DSC debian/control