From owner-svn-ports-all@freebsd.org Thu Oct 17 22:39:07 2019 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 027D715F463; Thu, 17 Oct 2019 22:39:07 +0000 (UTC) (envelope-from glewis@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::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.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46vPGf6LMRz3KqP; Thu, 17 Oct 2019 22:39:06 +0000 (UTC) (envelope-from glewis@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BCCCA2767B; Thu, 17 Oct 2019 22:39:06 +0000 (UTC) (envelope-from glewis@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x9HMd6dI006692; Thu, 17 Oct 2019 22:39:06 GMT (envelope-from glewis@FreeBSD.org) Received: (from glewis@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x9HMd6n3006689; Thu, 17 Oct 2019 22:39:06 GMT (envelope-from glewis@FreeBSD.org) Message-Id: <201910172239.x9HMd6n3006689@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: glewis set sender to glewis@FreeBSD.org using -f From: Greg Lewis Date: Thu, 17 Oct 2019 22:39:06 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r514690 - in head/java/openjdk8: . files X-SVN-Group: ports-head X-SVN-Commit-Author: glewis X-SVN-Commit-Paths: in head/java/openjdk8: . files X-SVN-Commit-Revision: 514690 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Oct 2019 22:39:07 -0000 Author: glewis Date: Thu Oct 17 22:39:05 2019 New Revision: 514690 URL: https://svnweb.freebsd.org/changeset/ports/514690 Log: Fix file interaction * Load libnio in BsdNativeDispatcher, as per other OSes * Export getmntonname0 from libnio PR: 241317 Submitted by: cmt@ Added: head/java/openjdk8/files/patch-jdk-src-solaris-classes-sun-nio-fs-BsdNativeDispatcher.java (contents, props changed) Modified: head/java/openjdk8/Makefile head/java/openjdk8/files/patch-jdk-make-mapfiles-libnio-mapfile-bsd Modified: head/java/openjdk8/Makefile ============================================================================== --- head/java/openjdk8/Makefile Thu Oct 17 21:50:08 2019 (r514689) +++ head/java/openjdk8/Makefile Thu Oct 17 22:39:05 2019 (r514690) @@ -2,6 +2,7 @@ PORTNAME= openjdk PORTVERSION= ${JDK_MAJOR_VERSION}.${JDK_UPDATE_VERSION}.${JDK_BUILD_NUMBER}.${BSD_JDK_VERSION} +PORTREVISION= 1 CATEGORIES= java devel MASTER_SITES= LOCAL/jkim:jtreg PKGNAMESUFFIX?= ${JDK_MAJOR_VERSION} Modified: head/java/openjdk8/files/patch-jdk-make-mapfiles-libnio-mapfile-bsd ============================================================================== --- head/java/openjdk8/files/patch-jdk-make-mapfiles-libnio-mapfile-bsd Thu Oct 17 21:50:08 2019 (r514689) +++ head/java/openjdk8/files/patch-jdk-make-mapfiles-libnio-mapfile-bsd Thu Oct 17 22:39:05 2019 (r514690) @@ -1,14 +1,22 @@ ---- jdk/make/mapfiles/libnio/mapfile-bsd +--- jdk/make/mapfiles/libnio/mapfile-bsd.orig 2019-10-17 21:15:55 UTC +++ jdk/make/mapfiles/libnio/mapfile-bsd -@@ -42,6 +42,7 @@ SUNWprivate_1.1 { - Java_sun_nio_ch_FileChannelImpl_position0; +@@ -41,6 +41,7 @@ SUNWprivate_1.1 { + Java_sun_nio_ch_FileChannelImpl_map0; Java_sun_nio_ch_FileChannelImpl_transferTo0; Java_sun_nio_ch_FileChannelImpl_unmap0; + Java_sun_nio_ch_FileDispatcherImpl_allocate0; Java_sun_nio_ch_FileDispatcherImpl_close0; Java_sun_nio_ch_FileDispatcherImpl_closeIntFD; - Java_sun_nio_ch_FileDispatcherImpl_force0; -@@ -143,6 +144,14 @@ SUNWprivate_1.1 { + Java_sun_nio_ch_FileDispatcherImpl_seek0; +@@ -135,6 +136,7 @@ SUNWprivate_1.1 { + Java_sun_nio_fs_BsdNativeDispatcher_endfsstat; + Java_sun_nio_fs_BsdNativeDispatcher_fsstatEntry; + Java_sun_nio_fs_BsdNativeDispatcher_getfsstat; ++ Java_sun_nio_fs_BsdNativeDispatcher_getmntonname0; + Java_sun_nio_fs_BsdNativeDispatcher_initIDs; + Java_sun_nio_fs_GnomeFileTypeDetector_initializeGio; + Java_sun_nio_fs_GnomeFileTypeDetector_initializeGnomeVfs; +@@ -143,6 +145,14 @@ SUNWprivate_1.1 { Java_sun_nio_fs_MagicFileTypeDetector_initialize0; Java_sun_nio_fs_MagicFileTypeDetector_probe0; Java_sun_nio_fs_UnixCopyFile_transfer; Added: head/java/openjdk8/files/patch-jdk-src-solaris-classes-sun-nio-fs-BsdNativeDispatcher.java ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/java/openjdk8/files/patch-jdk-src-solaris-classes-sun-nio-fs-BsdNativeDispatcher.java Thu Oct 17 22:39:05 2019 (r514690) @@ -0,0 +1,14 @@ +--- jdk/src/solaris/classes/sun/nio/fs/BsdNativeDispatcher.java.orig 2019-10-17 19:49:41 UTC ++++ jdk/src/solaris/classes/sun/nio/fs/BsdNativeDispatcher.java +@@ -69,6 +69,11 @@ class BsdNativeDispatcher extends UnixNativeDispatcher + private static native void initIDs(); + + static { ++ AccessController.doPrivileged(new PrivilegedAction() { ++ public Void run() { ++ System.loadLibrary("nio"); ++ return null; ++ }}); + initIDs(); + } + }