Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Nov 2021 06:51:14 GMT
From:      Greg Lewis <glewis@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: f10d7de2125b - main - Mk/bsd.java.mk: Add support for openjdk17 and 17[+] as a version
Message-ID:  <202111240651.1AO6pExn046402@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by glewis:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f10d7de2125b711fb628c6a29e42b7f8246d43a5

commit f10d7de2125b711fb628c6a29e42b7f8246d43a5
Author:     Greg Lewis <glewis@FreeBSD.org>
AuthorDate: 2021-11-24 06:49:41 +0000
Commit:     Greg Lewis <glewis@FreeBSD.org>
CommitDate: 2021-11-24 06:49:41 +0000

    Mk/bsd.java.mk: Add support for openjdk17 and 17[+] as a version
    
    PR:             259167
    Reported by:    cedric@precidata.com
---
 Mk/bsd.java.mk | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/Mk/bsd.java.mk b/Mk/bsd.java.mk
index b558be790db5..188d7714dbe4 100644
--- a/Mk/bsd.java.mk
+++ b/Mk/bsd.java.mk
@@ -24,7 +24,7 @@ Java_Include_MAINTAINER=	java@FreeBSD.org
 # JAVA_VERSION		List of space-separated suitable java versions for the
 #					port. An optional "+" allows you to specify a range of
 #					versions. (allowed values: 7[+] 8[+] 11[+] 12[+] 13[+]
-#					14[+] 15[+] 16[+])
+#					14[+] 15[+] 16[+] 17[+])
 #
 # JAVA_OS			List of space-separated suitable JDK port operating systems
 #					for the port. (allowed values: native linux)
@@ -161,7 +161,7 @@ SUB_LIST+=		JAVA_OS="${JAVA_OS}"
 .		endif
 
 # The complete list of Java versions, os and vendors supported.
-__JAVA_VERSION_LIST=	7 8 11 12 13 14 15 16
+__JAVA_VERSION_LIST=	7 8 11 12 13 14 15 16 17
 _JAVA_VERSION_LIST=		${__JAVA_VERSION_LIST} ${__JAVA_VERSION_LIST:S/$/+/}
 _JAVA_OS_LIST=			native linux
 _JAVA_VENDOR_LIST=		openjdk oracle
@@ -184,6 +184,8 @@ _JAVA_PORT_NATIVE_OPENJDK_JDK_15_INFO=		PORT=java/openjdk15			HOME=${LOCALBASE}/
 											VERSION=15	OS=native	VENDOR=openjdk
 _JAVA_PORT_NATIVE_OPENJDK_JDK_16_INFO=		PORT=java/openjdk16			HOME=${LOCALBASE}/openjdk16 \
 											VERSION=16	OS=native	VENDOR=openjdk
+_JAVA_PORT_NATIVE_OPENJDK_JDK_17_INFO=		PORT=java/openjdk17			HOME=${LOCALBASE}/openjdk17 \
+											VERSION=17	OS=native	VENDOR=openjdk
 _JAVA_PORT_LINUX_ORACLE_JDK_8_INFO=		PORT=java/linux-oracle-jdk18	HOME=${LOCALBASE}/linux-oracle-jdk1.8.0 \
 											VERSION=8	OS=linux	VENDOR=oracle
 
@@ -199,6 +201,7 @@ _JAVA_OS_linux=		Linux
 __JAVA_PORTS_ALL=	\
 					JAVA_PORT_NATIVE_OPENJDK_JDK_8  \
 					JAVA_PORT_NATIVE_OPENJDK_JDK_11 \
+					JAVA_PORT_NATIVE_OPENJDK_JDK_17 \
 					JAVA_PORT_NATIVE_OPENJDK_JDK_12 \
 					JAVA_PORT_NATIVE_OPENJDK_JDK_13 \
 					JAVA_PORT_NATIVE_OPENJDK_JDK_14 \
@@ -279,7 +282,7 @@ JAVA_RUN=	jre
 .		undef _JAVA_PORTS_INSTALLED
 .		undef _JAVA_PORTS_POSSIBLE
 .		if defined(JAVA_VERSION)
-_JAVA_VERSION=	${JAVA_VERSION:S/1.7+/1.7 1.8+/:S/1.8+/1.8 11+/:S/1.7/7/:S/1.8/8/:S/7+/7 8+/:S/8+/8 11+/:S/11+/11 12+/:S/12+/12 13+/:S/13+/13 14+/:S/14+/14 15+/:S/15+/15 16+/:S/16+/16/}
+_JAVA_VERSION=	${JAVA_VERSION:S/1.7+/1.7 1.8+/:S/1.8+/1.8 11+/:S/1.7/7/:S/1.8/8/:S/7+/7 8+/:S/8+/8 11+/:S/11+/11 12+/:S/12+/12 13+/:S/13+/13 14+/:S/14+/14 15+/:S/15+/15 16+/:S/16+/16 17+/:S/17+/17/}
 .		else
 _JAVA_VERSION=	${__JAVA_VERSION_LIST}
 .		endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111240651.1AO6pExn046402>