From nobody Sat Mar 7 16:11:39 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 4fSpDq5n24z6Tj9d for ; Sat, 07 Mar 2026 16:11:39 +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 4fSpDq5DxGz3ZRp for ; Sat, 07 Mar 2026 16:11:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1772899899; 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=jGaKeqqFXYfnxvqwx0WckZxtCPURfdZnXJCf0sTWlcs=; b=xURJR2UtLC1JYfaLwmLzktsMFT3+rhLZsWckN8d7AX4Z1znXwbhExR6rNSWMHItPCs8v8g P1GBUuDSqUcQQ0BR78orC/+OTgEwha9Bu1Z7tEdWGYxkI5jk/mOQSLDc45CTCKrxqLBQ0K 4VRVZ9XJnoeGFLT9MWV7w7jyIIeRdpyEh6uiNO6C+adLfMUwxxVi/sxvRHco5ekAi3h1Ah 8whF1cnheHwrDlXE2a3pXdKEXRJYm52YrLVqZwiPIMXBcZZfXAqZuoy3sVVRwi4fR+oe3C J/siI5aJyLJYypQ3xPWaZ4Ocf+wgyz3uyMsvEQFLxl1Ojnp4DesNGe2fpu5fxA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1772899899; a=rsa-sha256; cv=none; b=FIBbwgYS/EF/aTGa9kRaHjLNQV7xoVnPput1yIIyMTkro1Wwn+Gvhdl8Xzrul13Lhf+ObW CYs4Bqxc1w5UwjtE3Au7SGH9mS4HrKkkamIWn7eqJ/5e3W9SGvP9ixeT9T7CIP3oCilzHX oDC6da7U0c5WyvnX1YTYE6Wz0D4BNghw4g/1iyUwrOcjraQGznnQE9+QM7UogUVWdtvYzb 0TOFZJnKl5i2XCtGjdn20guiSCV84pkL4zpV8gO4EbRJpTZB8LN5+Xg1NuH0H29LPJJMwK OkgLMFlDK0KyoVMU4OIBLH4oo+bfsVNVgI9OYSC2ix0Sl+QLoxO3N4oq24DO/A== 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=1772899899; 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=jGaKeqqFXYfnxvqwx0WckZxtCPURfdZnXJCf0sTWlcs=; b=jn4sCnS4LqweuAtRlDhNO7muo7Q28wqe9XWSQBwK31tRKNbVO9mVIbKQOEa8xq8s56kf6z nfAvbilEUY6A1UTX5unojiJi2nozbN2IGe+BimcVfTtpqgflbzRO04bkfrIj31Q7rz1A9G J2Aj4CkQgAwENgbhdjS6jfvL8JZc3qVt2pkQZFmt4HJxwftMFNgaNL3K1+aKsh/NeSvgbU BWqUpR4N03ed6N0/Tf0P5aYgmj7qdBNhnn5SpKDC3GlqJy0aN8FpvREftnECLsHv9QX6hi Ds+uCBXEnQqkr9bOBx2jGnKd94CfBvzXmgqaxYYsSqT+AV2DxYsVmmkeC/WZjA== 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 4fSpDq4r1vz1Vx for ; Sat, 07 Mar 2026 16:11:39 +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 627GBdlY097076 for ; Sat, 7 Mar 2026 16:11:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 627GBdJu097075 for java@FreeBSD.org; Sat, 7 Mar 2026 16:11:39 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 16:11:39 +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: 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 #10 from Ronald Klop --- (In reply to Vladimir Druzenko from comment #9) > > 3. JAVA_VERSION=3D17+, prefer 25 (latest) > > Option 3 will be more progressive when a new JDK is added to the tree. > IMHO, pick JAVA_DEFAULT if it in range or latest LTS in range. > JAVA_DEFAULT=3D21: > "8 11 17 18 19 20" =3D> 17 > "21 17 25" =3D> 21 Picking the latest LTS from the range can be done by ordering the non-LTS versions later in the __JAVA_PORTS_ALL list in java.mk. Sounds reasonable to me. I'm not sure that we need to pick JAVA_DEFAULT if it is in range. I prefer latest LTS if in range. And only use JAVA_DEFAULT if no JAVA_VERSION is def= ined in the port. 1. no JAVA_VERSION set, use JAVA_DEFAULT (21) 2. JAVA_VERSION=3D8 11 20, use 11 (latest LTS) JAVA_VERSION=3D20 23 24, use (latest non-LTS) 3. JAVA_VERSION=3D17+, use 25 (latest LTS) This still looks at what is already installed. This mechanism doesn't chang= e in my patch. > All the proposed options fail to solve one problem: how to build a specif= ic port with a specific version of Java, and another port with a different = version, all on the same host. > Moreover, both ports support both versions of Java. > I also want to avoid the need for the end user to manually edit the port = to achieve this goal. Do you have an example of this use case? Users can use /etc/make.conf to override JAVA_VERSION for any port they want. And we have multiple ports wh= ere port A uses JDK-X and dependent port B uses JDK-Y. --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.=