[X] I agree to follow the Code of Conduct that this project adheres to.
[X] I have searched the issue tracker for a bug that matches the one I want to file, without success.
flatpak-builder version
1.3.1
Flatpak version
1.15.4
How to reproduce
Make a multi-arch (aarch64 and x86_64) Flatpak manifest that sets strip to true in build-options.
Build a Flatpak application or extension on an x86 host in an aarch64 environment:
flatpak-builder --user --force-clean build-dir org.freedesktop.Platform.VulkanLayer.gamescope.yml --install --arch=aarch64
Stripping works normally, as it would when building on x86 and aarch64 natively.
Actual Behavior
Stripping fails when building a Flatpak not on the native arch.
Installing symlink pointing to libevdev.so.2 to /usr/lib/extensions/vulkan/gamescope/lib/libevdev.so
stripping: files/lib/libevdev.so.2.3.0
strip: Unable to recognise the format of the input file `/var/home/oro/org.freedesktop.Platform.VulkanLayer.gamescope/.flatpak-builder/rofiles/rofiles-ebVMtV/files/lib/libevdev.so.2.3.0'
Error: module libevdev: Child process exited with code 1
Checklist
flatpak-builder version
1.3.1
Flatpak version
1.15.4
How to reproduce
strip
totrue
inbuild-options
.flatpak-builder --user --force-clean build-dir org.freedesktop.Platform.VulkanLayer.gamescope.yml --install --arch=aarch64
To test this out, use the manifest in https://github.com/flathub/flathub/pull/4329.
Expected Behavior
Stripping works normally, as it would when building on x86 and aarch64 natively.
Actual Behavior
Stripping fails when building a Flatpak not on the native arch.