summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Thomson <wltjr@gentoo.org>2007-05-20 21:42:12 +0000
committerWilliam Thomson <wltjr@gentoo.org>2007-05-20 21:42:12 +0000
commit1e6807025997505d97c31dfc20400cda0acd2207 (patch)
treeab8baedde66b48f2d4469aa96e08904dd24ed940 /www-servers/tomcat/files
parentStable for HPPA (bug #175465). (diff)
downloadgentoo-2-1e6807025997505d97c31dfc20400cda0acd2207.tar.gz
gentoo-2-1e6807025997505d97c31dfc20400cda0acd2207.tar.bz2
gentoo-2-1e6807025997505d97c31dfc20400cda0acd2207.zip
Added code to init script to check VM version, fix for bug #179119
(Portage version: 2.1.2.7)
Diffstat (limited to 'www-servers/tomcat/files')
-rwxr-xr-xwww-servers/tomcat/files/5.5/tomcat.init.29
-rw-r--r--www-servers/tomcat/files/digest-tomcat-5.5.23-r4 (renamed from www-servers/tomcat/files/digest-tomcat-5.5.23-r3)0
2 files changed, 8 insertions, 1 deletions
diff --git a/www-servers/tomcat/files/5.5/tomcat.init.2 b/www-servers/tomcat/files/5.5/tomcat.init.2
index 274138eeb9fe..33b55921d8f8 100755
--- a/www-servers/tomcat/files/5.5/tomcat.init.2
+++ b/www-servers/tomcat/files/5.5/tomcat.init.2
@@ -1,9 +1,16 @@
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/tomcat/files/5.5/tomcat.init.2,v 1.3 2007/05/17 21:15:05 wltjr Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-servers/tomcat/files/5.5/tomcat.init.2,v 1.4 2007/05/20 21:42:12 wltjr Exp $
init_env_vars() {
+ if [ "$(gjl -p tomcat-5.5 --get-vm)" ] ; then
+ error "Tomcat has been compiled with java5 USE flag set."
+ error "Tomcat now requires a VM >=1.5 to run."
+ error "Please check your VM version, and restart Tomcat."
+ eend 1
+ fi
+
# Set some sane defaults
if [ -z "${CATALINA_TMPDIR}" ] ; then
CATALINA_TMPDIR="${CATALINA_BASE}"/temp
diff --git a/www-servers/tomcat/files/digest-tomcat-5.5.23-r3 b/www-servers/tomcat/files/digest-tomcat-5.5.23-r4
index e0e59f68fbb2..e0e59f68fbb2 100644
--- a/www-servers/tomcat/files/digest-tomcat-5.5.23-r3
+++ b/www-servers/tomcat/files/digest-tomcat-5.5.23-r4