From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1KRAyv-0001Uj-CE for garchives@archives.gentoo.org; Thu, 07 Aug 2008 19:17:06 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3A293E0591; Thu, 7 Aug 2008 19:17:03 +0000 (UTC) Received: from smtp7-g19.free.fr (smtp7-g19.free.fr [212.27.42.64]) by pigeon.gentoo.org (Postfix) with ESMTP id 134B5E0591 for ; Thu, 7 Aug 2008 19:17:03 +0000 (UTC) Received: from smtp7-g19.free.fr (localhost [127.0.0.1]) by smtp7-g19.free.fr (Postfix) with ESMTP id 47B46B0173 for ; Thu, 7 Aug 2008 21:17:02 +0200 (CEST) Received: from localhost (toz.strangled.net [82.232.126.136]) by smtp7-g19.free.fr (Postfix) with ESMTP id 241DBB0221 for ; Thu, 7 Aug 2008 21:17:02 +0200 (CEST) Date: Thu, 7 Aug 2008 21:17:01 +0200 From: Alexis Ballier To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] FEATURES=-userpriv and testcases that fail as root or a user Message-ID: <20080807211701.7fc84d36@gentoo.org> In-Reply-To: <20080807190023.GQ22707@curie-int.orbis-terrarum.net> References: <20080807190023.GQ22707@curie-int.orbis-terrarum.net> Organization: Gentoo X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/=gcvw=5.bhxfRKB53WsKBDh"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Archives-Salt: b0a104b2-f0db-4c5f-b9f8-ac8130d6d5a6 X-Archives-Hash: e9f0a6c91a0388ecaef18ebc47e5c4c5 --Sig_/=gcvw=5.bhxfRKB53WsKBDh Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Thu, 7 Aug 2008 12:00:23 -0700 "Robin H. Johnson" wrote: > More than a year ago, I had my first occurrence of a package that > refused to work when run as root: dev-db/mysql. This lead to the > following block of code in the src_test block: >=20 > if [[ $UID -eq 0 ]]; then > die "Testing with FEATURES=3D-userpriv is no longer supported > by upstream. Tests MUST be run as non-root." fi =20 I've used that for flac: if [ $UID !=3D 0 ] ; then emake check || die "tests failed" else ewarn "Tests will fail if ran as root, skipping." fi ie, don't die and continue. If someone is interested in the tests they can read the ewarn. Alexis. --Sig_/=gcvw=5.bhxfRKB53WsKBDh Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkibSi0ACgkQvFcC4BYPU0payQCfXL7AHuzAC1lmmpTbJ6b49p53 GAUAoLg6Zd3SQgXp/ptD5tybfeZaJ41K =VeEA -----END PGP SIGNATURE----- --Sig_/=gcvw=5.bhxfRKB53WsKBDh--