#1079737 libgtk-3-0t64: "Exec format error" in foreign-arch installation

Package:
libgtk-3-0t64
Source:
libgtk-3-0t64
Description:
GTK graphical user interface library
Submitter:
Daniel Richard G.
Date:
2024-08-27 09:51:18 UTC
Severity:
normal
#1079737#5
Date:
2024-08-27 03:57:33 UTC
From:
To:
I am installing this package as a cross-compilation dependency for an
amd64-to-armhf build. In the install log, I see

    Setting up libgtk-3-0t64:armhf (3.24.43-3) ...
    /var/lib/dpkg/info/libgtk-3-0t64:armhf.postinst: 17: /usr/lib/arm-linux-gnueabihf/libgtk-3-0t64/gtk-query-immodules-3.0: Exec format error

The postinst script should check that the package is being installed on
a compatible architecture before running this (binary) program.