From owner-freebsd-java@freebsd.org Mon May 27 04:41:52 2019 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 95F8015B98D0 for ; Mon, 27 May 2019 04:41:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 280EF83D85 for ; Mon, 27 May 2019 04:41:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id DAA7815B98CF; Mon, 27 May 2019 04:41:51 +0000 (UTC) Delivered-To: java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B159415B98CD for ; Mon, 27 May 2019 04:41:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4380C83D7F for ; Mon, 27 May 2019 04:41:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 7841D19401 for ; Mon, 27 May 2019 04:41:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x4R4fo6B018229 for ; Mon, 27 May 2019 04:41:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x4R4fo9f018214 for java@FreeBSD.org; Mon, 27 May 2019 04:41:50 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: java@FreeBSD.org Subject: [Bug 237054] java/openjdk11: Needs to be integrated into bsd.java.mk Date: Mon, 27 May 2019 04:41:48 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: tommyhp2@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: java@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 May 2019 04:41:52 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237054 Tommy P changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #204463|0 |1 is obsolete| | --- Comment #20 from Tommy P --- 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.=