Followup on bug #284946, #293801, #310615, #307251: In 5.0.87, the mutex locking...
authorRobin H. Johnson <robbat2@gentoo.org>
Thu, 1 Apr 2010 20:36:39 +0000 (20:36 +0000)
committerRobin H. Johnson <robbat2@gentoo.org>
Thu, 1 Apr 2010 20:36:39 +0000 (20:36 +0000)
eclass/mysql.eclass

index 36044d4dca8a2bc02d738ed23574255fd12792e2..592de953d0e6356c3841875492d26fdd286867dc 100644 (file)
@@ -1,6 +1,6 @@
 # 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:
@@ -658,11 +658,17 @@ mysql_pkg_setup() {
                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