From nobody Sat Mar 7 13:28:38 2026 X-Original-To: java@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4fSkcm6TSxz6TVJ9 for ; Sat, 07 Mar 2026 13:28:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fSkcm3B9lz3Kr2 for ; Sat, 07 Mar 2026 13:28:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1772890120; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MkAtsLcnxwE5pcwTbNCzBG8KIDH7s4gm39IvVgBD0wU=; b=WJkw8pzY/8HcPqRRwxgEVGGRGR8SBU7EuT1DiU/a+0p3XoD1UBrkSuZKD3fDoJv8UVTmak 7Fb/S+W6nOO9HJTPCHhCnDOKxBSzHdXcp0x11LFdXl+HmLRaBlTwo8DSzvQP9mxGjFKuIp ojmvWjvmcUnmBfIxTGQ4WtruSZtoT7LUM/0AY3uxzIDZiUgtGdqOVKfOcOEt11hzfJFwEe grYC6cP1iJOD2OaTD1ZoLpobYWE+fzQKkDS6avm21k8ZlfP1/wmz3ctuJvaK3/cHn2VQv6 XURfSsB6GZY6/YiYvfHQYQtRrh5o1diIs0ulB0bsSx0kXVoxzOvvtiXxpzDg+A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1772890120; a=rsa-sha256; cv=none; b=qYoUZdixZhoNkD4gtzy+KiVs1eCvsebQb6UYeP5q/L9pbefSF3ctIbI848+kfP5K/lENzy 46uqCLOYbwn53rRzmujMJW87u9+UjVYjALyqkVG78eGXkUaXxTf3Y0A3Wyyf0R1H6/WSey d8p28pzgm371rpTkTuwicDSZ4ttR3DYdKqKzxvcakXJcqUhxKwsAa0Pe/BeWokrM2z/kRj IhtEDBF/wT+9rOpmGgfbRJJumKoNwPi1wMNQ7sp+dM7s2e5R6/FgL4UwSonmzAG5xW418l OkT2Le2AfzfWiwYNHcYUHsDpqly5SaZkH1chpU1DqAISknm7s2ROfM//8+YGIw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1772890120; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MkAtsLcnxwE5pcwTbNCzBG8KIDH7s4gm39IvVgBD0wU=; b=JsSrCk6mH2/pE8M27nShGWcA/iMefrBVjgXscsXs4Z9RFQ0P1Sm7nH/Fv5I5SjIZnRTdjM /WsJY9o8PVDzA0omkAtXZjBn+S1s+IeVEh7fYH6JCfYkMTh7bgipDGH6I8hn/7NoQWAlNn PkTaHBLncXLrJby0vjvyyK35clIkTi/aiMPK1tsEbEyLGTLLaZY8CgwTT28m9AHyKGxnrd MkQNnTO0Xie8Dvb2/QNVOa+HRckDJjDt4F2Vt8FKb6u22r5rhh3CB7MS2nzqHfsklL5Tqr /L11qRFNCt0gMvmf9WbT6JHjqTx6+EyO7+84aipRQaV8+nk0mMwDIrDVF18JQQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4fSkcm28v2z19Kv for ; Sat, 07 Mar 2026 13:28:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 627DSeBj050166 for ; Sat, 7 Mar 2026 13:28:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 627DSepk050165 for java@FreeBSD.org; Sat, 7 Mar 2026 13:28:40 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: java@FreeBSD.org Subject: [Bug 289858] Mk/Uses/java.mk: Use JAVA_VERSION as priority Date: Sat, 07 Mar 2026 13:28:38 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Ports Framework X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: ronald@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: java@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Porting Java to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-java List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-java@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D289858 --- Comment #8 from Ronald Klop --- Created attachment 268599 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D268599&action= =3Dedit 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=3D8 11, prefer 11 3. JAVA_VERSION=3D17+, 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=3Djava: 292=20=20 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=3Djava ports with this patch. --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.=