From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2F24C139694 for ; Mon, 29 May 2017 18:45:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 23A8121C012; Mon, 29 May 2017 18:45:13 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EF89321C012 for ; Mon, 29 May 2017 18:45:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8E8443416E2 for ; Mon, 29 May 2017 18:45:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 046677468 for ; Mon, 29 May 2017 18:45:10 +0000 (UTC) From: "Mike Gilbert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Gilbert" Message-ID: <1496083507.acd505742fe4dbbf7609940e0cee0e25c364b74b.floppym@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/cracklib/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-libs/cracklib/cracklib-2.9.6-r1.ebuild X-VCS-Directories: sys-libs/cracklib/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: acd505742fe4dbbf7609940e0cee0e25c364b74b X-VCS-Branch: master Date: Mon, 29 May 2017 18:45:10 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 847d96b3-7b49-4838-8a1e-783831c2b1bd X-Archives-Hash: 6c61185a8400eb42c3e2b4901bc784a1 commit: acd505742fe4dbbf7609940e0cee0e25c364b74b Author: Mike Gilbert gentoo org> AuthorDate: Mon May 29 18:44:21 2017 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Mon May 29 18:45:07 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=acd50574 sys-libs/cracklib: fix test phase nosetests was used for no reason. Replace with unittest, which requires no external dependencies. The test code was loading libcrack.so from the system libdir rather than the freshly build library. Package-Manager: Portage-2.3.6_p1, Repoman-2.3.2_p69 sys-libs/cracklib/cracklib-2.9.6-r1.ebuild | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys-libs/cracklib/cracklib-2.9.6-r1.ebuild b/sys-libs/cracklib/cracklib-2.9.6-r1.ebuild index b4d9cfdb5a9..101aef42295 100644 --- a/sys-libs/cracklib/cracklib-2.9.6-r1.ebuild +++ b/sys-libs/cracklib/cracklib-2.9.6-r1.ebuild @@ -16,7 +16,7 @@ SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.gz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~m68k-mint" -IUSE="nls python static-libs test zlib" +IUSE="nls python static-libs zlib" REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" RDEPEND="python? ( ${PYTHON_DEPS} ) @@ -24,7 +24,6 @@ RDEPEND="python? ( ${PYTHON_DEPS} ) DEPEND="${RDEPEND} python? ( dev-python/setuptools[${PYTHON_USEDEP}] - test? ( dev-python/nose[${PYTHON_USEDEP}] ) )" S=${WORKDIR}/${MY_P} @@ -72,11 +71,12 @@ multilib_src_compile() { } multilib_src_test() { - do_python + # Make sure we load the freshly built library + LD_LIBRARY_PATH="${BUILD_DIR}/lib/.libs" do_python } python_test() { - nosetests -w "${S}"/python || die "Tests fail with ${EPYTHON}" + ${EPYTHON} -m unittest test_cracklib || die "Tests fail with ${EPYTHON}" } multilib_src_install() {