diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2010-01-31 05:00:43 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2010-01-31 05:00:43 +0000 |
commit | 04a4fa070d4eae19c3310821d875f24e61003063 (patch) | |
tree | b6022cb53e1c0cfe3375b7e3c5dcf2054dbc7b4f /eclass/mysql.eclass | |
parent | Version bump (diff) | |
download | gentoo-2-04a4fa070d4eae19c3310821d875f24e61003063.tar.gz gentoo-2-04a4fa070d4eae19c3310821d875f24e61003063.tar.bz2 gentoo-2-04a4fa070d4eae19c3310821d875f24e61003063.zip |
Bug #290570, somewhere between 5.0.76 and 5.0.83, upstream made changes that require a fairly new GCC.
Diffstat (limited to 'eclass/mysql.eclass')
-rw-r--r-- | eclass/mysql.eclass | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/eclass/mysql.eclass b/eclass/mysql.eclass index be6d116cf049..3cb755d969c1 100644 --- a/eclass/mysql.eclass +++ b/eclass/mysql.eclass @@ -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.124 2010/01/31 03:05:54 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.125 2010/01/31 05:00:43 robbat2 Exp $ # @ECLASS: mysql.eclass # @MAINTAINER: @@ -553,6 +553,14 @@ 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 + 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" ;; + esac + fi + # This should come after all of the die statements enewgroup mysql 60 || die "problem adding 'mysql' group" enewuser mysql 60 -1 /dev/null mysql || die "problem adding 'mysql' user" |