Don't export symbols or synthetic object files in Scratchbox #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It evidently looks like the linker in Scratchbox / Sailfish SDK does not work with - nor need - the exported symbols and synthetic object files. Taking inspiration of the plain if-return just above the patch lines, I added a detection of
SB2_RUST_TARGET_TRIPLE
environment variable, which then results in those files not being created, and thus not being added to the linker file list.With this patch Rust 1.75.0 compiles in Platform SDK shell (the hanging problem in the build target still exists -
statx
syscall is the main culprit) and installing the resulting packages into Sailfish SDK successfully lets me build Whisperfish 1.72 branch for i486, armv7hl and aarch64. The functionality of the armv7hl build was tested on-device with Jolla Phone, and it seems to work just fine (as a test I sent a message and checked the output on terminal).This patch is kind of a hack, but then again, so are many of the other patches. Further improvements are most welcome!