summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVlastimil Babka <caster@gentoo.org>2008-04-06 19:12:32 +0000
committerVlastimil Babka <caster@gentoo.org>2008-04-06 19:12:32 +0000
commit6d043a8c9516f45ca7783cd5065b230937d0d4c7 (patch)
treebd657acf27d33a555f76e2a4823b179b2dd1224d /dev-util/eclipse-sdk/files
parentAdded ~ppc; bug #195815 (diff)
downloadgentoo-2-6d043a8c9516f45ca7783cd5065b230937d0d4c7.tar.gz
gentoo-2-6d043a8c9516f45ca7783cd5065b230937d0d4c7.tar.bz2
gentoo-2-6d043a8c9516f45ca7783cd5065b230937d0d4c7.zip
Revbump for workaround of bug #215150 in the eclipse startup script.
(Portage version: 2.1.4.4)
Diffstat (limited to 'dev-util/eclipse-sdk/files')
-rw-r--r--dev-util/eclipse-sdk/files/eclipse-3.2-r144
1 files changed, 44 insertions, 0 deletions
diff --git a/dev-util/eclipse-sdk/files/eclipse-3.2-r1 b/dev-util/eclipse-sdk/files/eclipse-3.2-r1
new file mode 100644
index 000000000000..5aca928c25f0
--- /dev/null
+++ b/dev-util/eclipse-sdk/files/eclipse-3.2-r1
@@ -0,0 +1,44 @@
+#! /bin/bash
+#
+# Tiny startup wrapper for the Eclipse 3.2.x series
+#
+# Copyright (c) 2004, Karl Trygve Kalleberg <karltk@gentoo.org>
+# Copyright (c) 2004, Gentoo Foundation
+#
+# Licensed under the GNU General Public License, version 2
+#
+
+[[ -f $HOME/.eclipserc ]] && source $HOME/.eclipserc
+
+ECLIPSE_HOME=${ECLIPSE_HOME:="/usr/lib/eclipse-3.2"}
+ECLIPSE_BIN="${ECLIPSE_HOME}/eclipse"
+
+if [ ! -x ${ECLIPSE_BIN} ] ; then
+ echo "Failed to find executable '${ECLIPSE_BIN}'" > /dev/stderr
+ exit -1
+fi
+
+if [ $(whoami) == "root" ] ; then
+ echo "!!! You are running Eclipse as root. Be advised that this will modify the contents of"
+ echo "!!! /usr/lib/eclipse-3.2, and that such a modification may prevent you from safely"
+ echo "!!! upgrading to later 3.2 revisions."
+ echo
+ echo "!!! To ensure correct behavior on your next upgrade, do:"
+ echo "!!! 1) 'emerge unmerge \"=eclipse-sdk-3.2\"'"
+ echo "!!! 2) 'rm -rf /usr/lib/eclipse-3.2'"
+ echo "!!! 3) 'emerge eclipse-sdk'"
+fi
+
+if [[ -d /usr/lib/gecko-sdk/lib/ ]] && [[ -f /usr/lib/gecko-sdk/lib/libgtkembedmoz.so ]] ; then
+ export MOZILLA_FIVE_HOME="/usr/lib/gecko-sdk/lib/"
+fi
+
+# workaround for bug #215150
+if [[ $(java-config -f) == sun-jdk-1.6 || $(java-config -f) == sun-jre-bin-1.6 ]]; then
+ if [[ $(java-config -g VERSION) == *1.6.0.04 || $(java-config -g VERSION) == *1.6.0.05 ]]; then
+ echo "Performing workaround for bug #215150"
+ VM_ARGS="${VM_ARGS} -XX:CompileCommand=exclude,org/eclipse/core/internal/dtree/DataTreeNode,forwardDeltaWith"
+ fi
+fi
+
+exec ${ECLIPSE_BIN} "$@" -vmargs ${VM_ARGS}