summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2015-10-20 08:20:29 +0000
committertnn <tnn@pkgsrc.org>2015-10-20 08:20:29 +0000
commitdbaa82f12b3fc65d6515683b3cb33a93a09c9509 (patch)
tree51518994f4adb0f5a7c7cbe15fb4eb4923015599 /lang
parent0de8aa37450093b61558b04e1d223bda6e99a60a (diff)
downloadpkgsrc-dbaa82f12b3fc65d6515683b3cb33a93a09c9509.tar.gz
exit with an error if the JVM crashes and chdir to /tmp before running it,
so we don't get a stale java.core in pkgdb.
Diffstat (limited to 'lang')
-rw-r--r--lang/sun-jre6/INSTALL5
-rw-r--r--lang/sun-jre7/INSTALL5
2 files changed, 6 insertions, 4 deletions
diff --git a/lang/sun-jre6/INSTALL b/lang/sun-jre6/INSTALL
index 5d3b4ce9767..5ccb1a09b6e 100644
--- a/lang/sun-jre6/INSTALL
+++ b/lang/sun-jre6/INSTALL
@@ -1,7 +1,8 @@
-# $NetBSD: INSTALL,v 1.2 2013/03/02 18:04:31 joerg Exp $
+# $NetBSD: INSTALL,v 1.3 2015/10/20 08:20:29 tnn Exp $
case ${STAGE} in
POST-INSTALL)
- ${PREFIX}/bin/sun6-java -Xshare:dump -mx128m
+ cd /tmp && ${PREFIX}/bin/sun6-java \
+ -Xshare:dump -XX:+UseSerialGC -Xmx256M || exit 1
;;
esac
diff --git a/lang/sun-jre7/INSTALL b/lang/sun-jre7/INSTALL
index 16e5862187e..f86cd338906 100644
--- a/lang/sun-jre7/INSTALL
+++ b/lang/sun-jre7/INSTALL
@@ -1,7 +1,8 @@
-# $NetBSD: INSTALL,v 1.2 2013/03/02 18:04:31 joerg Exp $
+# $NetBSD: INSTALL,v 1.3 2015/10/20 08:20:29 tnn Exp $
case ${STAGE} in
POST-INSTALL)
- ${PREFIX}/bin/sun7-java -Xshare:dump -mx128m
+ cd /tmp && ${PREFIX}/bin/sun7-java \
+ -Xshare:dump -XX:+UseSerialGC -Xmx256M || exit 1
;;
esac