Repository navigation
zulu: generate cacerts from cacert - #577093
Merged
Merged
Conversation
28 of 37 tasks
irgolic
force-pushed
the
cacert/zulu
branch
2 times, most recently
from
October 22, 2026 00:04
cdf35dc to
685723a
Compare
5 of 14 tasks
Comment on lines
+238
to
+240
| // lib.optionalAttrs regenerateCacerts { | ||
| # keytool must already be patched when postFixup regenerates cacerts | ||
| dontAutoPatchelf = true; |
Member
There was a problem hiding this comment.
Suggested change
| // lib.optionalAttrs regenerateCacerts { | |
| # keytool must already be patched when postFixup regenerates cacerts | |
| dontAutoPatchelf = true; | |
| dontAutoPatchelf = regenerateCacerts; |
This avoids the reindent and should be equivalent
Member
Author
There was a problem hiding this comment.
Sorry for the delay, I've made this change now, thanks.
| pushd "$out/${lib.optionalString isJdk8 "jre/"}lib/security" | ||
| rm cacerts | ||
| JAVA_TOOL_OPTIONS="-Dkeystore.pkcs12.certProtectionAlgorithm=NONE -Dkeystore.pkcs12.macAlgorithm=NONE" \ | ||
| ${jre-generate-cacerts} "$out/bin/keytool" ${cacert}/etc/ssl/certs/ca-bundle.crt |
Member
There was a problem hiding this comment.
I think this would break cross-compilation, though I'm not sure it works at the moment anyway.
Assisted-by: Claude Code (Claude Fable 5.1) Assisted-by: Claude Code (Claude Opus 5.5) with patchix
github-merge-queue
Bot
removed this pull request from the merge queue due to a manual request
Nov 17, 2026
nixpkgs-branch-check
Bot
dismissed
their stale review
November 17, 2026 18:21
Review dismissed automatically
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 Zulu binary JDKs,
zulu8tozulu25, have a bundled Java trust store,lib/security/cacerts, from approximately 2020. This change makes a newcacertsfrom thecacertbundle withjre-generate-cacerts, as the mergedopenjdkchange #576518 does. This change is for Linux only. On darwin,zuluis theopenjdkpackage, and itsdrvPathdoes not change.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 harness builds the binary JDK one time.
Harness output: zulu
In the second part of the output, the harness adds a temporary test root to
cacertand builds the JDK again. Then a small Java test sends a request to a localopenssl s_serverwith the default trust store. 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.