Package: dpkg Version: 1.20.9 Severity: wishlist Packages that have a plugin architecture, like glib2.0 and gdk-pixbuf, often want to know the multiarch tuple in their maintainer scripts so that they can enumerate plugins in a multiarch-qualified directory or run multiarch-qualified helper programs.
At the moment, dpkg provides DPKG_MAINTSCRIPT_PACKAGE and DPKG_MAINTSCRIPT_ARCH in maintainer scripts' enviroment, but packages that need to know the multiarch tuple have to generate their maintainer scripts from a template: for example, glib2.0 and gdk-pixbuf have a .postinst.in template containing #MULTIARCH#, which gets substituted by the package build. It would be simpler for packages in this situation if dpkg provided something like DPKG_MAINTSCRIPT_MULTIARCH in the environment. smcv