java/openjdk27: Add port
Upstream release notes:
https://jdk.java.net/27/release-notes
In addition this release contains the following BSD specific fixes:
- Fix os::naked_short_nanosleep on OpenBSD when < 20 miliseconds.
- Only return symbols that match the requested address for dladdr(3) on
BSD.
Reviewed by: pkubaj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D59519
Mk/Uses/java.mk: re-order preferred JDK (latest LTS over non-LTS)
Old order:
1. JAVA_DEFAULT
2. The oldest JDK in the JAVA_VERSION range.
New order:
1. JAVA_DEFAULT (unchanged)
2. The latest LTS from the JAVA_VERSION range is preferred over non-LTS
versions.
Other existing mechanisms are unchanged. Like looking at what JDKs are already
installed.
This only affects 17 ports. (see the issue for the list)
PR: 293756
java/openjdk26: Add port
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.
Reviewed by: fuz (mentor), jrm
Approved by: fuz (mentor), jrm
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55938
Mk/Uses/java.mk: Fix indentation
The check_mk_indentations pre-commit hook is preventing changes to the
file until the indentation is fixed.
Sponsored by: The FreeBSD Foundation
Mk/**java.mk: Convert bsd.java.mk to USES
The following features have been added or changed:
- Instead of USE_JAVA use USES=java. This defaults to
USES=java:build,run if NO_BUILD is undefined. Else it defaults to
USES=java:run
- Instead of USE_ANT=yes use USES=java:ant which also implies
USES=java:build
- Instead of JAVA_BUILD=yes use USES=java:build. Does not imply run or
extract
- Instead of JAVA_EXTRACT=yes use USES=java:extract does not imply
build or run
- Instead of JAVA_RUN=yes use USES=java:run does not imply extract or
build
- Instead of USE_JAVA=<version> use USES=java and JAVA_VERSION=<version>
Approved by: mat (portmgr), glewis
Differential Revision: https://reviews.freebsd.org/D48201