[Bug 293756] Mk/Uses/java.mk: prefer latest LTS openjdk
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 293756] Mk/Uses/java.mk: prefer latest LTS openjdk"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 12 Mar 2026 19:41:30 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293756
--- Comment #4 from Ronald Klop <ronald@FreeBSD.org> ---
(In reply to Vladimir Druzenko from comment #3)
To me a default is a value used when no value is specified. So the default has
no meaning when an actual value is set, IMHO. I think it complicates the
algorithm if the default gets two purposes.
BTW, java.mk has an undocumented feature that you can set
JAVA_PREFERRED_PORTS=JAVA_PORT_NATIVE_OPENJDK_JDK_21.
I think this does what you are looking for.
/etc/make.conf:
JAVA_PREFERRED_PORTS=JAVA_PORT_NATIVE_OPENJDK_JDK_${JAVA_DEFAULT}
--
You are receiving this mail because:
You are on the CC list for the bug.