FreeBSD Bugzilla – Attachment 205692 Details for
Bug 238758
Update for bsd.java.mk
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Overall Patch
java.diff (text/plain), 9.39 KB, created by
Greg Lewis
on 2019-07-11 12:11:03 UTC
(
hide
)
Description:
Overall Patch
Filename:
MIME Type:
Creator:
Greg Lewis
Created:
2019-07-11 12:11:03 UTC
Size:
9.39 KB
patch
obsolete
>Index: Mk/bsd.java.mk >=================================================================== >--- Mk/bsd.java.mk (revision 506407) >+++ Mk/bsd.java.mk (working copy) >@@ -25,13 +25,14 @@ > # > # JAVA_VERSION List of space-separated suitable java versions for the > # port. An optional "+" allows you to specify a range of >-# versions. (allowed values: 1.6[+] 1.7[+] 1.8[+]) >+# versions. (allowed values: 6[+] 7[+] 8[+] 9[+] 10[+] >+# 11[+] 12[+]) > # > # JAVA_OS List of space-separated suitable JDK port operating systems > # for the port. (allowed values: native linux) > # > # JAVA_VENDOR List of space-separated suitable JDK port vendors for the >-# port. (allowed values: openjdk oracle sun) >+# port. (allowed values: openjdk oracle) > # > # JAVA_BUILD When set, it means that the selected JDK port should be > # added to build dependencies for the port. >@@ -54,11 +55,11 @@ > # > # JAVA_PORT The name of the JDK port. (e.g. 'java/openjdk6') > # >-# JAVA_PORT_VERSION The version of the JDK port. (e.g. '1.6') >+# JAVA_PORT_VERSION The version of the JDK port. (e.g. '6') > # > # JAVA_PORT_OS The operating system used by the JDK port. (e.g. 'linux') > # >-# JAVA_PORT_VENDOR The vendor of the JDK port. (e.g. 'sun') >+# JAVA_PORT_VENDOR The vendor of the JDK port. (e.g. 'openjdk') > # > # JAVA_PORT_OS_DESCRIPTION Description of the operating system used by the > # JDK port. (e.g. 'Linux') >@@ -76,7 +77,7 @@ > # '/usr/local/openjdk6/bin/jar' or '/usr/local/bin/fastjar') > # > # APPLETVIEWER Path to the appletviewer utility. (e.g. >-# '/usr/local/linux-jdk1.7.0/bin/appletviewer') >+# '/usr/local/linux-jdk1.8.0/bin/appletviewer') > # > # JAVA Path to the java executable. Use this for executing Java > # programs. (e.g. '/usr/local/openjdk6/bin/java') >@@ -130,6 +131,9 @@ > > . if defined(USE_JAVA) > >+. if !defined(JAVA_VERSION) && empty(USE_JAVA:C/[0-9]*[\.]*[0-9]*[+]*//) >+JAVA_VERSION=${USE_JAVA} >+. endif > > #------------------------------------------------------------------------------- > # Stage 1: Define constants >@@ -159,28 +163,33 @@ > . endif > > # The complete list of Java versions, os and vendors supported. >-__JAVA_VERSION_LIST= 1.6 1.7 1.8 1.9 >+__JAVA_VERSION_LIST= 6 7 8 9 10 11 12 > _JAVA_VERSION_LIST= ${__JAVA_VERSION_LIST} ${__JAVA_VERSION_LIST:S/$/+/} > _JAVA_OS_LIST= native linux >-_JAVA_VENDOR_LIST= openjdk oracle sun >+_JAVA_VENDOR_LIST= openjdk oracle > > # Set all meta-information about JDK ports: > # port location, corresponding JAVA_HOME, JDK version, OS, vendor >-_JAVA_PORT_NATIVE_OPENJDK_JDK_1_6_INFO= PORT=java/openjdk6 HOME=${LOCALBASE}/openjdk6 \ >- VERSION=1.6.0 OS=native VENDOR=openjdk >-_JAVA_PORT_NATIVE_OPENJDK_JDK_1_7_INFO= PORT=java/openjdk7 HOME=${LOCALBASE}/openjdk7 \ >- VERSION=1.7.0 OS=native VENDOR=openjdk >-_JAVA_PORT_NATIVE_OPENJDK_JDK_1_8_INFO= PORT=java/openjdk8 HOME=${LOCALBASE}/openjdk8 \ >- VERSION=1.8.0 OS=native VENDOR=openjdk >-_JAVA_PORT_LINUX_ORACLE_JDK_1_8_INFO= PORT=java/linux-oracle-jdk18 HOME=${LOCALBASE}/linux-oracle-jdk1.8.0 \ >- VERSION=1.8.0 OS=linux VENDOR=oracle >-_JAVA_PORT_LINUX_ORACLE_JDK_1_9_INFO= PORT=java/linux-oracle-jdk9 HOME=${LOCALBASE}/linux-oracle-jdk9 \ >- VERSION=1.9.0 OS=linux VENDOR=oracle >+_JAVA_PORT_NATIVE_OPENJDK_JDK_6_INFO= PORT=java/openjdk6 HOME=${LOCALBASE}/openjdk6 \ >+ VERSION=6 OS=native VENDOR=openjdk >+_JAVA_PORT_NATIVE_OPENJDK_JDK_7_INFO= PORT=java/openjdk7 HOME=${LOCALBASE}/openjdk7 \ >+ VERSION=7 OS=native VENDOR=openjdk >+_JAVA_PORT_NATIVE_OPENJDK_JDK_8_INFO= PORT=java/openjdk8 HOME=${LOCALBASE}/openjdk8 \ >+ VERSION=8 OS=native VENDOR=openjdk >+_JAVA_PORT_NATIVE_OPENJDK_JDK_11_INFO= PORT=java/openjdk11 HOME=${LOCALBASE}/openjdk11 \ >+ VERSION=11 OS=native VENDOR=openjdk >+_JAVA_PORT_NATIVE_OPENJDK_JDK_12_INFO= PORT=java/openjdk12 HOME=${LOCALBASE}/openjdk12 \ >+ VERSION=12 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 >+_JAVA_PORT_LINUX_ORACLE_JDK_9_INFO= PORT=java/linux-oracle-jdk9 HOME=${LOCALBASE}/linux-oracle-jdk9 \ >+ VERSION=9 OS=linux VENDOR=oracle >+_JAVA_PORT_LINUX_ORACLE_JDK_10_INFO= PORT=java/linux-oracle-jdk10 HOME=${LOCALBASE}/linux-oracle-jdk10 \ >+ VERSION=10 OS=linux VENDOR=oracle > > # Verbose description for each VENDOR > _JAVA_VENDOR_openjdk= "OpenJDK BSD Porting Team" > _JAVA_VENDOR_oracle= Oracle >-_JAVA_VENDOR_sun= Sun > > # Verbose description for each OS > _JAVA_OS_native= Native >@@ -187,11 +196,14 @@ > _JAVA_OS_linux= Linux > > # List all JDK ports in order of preference >-__JAVA_PORTS_ALL= JAVA_PORT_NATIVE_OPENJDK_JDK_1_8 \ >- JAVA_PORT_NATIVE_OPENJDK_JDK_1_7 \ >- JAVA_PORT_NATIVE_OPENJDK_JDK_1_6 \ >- JAVA_PORT_LINUX_ORACLE_JDK_1_8 \ >- JAVA_PORT_LINUX_ORACLE_JDK_1_9 >+__JAVA_PORTS_ALL= JAVA_PORT_NATIVE_OPENJDK_JDK_8 \ >+ JAVA_PORT_NATIVE_OPENJDK_JDK_11 \ >+ JAVA_PORT_NATIVE_OPENJDK_JDK_12 \ >+ JAVA_PORT_NATIVE_OPENJDK_JDK_7 \ >+ JAVA_PORT_NATIVE_OPENJDK_JDK_6 \ >+ JAVA_PORT_LINUX_ORACLE_JDK_8 \ >+ JAVA_PORT_LINUX_ORACLE_JDK_9 \ >+ JAVA_PORT_LINUX_ORACLE_JDK_10 > _JAVA_PORTS_ALL= ${JAVA_PREFERRED_PORTS} \ > ${__JAVA_PORTS_ALL} > >@@ -264,7 +276,7 @@ > . undef _JAVA_PORTS_INSTALLED > . undef _JAVA_PORTS_POSSIBLE > . if defined(JAVA_VERSION) >-_JAVA_VERSION= ${JAVA_VERSION:S/1.6+/1.6 1.7+/:S/1.7+/1.7 1.8+/:S/1.8+/1.8 1.9+/:S/1.9+/1.9/} >+_JAVA_VERSION= ${JAVA_VERSION:S/1.6+/1.6 1.7+/:S/1.7+/1.7 1.8+/:S/1.8+/1.8 1.9+/:S/1.9+/1.9 10+/:S/1.6/6/:S/1.7/7/:S/1.8/8/:S/1.9/9/:S/6+/6 7+/:S/7+/7 8+/:S/8+/8 9+/:S/9+/9 10+/:S/10+/10 11+/:S/11+/11 12+/:S/12+/12/} > . else > _JAVA_VERSION= ${__JAVA_VERSION_LIST} > . endif >@@ -282,7 +294,7 @@ > . for A_JAVA_PORT in ${_JAVA_PORTS_ALL} > A_JAVA_PORT_INFO:= ${A_JAVA_PORT:S/^/\${_/:S/$/_INFO}/} > A_JAVA_PORT_HOME= ${A_JAVA_PORT_INFO:MHOME=*:S,HOME=,,} >-A_JAVA_PORT_VERSION= ${A_JAVA_PORT_INFO:MVERSION=*:C/VERSION=([0-9])\.([0-9])(.*)/\1.\2/} >+A_JAVA_PORT_VERSION= ${A_JAVA_PORT_INFO:MVERSION=*:S,VERSION=,,} > A_JAVA_PORT_OS= ${A_JAVA_PORT_INFO:MOS=*:S,OS=,,} > A_JAVA_PORT_VENDOR= ${A_JAVA_PORT_INFO:MVENDOR=*:S,VENDOR=,,} > .if !defined(_JAVA_PORTS_INSTALLED) && exists(${A_JAVA_PORT_HOME}/${_JDK_FILE}) >Index: databases/hbase/Makefile >=================================================================== >--- databases/hbase/Makefile (revision 506407) >+++ databases/hbase/Makefile (working copy) >@@ -55,7 +55,7 @@ > > .include <bsd.port.pre.mk> > >-.if ${JAVA_PORT_VERSION:M1.8.*} >+.if ${JAVA_PORT_VERSION:M*8*} > JDK18_PROFILE= ,build-with-jdk8 > JDK18_SOURCE= -DcompileSource=1.8 > .endif >Index: databases/mysql-connector-java51/Makefile >=================================================================== >--- databases/mysql-connector-java51/Makefile (revision 506407) >+++ databases/mysql-connector-java51/Makefile (working copy) >@@ -47,7 +47,7 @@ > @${DO_NADA} > > do-build-DOCS-on: >-.if ${JAVA_PORT_VERSION:M1.8.*} >+.if ${JAVA_PORT_VERSION:M*8*} > @${ECHO_MSG} "NOTE>>> Generating javadoc is broken with JDK 1.8+" > .else > @${MKDIR} ${JAVADOCDIR} && (cd ${SRCDIR}; \ >@@ -67,7 +67,7 @@ > @for extradoc in ${EXTRADOCS} ; do \ > ${INSTALL_DATA} ${INSTALL_WRKSRC}/$$extradoc ${STAGEDIR}${DOCSDIR} ; \ > done >-.if ${JAVA_PORT_VERSION:N1.8.*} >+.if ${JAVA_PORT_VERSION:N*8*} > @${MKDIR} ${STAGEDIR}${APIDOCSDIR} > @cd ${JAVADOCDIR} && ${COPYTREE_SHARE} . ${APIDOCSDIR} > .endif >Index: devel/luajava/Makefile >=================================================================== >--- devel/luajava/Makefile (revision 506407) >+++ devel/luajava/Makefile (working copy) >@@ -22,7 +22,7 @@ > > .include <bsd.port.pre.mk> > >-.if ${JAVA_PORT_VERSION} == 1.7 >+.if ${JAVA_PORT_VERSION:M*7*} > PLIST_SUB+= JDK17="" > .else > PLIST_SUB+= JDK17="@comment " >Index: dns/dnsjava/Makefile >=================================================================== >--- dns/dnsjava/Makefile (revision 506407) >+++ dns/dnsjava/Makefile (working copy) >@@ -23,12 +23,12 @@ > > .include <bsd.port.pre.mk> > >-.if ${JAVA_PORT_VERSION} == "1.6.0" >+.if ${JAVA_PORT_VERSION:M*6*} > PLIST_SUB+= JDK6="" > .else > PLIST_SUB+= JDK6="@comment " > .endif >-.if ${JAVA_PORT_VERSION} == "1.8.0" >+.if ${JAVA_PORT_VERSION:M*8*} > PLIST_SUB+= JDK8="" > .else > PLIST_SUB+= JDK8="@comment " >Index: games/jin/Makefile >=================================================================== >--- games/jin/Makefile (revision 506407) >+++ games/jin/Makefile (working copy) >@@ -25,7 +25,8 @@ > MAKE_ARGS+= -lib ${JAVAJARDIR}/bsh.jar > > SUB_FILES= ${PORTNAME} >-SUB_LIST= JINJAR=${JINJAR:Q} JAVA_VERSION=${JAVA_PORT_VERSION:R} >+SUB_LIST= JINJAR=${JINJAR:Q} \ >+ JAVA_VERSION=${JAVA_PORT_VERSION:R:C/^([^1])/1.\1/} > > DATADIR= ${JAVASHAREDIR}/${PORTNAME} > >Index: graphics/jogl/Makefile >=================================================================== >--- graphics/jogl/Makefile (revision 506407) >+++ graphics/jogl/Makefile (working copy) >@@ -51,20 +51,20 @@ > > .include <bsd.port.pre.mk> > >-.if ${JAVA_PORT_VERSION:M1.6.*} >+.if ${JAVA_PORT_VERSION:M*6*} > PLIST_SUB+= JDK6="" > PLIST_SUB+= JDK7="@comment " > .endif >-.if ${JAVA_PORT_VERSION:M1.7.*} >+.if ${JAVA_PORT_VERSION:M*7*} > PLIST_SUB+= JDK6="@comment " > PLIST_SUB+= JDK7="" > .endif >-.if ${JAVA_PORT_VERSION:M1.8.*} >+.if ${JAVA_PORT_VERSION:M*8*} > PLIST_SUB+= JDK6="@comment " > PLIST_SUB+= JDK7="@comment " > .endif > >-.if ${JAVA_PORT_VERSION:M1.8.*} >+.if ${JAVA_PORT_VERSION:M*8*} > EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-build.xml > .endif >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 238758
:
205278
| 205692