[Bug 237054] java/openjdk11: Needs to be integrated into bsd.java.mk
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon May 27 04:41:52 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237054
Tommy P <tommyhp2 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #204463|0 |1
is obsolete| |
--- Comment #20 from Tommy P <tommyhp2 at gmail.com> ---
Created attachment 204640
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=204640&action=edit
patch for bsd.default-versions.mk and bsd.java.mk
DISCLAIMER:
*) Please review the patch, especially, under section # Error checking:
JAVA_VERSION. My C/C++ skills haven't been used in a very long time and is
very rusty still. I'm not sure I have 'test' right.
*) Oracle OpenJDK 9 is removed as suggested by Michael Osipov in addition to
not a LTS version.
*) I don't know if this is proper way to facilitate DEFAULT_VERSIONS in the
backend but it works :)
*) Beware that using most current JDK would break some ports
ie BR 237990 - sysutils/facter specifies '-soucre 1.6' but JDK12 requires
'-source 7'
Currently:
*) Unable to use a specific Java version and automatically selects most current
available 1.8
*) Missing JDK 11 & 12
Patches:
*) Allow use specific version via DEFAULT_VERSIONS+=java=11
Possible values: 1.6 1.7 1.8 11 12
*) Not specifying DEFAULT_VERSIONS will use default 11 since it's the most
current LTS.
*) If DEFAULT_VERSIONS is less then port's required minimum, there should be a
warning to user and use the port's instead.
-------------------------------------------------------------
root at d-build-fbsd11:/usr/ports/www/tomcat9 # make java-debug
# User specified parameters:
JAVA_VERSION= 1.8+ (1.8 11 12)
JAVA_OS= (native linux)
JAVA_VENDOR= (openjdk oracle)
JAVA_BUILD=
JAVA_RUN= jre
JAVA_EXTRACT=
JAVA_VERSION_MIN= 1.8
JAVA_DEFAULT= 11
# JDK port dependency selection process:
_JAVA_PORTS_POSSIBLE= JAVA_PORT_NATIVE_OPENJDK_JDK_12
JAVA_PORT_NATIVE_OPENJDK_JDK_11 JAVA_PORT_NATIVE_OPENJDK_JDK_1_8
JAVA_PORT_LINUX_ORACLE_JDK_1_8
_JAVA_PORTS_INSTALLED=
_JAVA_PORTS_INSTALLED_POSSIBLE=
_JAVA_PORT= JAVA_PORT_NATIVE_OPENJDK_JDK_11
_JAVA_PORT_INFO= PORT=java/openjdk11 HOME=/usr/local/openjdk11
VERSION=11 OS=native VENDOR=openjdk
# Selected JDK port:
JAVA_PORT= java/openjdk11
JAVA_HOME= /usr/local/openjdk11
JAVA_PORT_VERSION= 11
JAVA_PORT_OS= native (Native)
JAVA_PORT_VENDOR= openjdk (OpenJDK BSD Porting Team)
# Additional variables:
JAVAC=
JAVA_CLASSES= /usr/local/openjdk11/jre/lib/rt.jar
root at d-build-fbsd11:/usr/ports/www/tomcat9 # make all-depends-list|grep jdk
/poudriere/ports/default/java/openjdk11
/poudriere/ports/default/java/bootstrap-openjdk11
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
More information about the freebsd-java
mailing list