From: Petteri Räty Date: Thu, 8 Mar 2007 13:06:36 +0000 (+0000) Subject: Require userpriv in FEATURES to run unit tests because they fail when run as root. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0123f31d1b527f28dbb9cc428ef8d6f708d58749;p=gentoo.git Require userpriv in FEATURES to run unit tests because they fail when run as root. Package-Manager: portage-2.1.2.1-r1 --- diff --git a/dev-java/commons-io/ChangeLog b/dev-java/commons-io/ChangeLog index 1633820b268b..b7a9110bb3f7 100644 --- a/dev-java/commons-io/ChangeLog +++ b/dev-java/commons-io/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-java/commons-io # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-io/ChangeLog,v 1.17 2007/03/08 11:12:36 betelgeuse Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-io/ChangeLog,v 1.18 2007/03/08 13:06:36 betelgeuse Exp $ + + 08 Mar 2007; Petteri Räty commons-io-1.3.ebuild: + Require userpriv in FEATURES to run unit tests because they fail when run as + root. 08 Mar 2007; Petteri Räty commons-io-1.3.ebuild: Override libdir so it doesn't get set to /root/.maven diff --git a/dev-java/commons-io/Manifest b/dev-java/commons-io/Manifest index 24836e96235d..ec9ca0a6e711 100644 --- a/dev-java/commons-io/Manifest +++ b/dev-java/commons-io/Manifest @@ -15,14 +15,14 @@ EBUILD commons-io-1.1-r1.ebuild 1463 RMD160 27915fdce8cb9578e050bfdb5b905b21e862 MD5 cbc392b291fd139551a58db7017918be commons-io-1.1-r1.ebuild 1463 RMD160 27915fdce8cb9578e050bfdb5b905b21e862ae5b commons-io-1.1-r1.ebuild 1463 SHA256 3f59ee7665a3bbad9cdb3f3b5d0f26f5c4b93b3fd74be4786c0484bbb4b6afb7 commons-io-1.1-r1.ebuild 1463 -EBUILD commons-io-1.3.ebuild 1363 RMD160 1afd4f6a59c870fd611fe8ded210336d8d82a4dd SHA1 99fd8370a92bd77bbd3a76b5ba686c7bd4611e14 SHA256 f3be70cc3e1ed195b6fa1e6220189fc69e1c4fb5835eaa0f9a0f9c5d3e88f121 -MD5 8a31fee4384e13e74a3b2410a1f5b1e0 commons-io-1.3.ebuild 1363 -RMD160 1afd4f6a59c870fd611fe8ded210336d8d82a4dd commons-io-1.3.ebuild 1363 -SHA256 f3be70cc3e1ed195b6fa1e6220189fc69e1c4fb5835eaa0f9a0f9c5d3e88f121 commons-io-1.3.ebuild 1363 -MISC ChangeLog 2857 RMD160 19c0423d8015cc544ebc13e2b00a6ef2006af1fc SHA1 79a8b0b6d04d10940bc2d8902efc126349154887 SHA256 4a1d129e823148fdc49d8d4b3eaa68cebfdd4fa21a13aff71d62e4403e62a989 -MD5 e7f0645ae34fe1b93e57b5bcb0b2c277 ChangeLog 2857 -RMD160 19c0423d8015cc544ebc13e2b00a6ef2006af1fc ChangeLog 2857 -SHA256 4a1d129e823148fdc49d8d4b3eaa68cebfdd4fa21a13aff71d62e4403e62a989 ChangeLog 2857 +EBUILD commons-io-1.3.ebuild 1532 RMD160 45de51b1c7d639ac835d8da2cac1630a13c62634 SHA1 447987be83e360b3bd4fa052c5a1961074f4712f SHA256 b1920912afc53d2274ba4112a47ddfa732cf66726616313f75313fafaaf9c8c1 +MD5 28ed1b63e70778608e50ed544b423cc9 commons-io-1.3.ebuild 1532 +RMD160 45de51b1c7d639ac835d8da2cac1630a13c62634 commons-io-1.3.ebuild 1532 +SHA256 b1920912afc53d2274ba4112a47ddfa732cf66726616313f75313fafaaf9c8c1 commons-io-1.3.ebuild 1532 +MISC ChangeLog 3021 RMD160 8c3fc0ff1eac76f77870a07a22d9543f0fd8cc85 SHA1 6005560750635e83c34d5271f32e6c72b280084b SHA256 cc34b6e2d292f3bd4e92e551db2b3154648d3795d72316c1253381ad2ab1d1e5 +MD5 994c6751c9e4599af1d0f763bbc0074d ChangeLog 3021 +RMD160 8c3fc0ff1eac76f77870a07a22d9543f0fd8cc85 ChangeLog 3021 +SHA256 cc34b6e2d292f3bd4e92e551db2b3154648d3795d72316c1253381ad2ab1d1e5 ChangeLog 3021 MISC metadata.xml 157 RMD160 ab0b3741457dee7531f59c4da0f0e9e8399af084 SHA1 c37a6b9922aef61b5b3387655bccb6e3b16e0e26 SHA256 295d02c5805b0257938eb80314b371daac94b8d6ea85629a902de7a824adc0c9 MD5 a6ec7d7724fbd068ffb39b5be56134ed metadata.xml 157 RMD160 ab0b3741457dee7531f59c4da0f0e9e8399af084 metadata.xml 157 @@ -36,7 +36,7 @@ SHA256 4bcd7435807c9a7ffa3bf85d7d51db35051a537c3f53a504300c1aa128cea212 files/di -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.2 (GNU/Linux) -iD8DBQFF7++ocxLzpIGCsLQRAuwYAJsHFeoSgwjbt5XZ4be+uQ9O42DFDACdFsqJ -naN+9EIO/8b8Ct7pfTEgY1s= -=crWI +iD8DBQFF8ApccxLzpIGCsLQRArxqAJ4xBYtafOAMYPnB65r31UGowyIl6QCggYTx +dd8JulvqlEow8Acb5zVmw0k= +=frhh -----END PGP SIGNATURE----- diff --git a/dev-java/commons-io/commons-io-1.3.ebuild b/dev-java/commons-io/commons-io-1.3.ebuild index fdb903408d1f..3eaa3c6fad26 100644 --- a/dev-java/commons-io/commons-io-1.3.ebuild +++ b/dev-java/commons-io/commons-io-1.3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-io/commons-io-1.3.ebuild,v 1.2 2007/03/08 11:12:36 betelgeuse Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-io/commons-io-1.3.ebuild,v 1.3 2007/03/08 13:06:36 betelgeuse Exp $ JAVA_PKG_IUSE="doc source" @@ -38,10 +38,15 @@ src_unpack() { } src_test() { - #By default libdir is ${HOME}/.maven so it can be /root/.maven - ANT_OPTS="-Djava.io.tmpdir=${T}" eant test \ - -Dgentoo.classpath="$(java-pkg_getjars junit)" \ - -Dlibdir="libdir" + if hasq userpriv ${FEATURES}; then + #By default libdir is ${HOME}/.maven so it can be /root/.maven + ANT_OPTS="-Djava.io.tmpdir=${T}" eant test \ + -Dgentoo.classpath="$(java-pkg_getjars junit)" \ + -Dlibdir="libdir" + else + elog "Tests require userpriv in FEATURES because they test" + elog "accessing files which always succeeds for root." + fi } src_install() {