1 |
robbat2 10/01/31 05:00:43 |
2 |
|
3 |
Modified: mysql.eclass |
4 |
Log: |
5 |
Bug #290570, somewhere between 5.0.76 and 5.0.83, upstream made changes that require a fairly new GCC. |
6 |
|
7 |
Revision Changes Path |
8 |
1.125 eclass/mysql.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/mysql.eclass?rev=1.125&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/mysql.eclass?rev=1.125&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/mysql.eclass?r1=1.124&r2=1.125 |
13 |
|
14 |
Index: mysql.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v |
17 |
retrieving revision 1.124 |
18 |
retrieving revision 1.125 |
19 |
diff -p -w -b -B -u -u -r1.124 -r1.125 |
20 |
--- mysql.eclass 31 Jan 2010 03:05:54 -0000 1.124 |
21 |
+++ mysql.eclass 31 Jan 2010 05:00:43 -0000 1.125 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2009 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.124 2010/01/31 03:05:54 robbat2 Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.125 2010/01/31 05:00:43 robbat2 Exp $ |
27 |
|
28 |
# @ECLASS: mysql.eclass |
29 |
# @MAINTAINER: |
30 |
@@ -553,6 +553,14 @@ mysql_pkg_setup() { |
31 |
die "USE flags 'cluster' and 'extraengine' conflict with 'minimal' USE flag!" |
32 |
fi |
33 |
|
34 |
+ # Bug #290570 fun. Upstream made us need a fairly new GCC4. |
35 |
+ if mysql_version_is_at_least "5.0.83" ; then |
36 |
+ GCC_VER=$(gcc_version) |
37 |
+ case ${GCC_VER} in |
38 |
+ 2*|3*|4.0|4.1|4.2) die "Active GCC too old! Must have at least GCC4.3" ;; |
39 |
+ esac |
40 |
+ fi |
41 |
+ |
42 |
# This should come after all of the die statements |
43 |
enewgroup mysql 60 || die "problem adding 'mysql' group" |
44 |
enewuser mysql 60 -1 /dev/null mysql || die "problem adding 'mysql' user" |