Page MenuHomeFreeBSD

java/openjdk26: Add port Add port for OpenJDK 26.
ClosedPublic

Authored by haraldei on Thu, Mar 19, 2:36 PM.
Tags
None
Referenced Files
F149397199: D55938.diff
Tue, Mar 24, 4:38 AM
Unknown Object (File)
Mon, Mar 23, 9:11 AM
Subscribers
None

Details

Summary

Includes relevant fixes for FreeBSD from mainline development, but
otherwise identical to the upstream release.

Release notes for the upstream release is here:
https://www.oracle.com/java/technologies/javase/26-relnote-issues.html

FreeBSD related fixes on top of the upstream relese:

  • Serviceability Agent: fix stack traces in threads.
  • Serviceability Agent: simplify implementation of procadd_read_data to read memory from process being traced.
  • Serviceability Agent: symbol lookup would occationally fail for native symbols in shared objects.

Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 71514
Build 68397: arc lint + arc unit

Event Timeline

haraldei created this revision.

The build looks good on 16amd64: https://pkg.ftfl.ca/build.html?mastername=16amd64-default&build=2026-03-19_12h15m13s

Considering the diff [0] between this and java/openjdk25 is quite minimal, I think we're pretty safe.

[0]

% diff -r java/openjdk25 java/openjdk26
diff -r java/openjdk25/Makefile java/openjdk26/Makefile
4d3
< PORTREVISION= 1
17c16
< WWW=          https://openjdk.java.net/projects/jdk/25/
---
> WWW=          https://openjdk.java.net/projects/jdk/26/
129c128
< JDK_MAJOR_VERSION=    25
---
> JDK_MAJOR_VERSION=    26
131,133c130,132
< JDK_PATCH_VERSION=    2
< JDK_BUILD_NUMBER=     10
< BSD_JDK_VERSION=      freebsd-1
---
> JDK_PATCH_VERSION=    0
> JDK_BUILD_NUMBER=     35
> BSD_JDK_VERSION=      1
diff -r java/openjdk25/distinfo java/openjdk26/distinfo
1c1
< TIMESTAMP = 1772104685
---
> TIMESTAMP = 1773920001
10,11c10,11
< SHA256 (freebsd-openjdk-jdk-25.0.2+10-freebsd-1_GH0.tar.gz) = eb8f34a8d0829c66c9eb4decb8b10fbe348a6e99f33fa786067af439f18472a5
< SIZE (freebsd-openjdk-jdk-25.0.2+10-freebsd-1_GH0.tar.gz) = 119535862
---
> SHA256 (freebsd-openjdk-jdk-26+35-1_GH0.tar.gz) = c5db71942e814bcc44c6788536a062678e43856dfaa08549e77fc90e838e0816
> SIZE (freebsd-openjdk-jdk-26+35-1_GH0.tar.gz) = 121724470
This revision is now accepted and ready to land.Thu, Mar 19, 4:17 PM
In D55938#1279966, @jrm wrote:

Considering the diff [0] between this and java/openjdk25 is quite minimal, I think we're pretty safe.

The real diff is of course in the updated JDK, not so much in the makefiles, but even there, most of it should now be the upstream changes, not so much in the BSD specific parts.

I'm also more interested in if there's anything I've missed in the surrounding makefiles, Mk/Uses/java.mk etc.

LGTM

java/openjdk26/pkg-descr
1

pkg-descr should be 3 lines or more if possible.

Thanks for the reviews!

java/openjdk26/pkg-descr
1

I'm aware, but left it as is because it's the same for every openjdk port. I can go through them and expand them all in a separate patch.

This revision was automatically updated to reflect the committed changes.