1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

*/*: Refactor java/openjdk7 removal

- java/openjdk7* has been removed from the tree since 2022-09-03 however
  the relevant codebases in bsd.java.mk has not been removed and the
  consumers has also not been updated to use the next jdk version. This
  commit updates all relevant consumers to use JAVA_VERSION=8 instead of
  JAVA_VERSION=1.7
- Since the introduction of jdk version 18 it looks like similar with
  jdk version 8(java version string 1.8). This is prone to error as it
  looks similar and is only seperated by a '.'. Remove using
  JAVA_VERSION with dotted fomat of java version string and update all
  consumers to utilize version 8 instead of 1.8.

Approved by:	portmgr (blanket)
This commit is contained in:
Muhammad Moinur Rahman 2023-04-04 13:04:17 -05:00
parent cfff80b529
commit 4cda17ab14
57 changed files with 59 additions and 60 deletions

View File

@ -22,7 +22,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[+] 17[+] 18[+])
# versions. (allowed values: 8[+] 11[+] 17[+] 18[+])
#
# JAVA_OS List of space-separated suitable JDK port operating systems
# for the port. (allowed values: native linux)
@ -159,7 +159,7 @@ SUB_LIST+= JAVA_OS="${JAVA_OS}"
. endif
# The complete list of Java versions, os and vendors supported.
__JAVA_VERSION_LIST= 7 8 11 17 18
__JAVA_VERSION_LIST= 8 11 17 18
_JAVA_VERSION_LIST= ${__JAVA_VERSION_LIST} ${__JAVA_VERSION_LIST:S/$/+/}
_JAVA_OS_LIST= native linux
_JAVA_VENDOR_LIST= openjdk oracle
@ -265,7 +265,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 17+/:S/^17+/17 18+/:S/^18+/18/}
_JAVA_VERSION= ${JAVA_VERSION:S/^8+/8 11+/:S/^11+/11 17+/:S/^17+/17 18+/:S/^18+/18/}
. else
_JAVA_VERSION= ${__JAVA_VERSION_LIST}
. endif

View File

@ -17,7 +17,7 @@ NO_WRKSUBDIR= yes
USES= zip:infozip
USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
NO_BUILD= yes
NO_ARCH= yes

View File

@ -9,7 +9,7 @@ COMMENT= Tile splitter for mkgmap
WWW= https://www.mkgmap.org.uk/doc/splitter.html
USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
NO_BUILD= yes
NO_ARCH= yes

View File

@ -11,7 +11,7 @@ LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENCE
USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
NO_BUILD= yes
NO_ARCH= yes

View File

@ -13,7 +13,7 @@ LICENSE= APACHE20
USES= zip
USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}

View File

@ -22,7 +22,7 @@ USES= compiler:c++11-lang gmake localbase perl5 tar:xz
USE_JAVA= yes
JAVA_RUN= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
WRKSRC_SUBDIR= src
# Upstream Makefile compiles directly into ${DESTDIR}${PREFIX} rather than

View File

@ -14,7 +14,7 @@ LICENSE= MIT
RUN_DEPENDS= samtools:biology/samtools
USE_JAVA= 1.8+
USE_JAVA= 8+
JAVA_RUN= yes
CONFLICTS_INSTALL= picard # bin/picard

View File

@ -20,7 +20,7 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}virtualenv>=0:devel/py-virtualenv@${PY_FLAV
USES= cpe python:3.6+
USE_ANT= yes
USE_JAVA= yes
JAVA_VERSION= 1.8
JAVA_VERSION= 8
JAVA_VENDOR= openjdk
CPE_VENDOR= apache

View File

@ -31,7 +31,7 @@ CPE_VENDOR= apache
CONFLICTS= cassandra3
JAVA_VERSION= 8 11
JAVA_VERSION= 8+
JAVA_VENDOR= openjdk
SUB_LIST= JAVA_HOME=${JAVA_HOME}

View File

@ -67,7 +67,7 @@ JAVA_CONFIGURE_ENV= JAR="${JAR}" \
JAVAC="${JAVAC}"
JAVA_CPPFLAGS= -I"${JAVA_HOME}/include"
JAVA_VARS= DBLIBS+=libdb_java \
JAVA_VERSION="7+"
JAVA_VERSION="8+"
L10N_CONFIGURE_ENABLE= localization
TCL_USES= tcl
TCL_CONFIGURE_ENABLE= tcl

View File

@ -56,7 +56,7 @@ L10N_CONFIGURE_ENABLE= localization
JAVA_USE= java
# db5 is incompatible with openjdk8 and causes IllegalArgument
# exceptions during build
JAVA_VARS= DBLIBS+=libdb_java JAVA_VERSION="1.7"
JAVA_VARS= DBLIBS+=libdb_java JAVA_VERSION="8"
JAVA_CONFIGURE_ENABLE= java
JAVA_CPPFLAGS= -I"${JAVA_HOME}/include"
JAVA_CONFIGURE_ENV= JAVAC="${JAVAC}" JAR="${JAR}" JAVA="${JAVA}" JAVACFLAGS="-Xlint:unchecked"

View File

@ -19,7 +19,7 @@ LICENSE_TEXT= Packaging prohibited by Oracle license
LICENSE_PERMS= auto-accept
USE_JAVA= yes
JAVA_VERSION= 1.7 1.8
JAVA_VERSION= 8
NO_BUILD= yes
NO_WRKSUBDIR= yes

View File

@ -25,7 +25,7 @@ NO_BUILD= yes
CONFLICTS_INSTALL= mysql-connector-java51 # share/java/classes/mysql-connector-java.jar
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
EXTRADOCS= CHANGES
PLIST_FILES= ${JAVAJARDIR}/${PORTNAME}.jar

View File

@ -23,7 +23,7 @@ CONFLICTS_INSTALL= mysql-connector-java # share/java/classes/mysql-connector-jav
NO_ARCH= yes
USE_JAVA= yes
JAVA_VERSION= 1.7 1.8
JAVA_VERSION= 8
BUILDDIR= ${WRKDIR}/${DISTNAME}
APIDOCSDIR= ${STAGEDIR}${DOCSDIR}/javadoc
SRCDIR= ${WRKDIR}/${DISTNAME}/src

View File

@ -14,7 +14,7 @@ LICENSE= APACHE20
USES= zip
USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
NO_BUILD= yes
NO_WRKSUBDIR= yes

View File

@ -14,7 +14,7 @@ WWW= https://ammonite.io/
LICENSE= MIT
USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
NO_ARCH= yes
NO_BUILD= yes

View File

@ -15,7 +15,7 @@ LICENSE= BSD3CLAUSE
NO_BUILD= yes
NO_ARCH= yes
USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
INSTALL_JAR= ${DISTFILES}
SUB_LIST= INSTALL_JAR=${INSTALL_JAR}
SUB_FILES= antlr.sh

View File

@ -54,7 +54,7 @@ WRKSRC_SUBDIR= build
PATCH_WRKSRC= ${WRKSRC}/../
MAKE_ARGS+= -Dlight_bundle=true -Dlocal_sources=true -Dno_arduino_builder=true
USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
USE_ANT= yes
OS_DIR= ${WRKSRC}/linux
BUILD_DIR= ${OS_DIR}/work

View File

@ -21,7 +21,7 @@ USES= cpe shebangfix zip
CPE_VENDOR= jfrog
SHEBANG_FILES= bin/artifactory.sh
USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
JAVA_VENDOR= openjdk
NO_BUILD= yes
NO_ARCH= yes

View File

@ -34,7 +34,7 @@ CPE_VENDOR= google
SHEBANG_REGEX= .*(sh|txt|_stub|stub_.*|bazel|get_workspace_status|protobuf_support|_so)
USE_JAVA= yes
JAVA_VENDOR= openjdk
JAVA_VERSION= 1.8
JAVA_VERSION= 8
JAVA_BUILD= yes
JAVA_RUN= yes

View File

@ -18,7 +18,7 @@ LIB_DEPENDS= libunix-java.so:devel/libmatthew
USES= gettext gmake
USE_JAVA= yes
JAVA_VERSION= 7+
JAVA_VERSION= 8+
MAKE_ARGS= MANPREFIX=${MAN1PREFIX}/share/man/man1
.if defined(WITH_DEBUG)

View File

@ -13,7 +13,7 @@ LICENSE= APACHE20
NO_ARCH= yes
USES= cpe zip
JAVA_VERSION= 1.7+
JAVA_VERSION= 8+
USE_JAVA= yes
NO_BUILD= yes
DATADIR= ${PREFIX}/share/${PORTNAME}${PKGNAMESUFFIX}

View File

@ -14,7 +14,7 @@ WWW= https://www.lihaoyi.com/mill/
LICENSE= MIT
USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
NO_ARCH= yes
NO_BUILD= yes

View File

@ -11,7 +11,7 @@ LICENSE= BSD3CLAUSE
USE_ANT= yes
USE_JAVA= yes
JAVA_VERSION= 1.8
JAVA_VERSION= 8
USE_GITHUB= yes
GH_ACCOUNT= dspinellis
GH_PROJECT= UMLGraph

View File

@ -18,7 +18,7 @@ RUN_DEPENDS= ${JAVALIBDIR}/lwjgl/lwjgl.jar:games/lwjgl \
USES= openal
USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
JAVA_OS= native
JAVA_VENDOR= openjdk

View File

@ -18,7 +18,7 @@ GH_PROJECT= MultiMC5
GH_TUPLE= MultiMC:libnbtplusplus:508eda8:libnbtplusplus/libraries/libnbtplusplus \
MultiMC:quazip:3691d57:quazip/libraries/quazip
USE_LDCONFIG= yes
USE_JAVA= 1.8+
USE_JAVA= 8+
USE_QT= core concurrent gui network testlib:build widgets xml \
buildtools:build qmake:build

View File

@ -31,7 +31,7 @@ LICENSE_PERMS_JYTHON= auto-accept
USES= zip
USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
NO_ARCH= yes
NO_BUILD= yes

View File

@ -18,7 +18,7 @@ LICENSE_PERMS= no-dist-mirror no-dist-sell no-pkg-mirror no-pkg-sell auto-accept
USES= cpe zip
CPE_VENDOR= yworks
USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
DESKTOP_ENTRIES="yEd" "${COMMENT}" "" "yed" "Graphics;" false

View File

@ -19,7 +19,7 @@ USES= zip
USE_JAVA= YES
JAVA_OS= native
JAVA_RUN= YES
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
NO_BUILD= YES
NO_WRKSUBDIR= YES

View File

@ -16,7 +16,7 @@ RUN_DEPENDS= ${LOCALBASE}/bin/eclipse:java/eclipse
USES= python zip
USE_JAVA= YES
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
JAVA_OS= native
JAVA_RUN= YES

View File

@ -1,6 +1,6 @@
NO_BUILD= yes
USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
REPO_DIRS?= features plugins
@ -9,4 +9,3 @@ do-install:
@(cd ${WRKSRC}; ${COPYTREE_SHARE} "${REPO_DIRS}" ${STAGEDIR}${PREFIX}/share/eclipse/dropins/${PORTNAME}/eclipse/)
@(cd ${STAGEDIR}${PREFIX}; ${FIND} -s share/eclipse/dropins/${PORTNAME} -not -type d) >> ${TMPPLIST}
@(cd ${STAGEDIR}${PREFIX}; ${FIND} -s -d share/eclipse/dropins/${PORTNAME} -type d -empty) | ${SED} -ne 's,^,@dir ,p' >> ${TMPPLIST}

View File

@ -20,7 +20,7 @@ GH_ACCOUNT= inevity
GH_TAGNAME= e8041b5
USE_JAVA= yes
JAVA_VERSION= 1.8
JAVA_VERSION= 8
USE_LDCONFIG= yes
USES= gmake shebangfix

View File

@ -16,7 +16,7 @@ LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
USES= desktop-file-utils zip:infozip
NO_BUILD= yes
USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
WRKSRC= ${WRKDIR}/visualvm_${PORTVERSION:S/.//g}
SUB_FILES= visualvm.desktop

View File

@ -12,7 +12,7 @@ LICENSE= GPLv2
USE_RC_SUBR= wildfly14
USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
USER= www
GROUP= www
VAR_DIR?= /var

View File

@ -13,7 +13,7 @@ LICENSE= GPLv2
USE_RC_SUBR= wildfly15
USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
USER= www
GROUP= www
VAR_DIR?= /var

View File

@ -13,7 +13,7 @@ LICENSE= GPLv2
USE_RC_SUBR= wildfly16
USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
USER= www
GROUP= www
VAR_DIR?= /var

View File

@ -13,7 +13,7 @@ LICENSE= GPLv2
USE_RC_SUBR= wildfly17
USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
USER= www
GROUP= www
VAR_DIR?= /var

View File

@ -13,7 +13,7 @@ LICENSE= GPLv2
USE_RC_SUBR= wildfly18
USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
USER= www
GROUP= www
VAR_DIR?= /var

View File

@ -13,7 +13,7 @@ LICENSE= GPLv2
USE_RC_SUBR= wildfly24
USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
USER= www
GROUP= www
VAR_DIR?= /var

View File

@ -13,7 +13,7 @@ LICENSE= GPLv2
USE_RC_SUBR= wildfly25
USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
USER= www
GROUP= www
VAR_DIR?= /var

View File

@ -13,7 +13,7 @@ LICENSE= GPLv2
USE_RC_SUBR= wildfly26
USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
USER= www
GROUP= www
VAR_DIR?= /var

View File

@ -14,7 +14,7 @@ RUN_DEPENDS= bash:shells/bash \
rlwrap:devel/rlwrap
USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
NO_ARCH= yes
NO_BUILD= yes

View File

@ -16,7 +16,7 @@ RUN_DEPENDS= bash:shells/bash
USES= cpe
USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
NO_BUILD= yes
JRUBY_HOME?= ${PREFIX}/share/${PORTNAME}

View File

@ -15,7 +15,7 @@ RUN_DEPENDS= bash:shells/bash
USES= cpe
CPE_VENDOR= ${PORTNAME}-lang
USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
NO_ARCH= yes
NO_BUILD= yes

View File

@ -14,7 +14,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE.TXT
USES= cpe zip
USE_JAVA= yes
JAVA_VERSION= 1.8
JAVA_VERSION= 8
JAVA_RUN= yes
USE_RC_SUBR= openhab2
SUB_FILES= pkg-message update.freebsd

View File

@ -21,7 +21,7 @@ USE_GITHUB= YES
GH_ACCOUNT= igniterealtime
GH_PROJECT= Openfire
USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
USE_RC_SUBR= ${PORTNAME}
NO_ARCH= yes

View File

@ -15,7 +15,7 @@ USES= tar:bzip2
NO_BUILD= yes
NO_ARCH= yes
USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
SUB_LIST= JAVA_HOME=${JAVA_HOME}

View File

@ -19,7 +19,7 @@ RUN_DEPENDS= ffmpeg:multimedia/ffmpeg
NO_BUILD= yes
USE_JAVA= yes
JAVA_VERSION= 1.8
JAVA_VERSION= 8
USES= dos2unix
DOS2UNIX_GLOB= derby.properties

View File

@ -12,7 +12,7 @@ WWW= https://www.digdag.io/
LICENSE= APACHE20
USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
JAVA_VENDOR= openjdk
JAVA_RUN= yes
USE_RC_SUBR= ${PORTNAME}

View File

@ -29,7 +29,7 @@ USE_RC_SUBR= puppetserver
USE_JAVA= yes
NO_ARCH= yes
NO_BUILD= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
CONFLICTS_INSTALL= puppetserver7

View File

@ -26,7 +26,7 @@ USE_RC_SUBR= puppetserver
USE_JAVA= yes
NO_ARCH= yes
NO_BUILD= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
CONFLICTS_INSTALL= puppetserver5 puppetserver6

View File

@ -16,7 +16,7 @@ DEPRECATED= unmaintained and newer version available in sysutils/rundeck3
EXPIRATION_DATE= 2023-05-17
USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
CONFLICTS_INSTALL= rundeck3

View File

@ -18,7 +18,7 @@ EXPIRATION_DATE= 2023-09-23
USES= cpe
CPE_VENDOR= pagerduty
USE_JAVA= yes
JAVA_VERSION= 8 11
JAVA_VERSION= 8+
USE_RC_SUBR= rundeck
CONFLICTS_INSTALL= rundeck2

View File

@ -49,7 +49,7 @@ EXTRACT_AFTER_ARGS= libresonic.war
NO_WRKSUBDIR= yes
NO_BUILD= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
JAVA_RUN= yes
# Don't waste UID/GID and reuse Subsonic's user.
USERS= subsonic

View File

@ -11,7 +11,7 @@ LICENSE_COMB= dual
USES= zip
USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
NO_BUILD= yes
WRKSRC= ${WRKDIR}/payara5

View File

@ -16,7 +16,7 @@ USES= cpe
CPE_VENDOR= jenkins
USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
JAVA_RUN= yes
USE_RC_SUBR= selenium

View File

@ -16,7 +16,7 @@ RUN_DEPENDS= jsvc:devel/apache-commons-daemon
USES= cpe
CPE_VENDOR= apache
USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 8+
USE_RC_SUBR= ${PKGBASE:C/-/_/}
NO_ARCH= yes