Fix debian/rules: move DEB_HOST_MULTIARCH to file-scope Make variable

The := assignment was inside a recipe (tab-indented) where lines are
shell commands, not Make directives. Move to file scope with ?= so
dpkg-buildpackage can override, and Make expands it in recipe lines.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dave Kempe
2026-03-01 15:48:43 +11:00
parent 996faa1e4a
commit 043e52195b
+2 -1
View File
@@ -2,6 +2,8 @@
export DH_VERBOSE = 1
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
%:
dh $@
@@ -35,7 +37,6 @@ override_dh_auto_install:
cp -a debian/staging/opt/rustguac/lib/*.so* debian/rustguac/opt/rustguac/lib/
# FreeRDP plugin for RDPDR/RDPSND channels (drive redirection, audio, printing)
DEB_HOST_MULTIARCH := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
install -d debian/rustguac/usr/lib/$(DEB_HOST_MULTIARCH)/freerdp3
cp -a debian/staging/usr/lib/$(DEB_HOST_MULTIARCH)/freerdp3/*.so* debian/rustguac/usr/lib/$(DEB_HOST_MULTIARCH)/freerdp3/ 2>/dev/null || true