From nobody Fri Apr 03 10:03:35 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 4fnDnh21kNz6Y973 for ; Fri, 03 Apr 2026 10:03:36 +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 4fnDnh1Y4Cz42FZ for ; Fri, 03 Apr 2026 10:03:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1775210616; 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=mRKn0Wfqk26QWe7BMHAwNCWegrCyb/f2zKRra88tqGk=; b=clGEwtxUs91Ms2tCqe2mPYxQHY9GfZTpDbKZS/ZySxja0BRn8P6BnwaJP0QtK8Gn0qaJnL ODAORWNIchfFk/p3+nMB34PqQYZz0V5N/HEXyTP8aLglzN/exwuU7Yw2LA6JsNRvXHgHli Brmj68Yms987wmkwImeZjOGvRYMPgd0mf6fTdS92ppD0yGTzdg2B80x1sn/klMvsOCcOnv lob0FVkTlRtHMEiRNAaHO+//YcCVHTs1/IL5TcXuf7tvyM+dAekxdYolF9PqbgpVDuLXFW ctgHqMzx5RwmNDU6v0sggB2kb8e1HnoffE84nx+Hg8NimQKE5Lau3Ivl5tYp/w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1775210616; a=rsa-sha256; cv=none; b=rsLyw5NvjXDKHxUj/AZBA+onInBLg7UvlIHig5RBeUOPqrc6nUK/IherWgfwShQuMKvdz8 6y6e2mPNW21yBpPm0P9uFLUrx/86ii/+SY3YAcZVWxHSyIev23tE94PHR5ed2J+Ow92jLK rH1K6Xobb8Ct+WVpVWuMDEB5MFxOrgphGQtP1P4s/yY4CV0lrzPuMZKMX4/wpMcfFcY3XE UTKdCA6Hmjr6lFFssABvPe+5sgV6RVi23fh0ScywEk/pXWHIB1m+0RLLICVdtum0aOu3DX PPVTXLuiywIfVwgtN6Vtr6TXBpVDvPN26q+wo+8LpGX3kujAh6zZmewTwtYznw== 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=1775210616; 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=mRKn0Wfqk26QWe7BMHAwNCWegrCyb/f2zKRra88tqGk=; b=lIM+l8YH1oXERUNarLUxTcY5uskuTahQCDhIQOnNg27FTL7oMM7TYIovylha9IhxGmknVw +JRjxDBp0NWDMmMo2VepkiIcUZ+CzLXdfxwx4TqzJRi8bgkGQOWj04qk5E/FrmfvjsptYV s67l4Um9LNoLTwMv6gAs3hVWTQh9C+HamF/Crc3q26KjkQJwJgmNwiqJtCL9hS6/3tSAB9 wex9V6qjBVfgfD814dAgDLpBWYKf/pfT1QE7kn6CrNb3VrP4IEE+uKzWlWnwy3VvvGAHOS bhYTXupJ+qx2/xIho5D6EIXXVTBp1JiOtITDUeEpCCSonYy8H7W78zdJHJy7eQ== 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 4fnDnh18rCzklT for ; Fri, 03 Apr 2026 10:03:36 +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 633A3aag098411 for ; Fri, 3 Apr 2026 10:03:36 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 633A3abR098408 for java@FreeBSD.org; Fri, 3 Apr 2026 10:03:36 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: java@FreeBSD.org Subject: maintainer-approval requested: [Bug 293756] Mk/Uses/java.mk: prefer latest LTS openjdk : [Attachment 269337] git diff to change the order of preferred java version Date: Fri, 03 Apr 2026 10:03:35 +0000 X-Bugzilla-Type: request 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: X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ronald@FreeBSD.org X-Bugzilla-Flags: Message-ID: In-Reply-To: References: 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 Ronald Klop has asked freebsd-java (Nobody) for maintainer-approval: Bug 293756: Mk/Uses/java.mk: prefer latest LTS openjdk https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D293756 Attachment 269337: git diff to change the order of preferred java version https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D269337&action=3Dedit --- Comment #6 from Ronald Klop --- Created attachment 269337 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D269337&action= =3Dedit git diff to change the order of preferred java version Ok, I incorporated the remarks you have. See attachment for new patch. This patch does not change anything about the usage of JAVA_DEFAULT. JAVA_DEFAULT is still used as the preferred jdk, as it is currently. The only thing the patch does is re-order the LTS/non-LTS versions. Java.mk used to prefer the oldest jdk in the JAVA_VERSION range. Now it pre= fers LTS over non-LTS and it prefers newer versions over older versions. Old: JAVA_DEFAULT=3D21 JAVA_VERSION=3D8 11 17 22 =3D> 8 (prefer oldest) JAVA_DEFAULT=3D21 JAVA_VERSION=3D17 21 25 =3D> 21 (prefer DEFAULT) JAVA_DEFAULT=3D21 JAVA_VERSION=3D22 25 =3D> 22 (prefer oldest) New: JAVA_DEFAULT=3D21 JAVA_VERSION=3D8 11 17 22 =3D> 17 (prefer latest LTS) JAVA_DEFAULT=3D21 JAVA_VERSION=3D17 21 25 =3D> 21 (no change, prefer DEFAUL= T) JAVA_DEFAULT=3D21 JAVA_VERSION=3D22 25 =3D> 25 (prefer LTS) Taking into account what JDKs are already installed is unchanged and still works as intended. Of the 485 ports with USES=3Djava this change will only affect these 17 por= ts: biology/gkl: 8 11 databases/cassandra4: 8 11 devel/argouml: 8 11 17 18 devel/gradle5: 8 11 devel/jetbrains-sqlite: 17 21 devel/spark: 8 11 17 java/apache-commons-collections: 8 11 17 18 19 20 lang/kawa: 8 11 math/jacop: 8 11 17 misc/jbidwatcher: 8 11 multimedia/kodi: 8 11 net/activemq: 21 17 net/seda: 8 11 17 21 net/spread-j: 8 11 sysutils/logstash7: 17 11 8 sysutils/rundeck: 11 17 textproc/elasticsearch7: 21 17 11 8 All other java ports already compile with JAVA_DEFAULT or are pinned to a specific jdk. I will do some test runs to make sure everything still compiles. Can you review the patch in the meantime?