fix(main/openjdk-{17,21,25}): fix multiple crashes #27046
Draft
+100
−0
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.
Fixes [Bug]: 32-bit ARM build of
openjdk-25hasIllegal instruction(also, unpatchedTMP_BUFFER_LENdiscovered) #27045Disables g1gc and LTO for 32-bit ARM
openjdk-25hasIllegal instruction(also, unpatchedTMP_BUFFER_LENdiscovered) #27045It is also necessary to hardcode
char* tmpdir = "@TERMUX_PREFIX@/tmp";because OpenJDK has an internal hostbuild that will crash at build-time if it is not also redirected to use@TERMUX_PREFIX@/tmpinstead of/tmpsimultaneouslyopenjdk-25, but the same code exists possibly-dormant in every OpenJDK, so should be patched in all@TERMUX_PREFIX@/tmpis already a directory excluded from packaging globally, so it is safe to use as a tmpdir at build-time of anythingtermux-packages/scripts/build/termux_step_copy_into_massagedir.sh
Line 5 in f7d3769