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: db.eclass
Date: Mon, 03 May 2010 22:03:40
Message-Id: 20100503220338.466722C3A4@corvid.gentoo.org
1 robbat2 10/05/03 22:03:38
2
3 Modified: db.eclass
4 Log:
5 Bug #263797: Do not run the sys-libs/db testsuite as root.
6
7 Revision Changes Path
8 1.32 eclass/db.eclass
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/db.eclass?rev=1.32&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/db.eclass?rev=1.32&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/db.eclass?r1=1.31&r2=1.32
13
14 Index: db.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/db.eclass,v
17 retrieving revision 1.31
18 retrieving revision 1.32
19 diff -p -w -b -B -u -u -r1.31 -r1.32
20 --- db.eclass 29 Jul 2009 20:25:25 -0000 1.31
21 +++ db.eclass 3 May 2010 22:03:38 -0000 1.32
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2004 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/db.eclass,v 1.31 2009/07/29 20:25:25 pauldv Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/db.eclass,v 1.32 2010/05/03 22:03:38 robbat2 Exp $
27 # This is a common location for functions used in the sys-libs/db ebuilds
28 #
29 # Bugs: pauldv@g.o
30 @@ -116,6 +116,11 @@ db_src_install_usrlibcleanup() {
31 }
32
33 db_src_test() {
34 + if [[ $UID -eq 0 ]]; then
35 + ewarn "You must run the testsuite as non-root, skipping"
36 + elog "You must run the testsuite as non-root, skipping"
37 + return 0
38 + fi
39 if useq tcl; then
40 einfo "Running sys-libs/db testsuite"
41 ewarn "This can take 6+ hours on modern machines"