summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2003-10-26 04:08:35 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2003-10-26 04:08:35 +0000
commite6c3f23c903ce8214c0e9f0e9b5bde56a42b0d80 (patch)
treeb098eb8b290a7d37a599892db6acc517629158ed /eclass/php.eclass
parentamd64 compile fix (diff)
downloadgentoo-2-e6c3f23c903ce8214c0e9f0e9b5bde56a42b0d80.tar.gz
gentoo-2-e6c3f23c903ce8214c0e9f0e9b5bde56a42b0d80.tar.bz2
gentoo-2-e6c3f23c903ce8214c0e9f0e9b5bde56a42b0d80.zip
fix bug #30403
Diffstat (limited to 'eclass/php.eclass')
-rw-r--r--eclass/php.eclass9
1 files changed, 8 insertions, 1 deletions
diff --git a/eclass/php.eclass b/eclass/php.eclass
index 2702fd45fb16..57dc5fe3b1ed 100644
--- a/eclass/php.eclass
+++ b/eclass/php.eclass
@@ -1,7 +1,7 @@
# Copyright 2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# Author: Robin H. Johnson <robbat2@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/eclass/php.eclass,v 1.83 2003/10/26 03:32:01 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/php.eclass,v 1.84 2003/10/26 04:08:35 robbat2 Exp $
# This EBUILD is totally masked presently. Use it at your own risk. I know it
# is severely broken, but I needed to get a copy into CVS to pass around and
@@ -172,6 +172,13 @@ php_check_java_config() {
eerror "or edit your USE flags in /etc/make.conf"
die
fi
+
+ JDKVER="$(java-config -v | head -n1 | cut -d\" -f2)"
+ if [ -n "${JDKVER/1.4.*}" ]; then
+ eerror "Please ensure that you have a JDK with a version of at least"
+ eerror "1.4 selected using java-config"
+ die
+ fi
}
php_src_unpack() {