aboutsummaryrefslogtreecommitdiff
path: root/java/openjdk8
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2015-12-10 18:43:51 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2015-12-10 18:43:51 +0000
commitaf65c31a00fead549f85e4bac768c689f57bb5e3 (patch)
treedcbfe858617885cbbd036af98a9caf481a316336 /java/openjdk8
parentdfb55550a279e6bdc2dbb179427281a5543425d2 (diff)
downloadports-af65c31a00fead549f85e4bac768c689f57bb5e3.tar.gz
ports-af65c31a00fead549f85e4bac768c689f57bb5e3.zip
Notes
Diffstat (limited to 'java/openjdk8')
-rw-r--r--java/openjdk8/Makefile2
-rw-r--r--java/openjdk8/files/patch-jdk_src_solaris_native_sun_management_OperatingSystemImpl.c23
2 files changed, 24 insertions, 1 deletions
diff --git a/java/openjdk8/Makefile b/java/openjdk8/Makefile
index ea435fa98cda..2d35db52f145 100644
--- a/java/openjdk8/Makefile
+++ b/java/openjdk8/Makefile
@@ -2,7 +2,7 @@
PORTNAME= openjdk
PORTVERSION= ${JDK_MAJOR_VERSION}.${JDK_UPDATE_VERSION}.${JDK_BUILD_NUMBER:S/^0//}
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= java devel
MASTER_SITES= http://download.java.net/openjdk/jdk${JDK_MAJOR_VERSION}/promoted/b${DIST_BUILD_NUMBER}/:jdk \
https://adopt-openjdk.ci.cloudbees.com/job/jtreg/${JTREG_JENKINS_BUILD}/artifact/:jtreg \
diff --git a/java/openjdk8/files/patch-jdk_src_solaris_native_sun_management_OperatingSystemImpl.c b/java/openjdk8/files/patch-jdk_src_solaris_native_sun_management_OperatingSystemImpl.c
new file mode 100644
index 000000000000..57d4464a168f
--- /dev/null
+++ b/java/openjdk8/files/patch-jdk_src_solaris_native_sun_management_OperatingSystemImpl.c
@@ -0,0 +1,23 @@
+--- jdk/src/solaris/native/sun/management/OperatingSystemImpl.c.orig 2015-12-10 18:40:39 UTC
++++ jdk/src/solaris/native/sun/management/OperatingSystemImpl.c
+@@ -435,11 +435,6 @@ Java_sun_management_OperatingSystemImpl_
+ }
+
+
+-#ifdef _ALLBSD_SOURCE
+-#define FD_DIR "/dev/fd"
+-#else
+-#define FD_DIR "/proc/self/fd"
+-#endif
+
+ JNIEXPORT jlong JNICALL
+ Java_sun_management_OperatingSystemImpl_getOpenFileDescriptorCount
+@@ -500,6 +495,8 @@ Java_sun_management_OperatingSystemImpl_
+ #define FD_DIR aix_fd_dir
+ char aix_fd_dir[32]; /* the pid has at most 19 digits */
+ snprintf(aix_fd_dir, 32, "/proc/%d/fd", getpid());
++#elif defined(_ALLBSD_SOURCE)
++#define FD_DIR "/dev/fd"
+ #else
+ #define FD_DIR "/proc/self/fd"
+ #endif