Date: Thu, 22 Nov 2012 22:41:43 GMT From: "4721@hushmail.com" <4721@hushmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/173847: [patch] java/openjdk7: force filesystemprovider to bsd Message-ID: <201211222241.qAMMfhgc024594@red.freebsd.org> Resent-Message-ID: <201211222250.qAMMo0BP014168@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 173847 >Category: ports >Synopsis: [patch] java/openjdk7: force filesystemprovider to bsd >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Nov 22 22:50:00 UTC 2012 >Closed-Date: >Last-Modified: >Originator: 4721@hushmail.com >Release: >Organization: >Environment: >Description: this patch forces to use the bsd filesystem provider even when osname is Linux, to work around programs where we must use -Dos.name=Linux even when running with native openjdk7. this fixes filesystem accesses in such programs. >How-To-Repeat: >Fix: Patch attached with submission follows: Index: java/openjdk7/files/patch-z-filesystem =================================================================== --- java/openjdk7/files/patch-z-filesystem (revision 0) +++ java/openjdk7/files/patch-z-filesystem (working copy) @@ -0,0 +1,11 @@ +--- jdk/src/solaris/classes/sun/nio/fs/DefaultFileSystemProvider.java.orig ++++ jdk/src/solaris/classes/sun/nio/fs/DefaultFileSystemProvider.java +@@ -67,7 +67,7 @@ + if (osname.equals("SunOS")) + return createProvider("sun.nio.fs.SolarisFileSystemProvider"); + if (osname.equals("Linux")) +- return createProvider("sun.nio.fs.LinuxFileSystemProvider"); ++ return createProvider("sun.nio.fs.BsdFileSystemProvider"); + if (osname.endsWith("BSD") || osname.equals("Darwin") || osname.contains("OS X")) + return createProvider("sun.nio.fs.BsdFileSystemProvider"); + throw new AssertionError("Platform not recognized"); Index: java/openjdk7/Makefile =================================================================== --- java/openjdk7/Makefile (revision 307667) +++ java/openjdk7/Makefile (working copy) @@ -7,7 +7,7 @@ PORTNAME= openjdk PORTVERSION= ${JDK_MAJOR_VERSION}.${PORT_MINOR_VERSION}.${PORT_BUILD_NUMBER} -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= java devel MASTER_SITES= http://download.java.net/openjdk/jdk${JDK_MAJOR_VERSION}u${JDK_MINOR_VERSION}/promoted/b${JDK_BUILD_NUMBER}/ \ http://download.java.net/jaxp/1.4.5/:jaxp \ >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211222241.qAMMfhgc024594>