From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Qfubh-0005v6-5s for garchives@archives.gentoo.org; Sun, 10 Jul 2011 14:03:37 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 34B4321C077; Sun, 10 Jul 2011 14:03:29 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id E1E2421C077 for ; Sun, 10 Jul 2011 14:03:28 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 339821B4060 for ; Sun, 10 Jul 2011 14:03:28 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 2098) id 109CE2004B; Sun, 10 Jul 2011 14:03:26 +0000 (UTC) From: "Zac Medico (zmedico)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, zmedico@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/portage: portage-9999.ebuild ChangeLog X-VCS-Repository: gentoo-x86 X-VCS-Files: portage-9999.ebuild ChangeLog X-VCS-Directories: sys-apps/portage X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico Content-Type: text/plain; charset=utf8 Message-Id: <20110710140326.109CE2004B@flycatcher.gentoo.org> Date: Sun, 10 Jul 2011 14:03:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 1483cce7a79575b6dc7f0917699b28bd zmedico 11/07/10 14:03:26 Modified: portage-9999.ebuild ChangeLog Log: Install minimal tests for preinst sanity check. =20 (Portage version: 2.2.0_alpha43_p31/cvs/Linux i686) Revision Changes Path 1.28 sys-apps/portage/portage-9999.ebuild file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/p= ortage-9999.ebuild?rev=3D1.28&view=3Dmarkup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/p= ortage-9999.ebuild?rev=3D1.28&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/p= ortage-9999.ebuild?r1=3D1.27&r2=3D1.28 Index: portage-9999.ebuild =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-9999.ebuild,v retrieving revision 1.27 retrieving revision 1.28 diff -u -r1.27 -r1.28 --- portage-9999.ebuild 28 Jun 2011 10:03:46 -0000 1.27 +++ portage-9999.ebuild 10 Jul 2011 14:03:25 -0000 1.28 @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-9999.ebuild,= v 1.27 2011/06/28 10:03:46 zmedico Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-9999.ebuild,= v 1.28 2011/07/10 14:03:25 zmedico Exp $ =20 # Require EAPI 2 since we now require at least python-2.6 (for python 3 # syntax support) which also requires EAPI 2. @@ -220,6 +220,18 @@ fi done =20 + # We install some minimal tests for use as a preinst sanity check. + # These tests must be able to run without a full source tree and + # without relying on a previous portage instance being installed. + cd "$S" || die "cd failed" + exeinto $portage_base/pym/portage/tests || die + doexe pym/portage/tests/runTests || die + insinto $portage_base/pym/portage/tests || die + doins pym/portage/tests/*.py || die + insinto $portage_base/pym/portage/tests/lint || die + doins pym/portage/tests/lint/*.py || die + doins pym/portage/tests/lint/__test__ || die + # Symlinks to directories cause up/downgrade issues and the use of thes= e # modules outside of portage is probably negligible. for x in "${D}${portage_base}/pym/"{cache,elog_modules} ; do @@ -261,6 +273,15 @@ } =20 pkg_preinst() { + if [[ $ROOT =3D=3D / ]] ; then + # Run some minimal tests as a sanity check. + local test_runner=3D$(find "$D" -name runTests) + if [[ -n $test_runner && -x $test_runner ]] ; then + einfo "Running preinst sanity tests..." + "$test_runner" || die "preinst sanity tests failed" + fi + fi + if ! use build && ! has_version dev-python/pycrypto && \ ! has_version '>=3Ddev-lang/python-2.6[ssl]' ; then ewarn "If you are an ebuild developer and you plan to commit ebuilds" 1.848 sys-apps/portage/ChangeLog file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/C= hangeLog?rev=3D1.848&view=3Dmarkup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/C= hangeLog?rev=3D1.848&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/C= hangeLog?r1=3D1.847&r2=3D1.848 Index: ChangeLog =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v retrieving revision 1.847 retrieving revision 1.848 diff -u -r1.847 -r1.848 --- ChangeLog 9 Jul 2011 09:31:22 -0000 1.847 +++ ChangeLog 10 Jul 2011 14:03:25 -0000 1.848 @@ -1,6 +1,9 @@ # ChangeLog for sys-apps/portage # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.847 20= 11/07/09 09:31:22 xarthisius Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.848 20= 11/07/10 14:03:25 zmedico Exp $ + + 10 Jul 2011; Zac Medico portage-9999.ebuild: + Install minimal tests for preinst sanity check. =20 09 Jul 2011; Kacper Kowalik portage-2.1.10.3.e= build: ppc64 stable wrt #373523