From 043e52195bc9f8912364b8516dfbf12ede458f1d Mon Sep 17 00:00:00 2001 From: Dave Kempe Date: Sun, 1 Mar 2026 15:48:43 +1100 Subject: [PATCH] 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 --- debian/rules | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 097e30e..56de0ab 100755 --- a/debian/rules +++ b/debian/rules @@ -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