[Bug 289858] Mk/Uses/java.mk: Use JAVA_VERSION as priority
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 07 Mar 2026 13:28:38 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289858 --- Comment #8 from Ronald Klop <ronald@FreeBSD.org> --- Created attachment 268599 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=268599&action=edit git diff to reverse the order of preferred java version Hi, I experimented a bit and came up with this patch. It prefers the highest version in the JAVA_VERSION list instead of the lowest version. The effect is like this: 1. no JAVA_VERSION set, prefer JAVA_DEFAULT (21) 2. JAVA_VERSION=8 11, prefer 11 3. JAVA_VERSION=17+, prefer 25 (latest) Option 1 is stable, needs exp-run to increase. Option 2 is conservative and predictive. Option 3 will be more progressive when a new JDK is added to the tree. Frequency table of JAVA_VERSION in ports with USES=java: 292 12 11 1 11 17 37 11+ 16 17 28 17+ 4 21 1 21 17 1 21 17 25 28 21+ 1 22 1 24 48 8 7 8 11 3 8 11 17 1 8 11 17 18 1 8 11 17 18 19 20 1 8+ I'm currently building all USES=java ports with this patch. -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.