#1140590 mandos-client: do not use dpkg-architecture in maintainer scripts

Package:
mandos-client
Source:
mandos-client
Description:
do unattended reboots with an encrypted root file system
Submitter:
Helmut Grohne
Date:
2026-06-23 08:17:11 UTC
Severity:
normal
#1140590#5
Date:
2026-06-23 06:40:46 UTC
From:
To:
mandos-client.postinst uses dpkg-architecture to compute a multiarch
path. The result of such a computation at runtime will likely produce a
wrong result if the package is installed for a foreign architecture. It
is best practice to compute and interpolate the multiarch tuple at
package build time. For this purpose, dh_installdeb substituted
#DEB_HOST_MULTIARCH#. While at it, I also observe that the postinst does
not contain #DEBHELPER# and thereby strips any debhelper-generated
maintainer snippets. Is that intentional?

Helmut