Date: Mon, 27 May 2019 04:41:48 +0000 From: bugzilla-noreply@freebsd.org To: java@FreeBSD.org Subject: [Bug 237054] java/openjdk11: Needs to be integrated into bsd.java.mk Message-ID: <bug-237054-8522-XVusbJ321u@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-237054-8522@https.bugs.freebsd.org/bugzilla/> References: <bug-237054-8522@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237054 Tommy P <tommyhp2@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #204463|0 |1 is obsolete| | --- Comment #20 from Tommy P <tommyhp2@gmail.com> --- Created attachment 204640 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D204640&action= =3Dedit 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 cur= rent available 1.8 *) Missing JDK 11 & 12=20 Patches: *) Allow use specific version via DEFAULT_VERSIONS+=3Djava=3D11 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 b= e a warning to user and use the port's instead. ------------------------------------------------------------- root@d-build-fbsd11:/usr/ports/www/tomcat9 # make java-debug # User specified parameters: JAVA_VERSION=3D 1.8+ (1.8 11 12) JAVA_OS=3D (native linux) JAVA_VENDOR=3D (openjdk oracle) JAVA_BUILD=3D JAVA_RUN=3D jre JAVA_EXTRACT=3D JAVA_VERSION_MIN=3D 1.8 JAVA_DEFAULT=3D 11 # JDK port dependency selection process: _JAVA_PORTS_POSSIBLE=3D 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=3D _JAVA_PORTS_INSTALLED_POSSIBLE=3D _JAVA_PORT=3D JAVA_PORT_NATIVE_OPENJDK_JDK_11 _JAVA_PORT_INFO=3D PORT=3Djava/openjdk11 HOME=3D/usr/local/o= penjdk11 VERSION=3D11 OS=3Dnative VENDOR=3Dopenjdk # Selected JDK port: JAVA_PORT=3D java/openjdk11 JAVA_HOME=3D /usr/local/openjdk11 JAVA_PORT_VERSION=3D 11 JAVA_PORT_OS=3D native (Native) JAVA_PORT_VENDOR=3D openjdk (OpenJDK BSD Porting Team) # Additional variables: JAVAC=3D JAVA_CLASSES=3D /usr/local/openjdk11/jre/lib/rt.jar root@d-build-fbsd11:/usr/ports/www/tomcat9 # make all-depends-list|grep jdk /poudriere/ports/default/java/openjdk11 /poudriere/ports/default/java/bootstrap-openjdk11 --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-237054-8522-XVusbJ321u>