Repository navigation
eclipses: generate the bundled JustJ JRE's cacerts from cacert - #577595
Merged
Merged
Conversation
Assisted-by: Claude Code (Claude Fable 5.1) Assisted-by: Claude Code (Claude Opus 5.5)
28 of 37 tasks
jerith666
approved these changes
Oct 23, 2026
jerith666
left a comment
Contributor
There was a problem hiding this comment.
This bundled JRE can't run on NixOS anyway, but I suppose it's worth patching in case someone using nix-packaged eclipse outside of NixOS happens to execute it somehow.
I confirmed this builds locally and I can still launch eclipse.
Comment on lines
+119
to
+123
| pushd "$(dirname "$cacerts")" | ||
| rm cacerts | ||
| JAVA_TOOL_OPTIONS="-Dkeystore.pkcs12.certProtectionAlgorithm=NONE -Dkeystore.pkcs12.macAlgorithm=NONE" \ | ||
| ${jre-generate-cacerts} ${jdk}/bin/keytool ${cacert}/etc/ssl/certs/ca-bundle.crt | ||
| popd |
Contributor
There was a problem hiding this comment.
nit: I usually prefer (cd x; ...) to pushd x; ...; popd, but either works:
Suggested change
| pushd "$(dirname "$cacerts")" | |
| rm cacerts | |
| JAVA_TOOL_OPTIONS="-Dkeystore.pkcs12.certProtectionAlgorithm=NONE -Dkeystore.pkcs12.macAlgorithm=NONE" \ | |
| ${jre-generate-cacerts} ${jdk}/bin/keytool ${cacert}/etc/ssl/certs/ca-bundle.crt | |
| popd | |
| ( | |
| cd "$(dirname "$cacerts")" | |
| rm cacerts | |
| JAVA_TOOL_OPTIONS="-Dkeystore.pkcs12.certProtectionAlgorithm=NONE -Dkeystore.pkcs12.macAlgorithm=NONE" \ | |
| ${jre-generate-cacerts} ${jdk}/bin/keytool ${cacert}/etc/ssl/certs/ca-bundle.crt | |
| ) |
irgolic
force-pushed
the
cacert/eclipses
branch
from
October 23, 2026 13:29
ff12820 to
7214343
Compare
Member
Author
|
Replaced with the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Part of #576543.
The Eclipse packages
eclipses.eclipse-committers,-cpp,-dsl,-embedcpp,-java,-jee,-modelingand-rcphave a bundled JustJ JRE ineclipse/plugins/org.eclipse.justj.openjdk.*/jre. This change inbuild-eclipse.nixmakes a newlib/security/cacertsfor this JRE from thecacertbundle withjre-generate-cacertsand thekeytoolofjdk. Eclipse usesjdk(jdk25) and not this JRE, becausebuild-eclipse.nixremoves the JustJ-vmline fromeclipse.ini. Thus, this change has an effect only when a different tool starts the bundled JRE. In #576543, the "+1 more" file of each package is a javadoc example injre/lib/src.zip, not a trust store.eclipse-platformandeclipse-sdkhave no JustJ JRE.Warning
AI Disclosure: Claude Code made the code change, the commit message and the first version of this pull request description. Claude Code used Claude Fable 5.1 and Claude Opus 5.5. I examined all of this work. Claude Code also wrote all of nix-cacert-harness. This pull request description is written in ASD-STE100 (Simplified Technical English), examined with memelint in
strictmode.Test
nix-cacert-harness examines the package before and after this change. A local copy of nixpkgs is not necessary. The other seven packages get the same change from
build-eclipse.nix.Harness output: eclipses.eclipse-java
In the second part of the output, the harness adds a temporary test root to
cacertand buildseclipse-javaagain. Then a small Java test starts the bundled JustJ JRE and sends a request to a localopenssl s_serverwithHttpsURLConnectionand the default trust store. The package does not patch this JRE, thus the test starts itsbin/javathrough the dynamic loader of nixpkgs. The certificate of this server chains to the test root. Before this change,cacerthas no effect on the result. After this change, it has an effect. The harness compares the certificates by their SHA-256 fingerprints, becausejre-generate-cacertsdoes not keep the usual aliases.Things done
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.