From nobody Fri Apr 03 10:03:36 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 4fnDnh4HfSz6Y8wd 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 4fnDnh3dTmz42Bs 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=c+DtCpPDOiIgvUmMgl4ohBLJgKzmLPxwt855O7GF++4=; b=SOBgp0W2RvdcB6xnlZUEqP+CGJ9MtTWsVQ6tQjNBiQSg2gHIHSb5onKRwGoi50VVDCwmUX iMwqQUSPAv/Z72MhXM5+n/M/ZAlcR75th1yuGhXcnf9Y3r0KnBd0qu+z5JXKmda34ynR2Z lffO4sbVa2sDZLeTyL01VFNIyoqNfSBQ6UY9o9Ae0wEFsSR0d3ZECHrgjuhIQEhNLpZadR wQ+YVKmcp/fKr+pdvLO8wypUMCmOhrWmTMLD//5Xl1+XmL2x2CqrDAxOr4knAQuLSkRjqz QweBKKuMxy+fblpknbA9ateT9qxB7J9mO8ZVvFuf0ka+BGjtqhBM34U43aUjUw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1775210616; a=rsa-sha256; cv=none; b=FtywKDj1LV2eP8gPaNEupNgXXXxhjNCpHK8cn3OHlAo1Cqu6t2b8NsHdn6W2fjShexWcKI pkPpdOqvyIPBmc3YHp4iolwLIaIx0L3nfUy7DyN2GMy2g+9nMRFQKqxBnyJW86G9C926Yf SWQy3kdsAkMZAoeuW22dfNDEJOIipRemofFoKXl5yLNuWeDiDxIDH9UjEiyHSEdLdzNzU7 cGMcl8ELrvV0v3c7l3Y6WLMB+9on1j6gCYAGJivGJmYh9iDzmTvQEcRZSZmz3GTkAhpn9Y NZtVHpPoa/Z7fBuOdWlOizC2PBql6Lmqs0ZclFYDo/fmB6+u/jAqyiM6+kWh0Q== 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=c+DtCpPDOiIgvUmMgl4ohBLJgKzmLPxwt855O7GF++4=; b=Qwfmgql95L4UIyx2XDtAPxz08JL19K1Lm65tRd7le4lDF4RUNoc/iactwQu/ZHBL8178HB Etm2Cxz1tfX/6C0Hbkrb5pGcywale2qd9hFx38ml1r/5j/09n0XI2syEbnU1vYriMII55a 32plTbfuuM3l1zzPejDquA+VBN01M8aAV1XW2l+d/msfxV5WgI46uSHwtvIT9lsd9Lfc7T tqOQ6FlXsilgmrapN0ziV+EIyorLLzggZiFW5gTtgWd2e0FkiSdCMfLYatXkmjEa9BslDF xIZlQdfoHtqt/PXUOCveUoCOE4d1Q8+nMsJAmpnVMVQFwIZ2g7gc8zYMBYg8Vg== 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 4fnDnh2xX8zkqG 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 633A3avj098421 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 633A3aea098420 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 From: bugzilla-noreply@freebsd.org To: java@FreeBSD.org Subject: [Bug 293756] Mk/Uses/java.mk: prefer latest LTS openjdk Date: Fri, 03 Apr 2026 10:03:36 +0000 X-Bugzilla-Reason: 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: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ronald@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete bug_status assigned_to cc flagtypes.name 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=3D293756 Ronald Klop changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #268746|0 |1 is obsolete| | Status|New |In Progress Assignee|portmgr@FreeBSD.org |ronald@FreeBSD.org CC| |java@FreeBSD.org Attachment #269337| |maintainer-approval?(java@F Flags| |reeBSD.org) --- 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? --=20 You are receiving this mail because: You are on the CC list for the bug.=