summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorglewis <glewis@FreeBSD.org>2006-09-09 02:10:02 +0000
committerglewis <glewis@FreeBSD.org>2006-09-09 02:10:02 +0000
commitbdb248dcb276bd324bd1c3c54997ead5704ee9ae (patch)
tree6cf021bf89c6f65041bbf3ed5c4609825a0eb127 /java
parenteb061b25bed4071f150ff7aa8e60a1e2cded973e (diff)
downloadFreeBSD-ports-bdb248dcb276bd324bd1c3c54997ead5704ee9ae.zip
FreeBSD-ports-bdb248dcb276bd324bd1c3c54997ead5704ee9ae.tar.gz
. Prevent problems opening RandomAccessFile with "rws" as the mode by
defining O_SYNC and O_DSYNC if they aren't defined. In particular we were previously defining O_SYNC bogusly to the same value as O_EXCL. PR not closed as this fixes jdk15, not diablo-jdk15. PR: 102888
Diffstat (limited to 'java')
-rw-r--r--java/jdk15/Makefile2
-rw-r--r--java/jdk15/files/patch-j2se::io::io_util.h21
-rw-r--r--java/jdk16/Makefile2
-rw-r--r--java/jdk16/files/patch-j2se::io::io_util.h21
4 files changed, 44 insertions, 2 deletions
diff --git a/java/jdk15/Makefile b/java/jdk15/Makefile
index a0f3a06..a428d97 100644
--- a/java/jdk15/Makefile
+++ b/java/jdk15/Makefile
@@ -7,7 +7,7 @@
PORTNAME= jdk
PORTVERSION= ${JDK_VERSION}p${JDK_PATCHSET_VERSION}
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= java devel
MASTER_SITES= # http://www.sun.com/software/java2/download.html
# http://www.eyesbeyond.com/freebsddom/java/jdk15.html
diff --git a/java/jdk15/files/patch-j2se::io::io_util.h b/java/jdk15/files/patch-j2se::io::io_util.h
new file mode 100644
index 0000000..0230858
--- /dev/null
+++ b/java/jdk15/files/patch-j2se::io::io_util.h
@@ -0,0 +1,21 @@
+$FreeBSD$
+
+--- ../../j2se/src/share/native/java/io/io_util.h 8 Nov 2004 22:27:35 -0000 1.1.1.1
++++ ../../j2se/src/share/native/java/io/io_util.h 7 Sep 2006 19:40:19 -0000
+@@ -11,7 +11,15 @@
+ extern jfieldID IO_fd_fdID;
+ extern jfieldID IO_handle_fdID;
+
+-#if !defined(O_DSYNC) || !defined(O_SYNC)
++#ifdef _ALLBSD_SOURCE
++#include <fcntl.h>
++#ifndef O_SYNC
++#define O_SYNC O_FSYNC
++#endif
++#ifndef O_DSYNC
++#define O_DSYNC O_FSYNC
++#endif
++#elif !defined(O_DSYNC) || !defined(O_SYNC)
+ #define O_SYNC (0x0800)
+ #define O_DSYNC (0x2000)
+ #endif
diff --git a/java/jdk16/Makefile b/java/jdk16/Makefile
index a0f3a06..a428d97 100644
--- a/java/jdk16/Makefile
+++ b/java/jdk16/Makefile
@@ -7,7 +7,7 @@
PORTNAME= jdk
PORTVERSION= ${JDK_VERSION}p${JDK_PATCHSET_VERSION}
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= java devel
MASTER_SITES= # http://www.sun.com/software/java2/download.html
# http://www.eyesbeyond.com/freebsddom/java/jdk15.html
diff --git a/java/jdk16/files/patch-j2se::io::io_util.h b/java/jdk16/files/patch-j2se::io::io_util.h
new file mode 100644
index 0000000..0230858
--- /dev/null
+++ b/java/jdk16/files/patch-j2se::io::io_util.h
@@ -0,0 +1,21 @@
+$FreeBSD$
+
+--- ../../j2se/src/share/native/java/io/io_util.h 8 Nov 2004 22:27:35 -0000 1.1.1.1
++++ ../../j2se/src/share/native/java/io/io_util.h 7 Sep 2006 19:40:19 -0000
+@@ -11,7 +11,15 @@
+ extern jfieldID IO_fd_fdID;
+ extern jfieldID IO_handle_fdID;
+
+-#if !defined(O_DSYNC) || !defined(O_SYNC)
++#ifdef _ALLBSD_SOURCE
++#include <fcntl.h>
++#ifndef O_SYNC
++#define O_SYNC O_FSYNC
++#endif
++#ifndef O_DSYNC
++#define O_DSYNC O_FSYNC
++#endif
++#elif !defined(O_DSYNC) || !defined(O_SYNC)
+ #define O_SYNC (0x0800)
+ #define O_DSYNC (0x2000)
+ #endif
OpenPOWER on IntegriCloud