Ports/file: Build host version to ensure we can properly cross compile #24326
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.
We should build file natively as well so it can be used to compile the target build (for serenity). The Makefile doesn't do this automatically so to ensure it will not fail due to version mismatch between the host version and target version, we ensure we always have a native binary at hand.
Some funny backstory - I looked on the Internet something related to bashisms and dash, and was interested to see the state of the
dash
port, and (surprise surprise) I saw it did thehost_env
trickery @timschumi suggested to do and simply copied the procedures and changed it a bit to work according to theREADME.DEVELOPER
guidelines in the port.Closes #18415.