1 |
robbat2 07/11/08 09:42:56 |
2 |
|
3 |
Modified: mysql.eclass |
4 |
Log: |
5 |
Add the FEATURES=-userpriv die so that testing fails earlier than src_test. |
6 |
|
7 |
Revision Changes Path |
8 |
1.83 eclass/mysql.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/mysql.eclass?rev=1.83&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/mysql.eclass?rev=1.83&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/mysql.eclass?r1=1.82&r2=1.83 |
13 |
|
14 |
Index: mysql.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v |
17 |
retrieving revision 1.82 |
18 |
retrieving revision 1.83 |
19 |
diff -u -r1.82 -r1.83 |
20 |
--- mysql.eclass 2 Oct 2007 10:00:07 -0000 1.82 |
21 |
+++ mysql.eclass 8 Nov 2007 09:42:55 -0000 1.83 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2007 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.82 2007/10/02 10:00:07 robbat2 Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.83 2007/11/08 09:42:55 robbat2 Exp $ |
27 |
|
28 |
# Author: Francesco Riosa (Retired) <vivo@g.o> |
29 |
# Maintainer: Luca Longinotti <chtekk@g.o> |
30 |
@@ -455,8 +455,13 @@ |
31 |
# |
32 |
|
33 |
mysql_pkg_setup() { |
34 |
- enewgroup mysql 60 || die "problem adding 'mysql' group" |
35 |
- enewuser mysql 60 -1 /dev/null mysql || die "problem adding 'mysql' user" |
36 |
+ if hasq test ${FEATURES} ; then |
37 |
+ if ! use minimal ; then |
38 |
+ if ! hasq userpriv ${FEATURES} ; then |
39 |
+ die "Testing with FEATURES=-userpriv is no longer supported by upstream" |
40 |
+ fi |
41 |
+ fi |
42 |
+ fi |
43 |
|
44 |
# Check for USE flag problems in pkg_setup |
45 |
if use static && use ssl ; then |
46 |
@@ -478,6 +483,10 @@ |
47 |
eerror "USE flags 'cluster' and 'extraengine' conflict with 'minimal' USE flag!" |
48 |
die "USE flags 'cluster' and 'extraengine' conflict with 'minimal' USE flag!" |
49 |
fi |
50 |
+ |
51 |
+ # This should come after all of the die statements |
52 |
+ enewgroup mysql 60 || die "problem adding 'mysql' group" |
53 |
+ enewuser mysql 60 -1 /dev/null mysql || die "problem adding 'mysql' user" |
54 |
|
55 |
mysql_check_version_range "4.0 to 5.0.99.99" \ |
56 |
&& use berkdb \ |
57 |
|
58 |
|
59 |
|
60 |
-- |
61 |
gentoo-commits@g.o mailing list |