# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.143 2010/03/25 20:58:31 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.144 2010/04/01 20:36:39 robbat2 Exp $
# @ECLASS: mysql.eclass
# @MAINTAINER:
die "USE flags 'cluster' and 'extraengine' conflict with 'minimal' USE flag!"
fi
- # Bug #290570 fun. Upstream made us need a fairly new GCC4.
- if mysql_version_is_at_least "5.0.83" ; then
+ # Bug #290570, 284946, 307251
+ # Upstream changes made us need a fairly new GCC4.
+ # But only for 5.0.8[3-6]!
+ if mysql_version_is_at_least "5.0.83" && ! mysql_version_is_at_least 5.0.87 ; then
GCC_VER=$(gcc-version)
case ${GCC_VER} in
- 2*|3*|4.0|4.1|4.2) die "Active GCC too old! Must have at least GCC4.3" ;;
+ 2*|3*|4.0|4.1|4.2)
+ eerror "Some releases of MySQL required a very new GCC, and then"
+ eerror "later release relaxed that requirement again. Either pick a"
+ eerror "MySQL >=5.0.87, or use a newer GCC."
+ die "Active GCC too old!" ;;
esac
fi