aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorglewis <glewis@FreeBSD.org>2012-06-07 03:50:54 +0800
committerglewis <glewis@FreeBSD.org>2012-06-07 03:50:54 +0800
commit5d5967c6a6330d998a7a74fd6fcbc4df8146a71e (patch)
tree214549e35959be6f61524b59ec88b901458fdff9
parentf7c2b22c10577ebdd0a9a9f657c1dadcafe524e9 (diff)
downloadfreebsd-ports-gnome-5d5967c6a6330d998a7a74fd6fcbc4df8146a71e.tar.gz
freebsd-ports-gnome-5d5967c6a6330d998a7a74fd6fcbc4df8146a71e.tar.zst
freebsd-ports-gnome-5d5967c6a6330d998a7a74fd6fcbc4df8146a71e.zip
. Fix jstack.
-rw-r--r--java/openjdk7/Makefile1
-rw-r--r--java/openjdk7/files/patch-src-os-bsd-vm-attachListener_bsd.cpp16
2 files changed, 17 insertions, 0 deletions
diff --git a/java/openjdk7/Makefile b/java/openjdk7/Makefile
index eea9d41b003b..184acebfd5d6 100644
--- a/java/openjdk7/Makefile
+++ b/java/openjdk7/Makefile
@@ -7,6 +7,7 @@
PORTNAME= openjdk
PORTVERSION= ${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_BUILD_NUMBER}
+PORTREVISION= 1
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 \
diff --git a/java/openjdk7/files/patch-src-os-bsd-vm-attachListener_bsd.cpp b/java/openjdk7/files/patch-src-os-bsd-vm-attachListener_bsd.cpp
new file mode 100644
index 000000000000..9088cf568367
--- /dev/null
+++ b/java/openjdk7/files/patch-src-os-bsd-vm-attachListener_bsd.cpp
@@ -0,0 +1,16 @@
+$FreeBSD$
+
+--- hotspot/src/os/bsd/vm/attachListener_bsd.cpp.orig 2012-06-05 23:51:31.000000000 -0700
++++ hotspot/src/os/bsd/vm/attachListener_bsd.cpp 2012-06-05 23:54:28.000000000 -0700
+@@ -208,7 +208,10 @@
+ if (res == 0) {
+ RESTARTABLE(::chmod(initial_path, S_IREAD|S_IWRITE), res);
+ if (res == 0) {
+- res = ::rename(initial_path, path);
++ RESTARTABLE(::chown(initial_path, geteuid(), getegid()), res);
++ if (res == 0) {
++ res = ::rename(initial_path, path);
++ }
+ }
+ }
+ if (res == -1) {