Repository navigation
temurin-bin: generate cacerts from cacert - #577094
Merged
Merged
Conversation
Assisted-by: Claude Code (Claude Fable 5.1) Assisted-by: Claude Code (Claude Opus 5.5)
28 of 37 tasks
irgolic
force-pushed
the
cacert/temurin-bin
branch
from
October 21, 2026 23:22
feb5119 to
f47b8a2
Compare
irgolic
marked this pull request as draft
October 21, 2026 23:44
irgolic
force-pushed
the
cacert/temurin-bin
branch
from
October 22, 2026 00:04
f47b8a2 to
f2957b0
Compare
irgolic
marked this pull request as ready for review
October 22, 2026 00:05
taku0
approved these changes
Oct 28, 2026
taku0
left a comment
Contributor
There was a problem hiding this comment.
LGTM.
nixpkgs-reviewbuildstemurin-bin*andtemurin-jre-bin*but notsemeru-bin*noropenjdkas expected.lib/security/cacertsis different to the file frommasterbranch.bin/java -versionandbin/javac -versionworks.
Member
|
Should this be backported to 26.05? |
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.
Heads up, most of this change is a reindent – you can press "hide whitespace" in the diff to make it easier to read.
The Temurin binary JDKs,
temurin-binandtemurin-jre-bin, have a bundled Java trust store,lib/security/cacerts. This change makes a newcacertsfrom thecacertbundle withjre-generate-cacerts, as the mergedopenjdkchange #576518 does.temurin-binis also the bootstrap JDK ofopenjdk. Thus, this change adds the argumentregenerateCacerts, andopenjdksets it tofalsefor its bootstrap JDK. ThedrvPathof eachopenjdkdoes not change. This change does not changejmods/java.base.jmodor the darwin packages.The JDKs
semeru-binandsemeru-jre-binalso come fromtemurin-bin/jdk-linux-base.nix. At this time, their JVM does not start on nixpkgs, and it shows this error:cannot enable executable stack as shared object requires: Invalid argument. This occurs because glibc 2.41 and newer versions do not accept a library that must have an executable stack, andlibj9vm29.sois such a library. Thus, it is not possible to usekeytoolat build time. This change setsregenerateCacerts = falsefor these two packages, and theirdrvPathdoes not change. The repair of these two packages (a new version, ormeta.broken) is a different task.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: temurin-bin
Harness output: temurin-jre-bin
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.