From 04a4fa070d4eae19c3310821d875f24e61003063 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sun, 31 Jan 2010 05:00:43 +0000 Subject: Bug #290570, somewhere between 5.0.76 and 5.0.83, upstream made changes that require a fairly new GCC. --- eclass/mysql.eclass | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'eclass/mysql.eclass') 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" -- cgit v1.2.3-65-gdbad