Checklist
flatpak-builder version
1.4.7
Flatpak version
1.16.1
How to reproduce
- Get a Musl libc-based system like Alpine Linux or postmarketOS
- Build a Flatpak, I'm using this Flutter app as an example
Expected Behavior
Every binary ran during build to be ran in the sandbox so it can be compiled anywhere.
Actual Behavior
Binaries are ran on the host, which fails on non-glibc systems. In the example given in the "How to reproduce section" the following is printed during the error:
Error: module flutter: Failed to execute child process “bsdunzip” (No such file or directory)
This bsdunzip comes from the Flutter build system and is linked against glibc, but that shouldn't be a problem when ran in the sandbox indicating this is ran in the host context instead.
Additional Information
I'm using the app I mentioned as an example now but I had the same problem with multiple other Flatpak's. Basically any application that requires running pre-compiled binaries fail on Musl-libc based systems.