ports/173847: [patch] java/openjdk7: force filesystemprovider to bsd

4721 at hushmail.com 4721 at hushmail.com
Thu Nov 22 22:50:01 UTC 2012


>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 at 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:


More information about the freebsd-ports-bugs mailing list