Fix crash when building arm64 .deb-based apps
When building a Flatpak application from .deb packages, we use `flatpak` for executing commands inside the target runtime. This results in `flatpak` calling the runtime's `ldconfig`, which fails for arm64 runtimes: when running on an amd64 host through `qemu-user-static`, the arm64 version of `ldconfig` crashes. Replacing the runtime's `ldconfig` with the binary from the host is enough to mitigate this problem, despite the architecture mismatch (amd64 `ldconfig` running inside an arm64 environment. References: - https://gitlab.gnome.org/GNOME/gnome-build-meta/-/issues/132 - https://bugzilla.redhat.com/show_bug.cgi?id=1886542 - https://github.com/flatpak/flatpak/issues/3108 Signed-off-by:Arnaud Ferraris <arnaud.ferraris@collabora.com>
parent
9b6c546b
No related branches found
No related tags found
Please register or sign in to comment