-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generating jre from sdk on Macos gives error. #3
Comments
@narkedi is this the same issue you already are aware of or is this something new? |
@AdamBrousseau That's true, its the same issue which is due to the mismatch in SHA's. |
The error exists in 11.0.12 and 11.0.13 (latest as of today). I cannot reproduce with 11.0.11. |
It still occurs with the latest (11.0.16) |
If signing occurs after the jmod is produced, it will affect the hash, so this should not be surprising. Has anyone checked builds from adoptium to see if they have the same symptoms? |
I believe I did and the Adoptium build worked. I think there is another issue about this somewhere where I documented that. |
There's several issues at Adoptium but this one adoptium/temurin-build#1214 seem to be a good starting point. They've fixed the issue. |
I was sent here by @tresf. I barely remember any details and it also wasn't me who implemented it at AdoptOpenJDK. If I remember correctly, the key is to make an exploded image, sign it, and then to reassemble it. Basically, you run the build twice with different arguments and skip the configure step on the second pass. https://github.com/adoptium/ci-jenkins-pipelines/blob/83d8718155a85eb2dc5cdf0005bce62c7ace0ae2/pipelines/build/common/openjdk_build_pipeline.groovy#L1375-L1461 and https://github.com/adoptium/temurin-build/blob/3d0981f31c10ca3e6e533703bb7e6e168609e32c/sbin/build.sh#L574-L577 look like the most relevant parts. |
Also happens in the build available today. Minimal example repository: https://github.com/koppor/openj9-hash-issue |
Current output
|
Generating jre using jlink gives error on Macos. The modules provided for --add-modules are the ones which are listed in --list-modules option. On windows and linux it works fine.
Sdk used: http://w3.hursley.ibm.com/java/jim/ibmsdks/java11/110120/macosxx8664/index.html
version: 11.0.12
Found a similar issue : AdoptOpenJDK/openjdk12-binaries#1
The text was updated successfully, but these errors were encountered: