Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: mysql.eclass
Date: Thu, 29 May 2008 03:15:16
Message-Id: E1K1Ybg-0007dQ-LD@stork.gentoo.org
1 robbat2 08/05/29 03:15:12
2
3 Modified: mysql.eclass
4 Log:
5 Bug #187024. Test for what user we are instead of FEATURES=userpriv. MySQL tests WILL fail if we are root.
6
7 Revision Changes Path
8 1.91 eclass/mysql.eclass
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/mysql.eclass?rev=1.91&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/mysql.eclass?rev=1.91&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/mysql.eclass?r1=1.90&r2=1.91
13
14 Index: mysql.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v
17 retrieving revision 1.90
18 retrieving revision 1.91
19 diff -p -w -b -B -u -u -r1.90 -r1.91
20 --- mysql.eclass 22 May 2008 18:13:33 -0000 1.90
21 +++ mysql.eclass 29 May 2008 03:15:12 -0000 1.91
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.90 2008/05/22 18:13:33 robbat2 Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.91 2008/05/29 03:15:12 robbat2 Exp $
27
28 # Author: Francesco Riosa (Retired) <vivo@g.o>
29 # Maintainer: MySQL Team <mysql-bugs@g.o>
30 @@ -469,8 +469,8 @@ pbxt_src_install() {
31 mysql_pkg_setup() {
32 if hasq test ${FEATURES} ; then
33 if ! use minimal ; then
34 - if ! hasq userpriv ${FEATURES} ; then
35 - die "Testing with FEATURES=-userpriv is no longer supported by upstream"
36 + if [[ $UID -eq 0 ]]; then
37 + die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
38 fi
39 fi
40 fi
41
42
43
44 --
45 gentoo-commits@l.g.o mailing list