This OpenJDK implementation may require procfs(5) mounted on /proc.
If you have not done it yet, please do the following:
mount -t procfs proc /proc
To make it permanent, you need the following lines in /etc/fstab:
proc /proc procfs rw 0 0
Affects: users of java/openjdk25 and java/openjdk26 with the jre flavor
Author: jrm@FreeBSD.org
Reason:
The openjdk-jre packages for versions 25 and 26 have been renamed. Users with
the old package names installed should run the following /bin/sh script with
superuser privileges before upgrading.
jre=$(pkg query -g %n-%v "*openjdk-jre-25*" "*openjdk-jre-26*")
if echo "$jre" | grep -q "\-25"; then
on=$(pkg query -g %n "*openjdk-jre-25*")
nn="openjdk25-jre"
elif echo "$jre" | grep -q "\-26"; then
on=$(pkg query -g %n "*openjdk-jre-26*")
nn="openjdk26-jre"
fi
if [ -n "$nn" ]; then
pkg set -yn "$on":"$nn"
fi
Reason:
Version JAVA_DEFAULT is updated from 8 to 21.
No specific action should be needed, just a heads-up to test before
deploying to production as this is quite a big step in versions.
java/openjdk*: fix kqueue selectors on big-endian
KQueue.getDescriptor() reads the kevent ident, a uintptr_t, as a 32-bit
int. On big-endian that is the zero high half, so every ready event is
dropped and Selector.select() returns at once with nothing selected.
Netty servers like OpenSearch then spin forever rebuilding the selector.
Read the field at its full width instead.
java/openjdk25: Version 25.0.5.0.3 more cert fixes
Update to latest upstream patch version to address more issues with the
eMudhra certificate incident.
See also: https://openjdk.org/emudhra
MFH: 2026Q4
Security: CVE 2026-114820
Security: JDK-8395690
Sponsored by: The FreeBSD Foundation
java/openjdk25: Version 25.0.5.0.2 including CA fixes
Upgrade port to latest upstream, including fixes for eMudhra CA
certificate issues.
MFH: 2026Q4
Sponsored by: The FreeBSD Foundation
java/openjdk{25,26}: portclippy and cleanup
Just a cleanup commit sorting the Makefile according to the order
outlined in the Porters Handbook, and reducing the number of times we
check for a headless build, as suggested by vsasjason_gmail.com.
This commit does not increase the PORTREVISION as it does not introduce
any changes to functionality or dependencies.
Reviewed by: jrm
Sponsored by: The FreeBSD Foundation
java/openjdk25: Update to version 25.0.4
Includes the following FreeBSD specific fixes:
- Set wxneeded flag for executables on FreeBSD.
- Fix build with clang 22
Sponsored by: The FreeBSD Foundation
java/openjdk25: fix build on freebsd 16/aarch64
=== Output from failing command(s) repeated here ===
* For target hotspot_variant-server_libjvm_objs_os_bsd.o:
In file included from
/wrkdirs/usr/ports/java/openjdk25/work-jdk/openjdk-jdk-25.0.3-9-freebsd-1/src/hotspot/os/bsd/os_bsd.cpp:135:
In file included from /usr/include/sys/user.h:52:
In file included from /usr/include/vm/pmap.h:88:
In file included from /usr/include/machine/pmap.h:46:
In file included from /usr/include/sys/systm.h:46:
/usr/include/machine/cpufunc.h:35:1: error: static declaration of 'breakpoint'
follows non-static declaration
35 | breakpoint(void)
| ^
/wrkdirs/usr/ports/java/openjdk25/work-jdk/openjdk-jdk-25.0.3-9-freebsd-1/src/hotspot/share/utilities/breakpoint.hpp:31:17:
note: previous declaration is here
31 | extern "C" void breakpoint();
| ^
(Only the first 15 lines of the commit message are shown above )
java/openjdk*: Fix possible race after configure
Some setups could fail when building with poudriere bulk with a message
about the configuration was out of date. Since configure is run as part
of the build in any case, we don't need the explicit configure check in
the openjdk build system, so we disable it.
Fix originally proposed by jonc@chen.org.nz.
Since this doen not change the port, only whether it will build or not,
I have not bumped the PORTREVISION for this change.
PR: 294199
Reported by: nxjoseph
Reviewed by: glewis
Approved by: glewis
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D56289
java/openjdk: Fix pkgsuffix for jre builds
java/openjdk25 and openjdk26 would use the same pkgsuffix when building
the jre FLAVOR, making the package names clash.
Reported by: Antoine Brodin <antoine@freebsd.org>
Reviewed by: fuz
Approved by: fuz
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D56123
java/openjdk25: Fix headless build
The OpenJDK headless builds still need xorg and related libraries.
This should hopefully fix the pkg fallouts reported after the update to
25.0.2.
Reviewed by: fuz (mentor)
Approved by: fuz (mentor)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55589
java/openjdk25: Update to OpenJDK 25.0.2
Update to track upstream version 25.0.2, with fixes for FreeBSD.
See the upstream release notes for details on what has changed since
version 25.0.1:
https://www.oracle.com/java/technologies/javase/25-0-2-relnotes.html
In addition to the above, this release includes the following patch,
scheduled for JDK 26 by upstream.
JDK-8371637: allocateNativeInternal sometimes return incorrectly aligned
memory
This is because this patch affects systems using jemalloc specifically,
like FreeBSD does, but I feel it's too long time to wait until the next
LTS release before making it available on FreeBSD.
Reviewed by: fuz (mentor)
Approved by: fuz (mentor)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55529
java/openjdk21-25: Bootstrap from prebuilt packages
Completes the transition to using prebuilt packages to bootstrap OpenJDK
ports.
PR: 289731
Reviewed by: jrm, fuz (mentor)
Approved by: fuz (mentor)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D54731
java/openjdk25: Update to version 25.0.1
Reviewed-by: fuz (mentor)
Approved by: fuz (mentor)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D53975
java/openjdk25: Add jre_headless flavor
Add flavor to make a headless jre package, where dev tools and x11
support is removed. As requested in Bug #266059.
PR: 266059
Reviewed by: fuz, jrm
Approved by: fuz (Mentor), jrm
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D53707
java/openjdk25: Add jre and headless flavors
Add FLAVORS to allow building jre and headless variants from the same
port. For backwards compatibility, it is also possible to build the jre
version by setting the BUILD_JRE env var.
Also reorganize the Makefile to make portclippy happy
Reviewed by: fuz, jrm
Approved by: fuz (mentor)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D53450
java/openjdk25: fix build on powerpc64*
/wrkdirs/usr/ports/java/openjdk25/work/openjdk-jdk-25-36-freebsd-1/src/hotspot/os_cpu/bsd_ppc/os_bsd_ppc.cpp:182:54:
error: no member named 'regs' in '__mcontext'