1 |
commit: acd505742fe4dbbf7609940e0cee0e25c364b74b |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 29 18:44:21 2017 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 29 18:45:07 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=acd50574 |
7 |
|
8 |
sys-libs/cracklib: fix test phase |
9 |
|
10 |
nosetests was used for no reason. Replace with unittest, which requires |
11 |
no external dependencies. |
12 |
|
13 |
The test code was loading libcrack.so from the system libdir rather |
14 |
than the freshly build library. |
15 |
|
16 |
Package-Manager: Portage-2.3.6_p1, Repoman-2.3.2_p69 |
17 |
|
18 |
sys-libs/cracklib/cracklib-2.9.6-r1.ebuild | 8 ++++---- |
19 |
1 file changed, 4 insertions(+), 4 deletions(-) |
20 |
|
21 |
diff --git a/sys-libs/cracklib/cracklib-2.9.6-r1.ebuild b/sys-libs/cracklib/cracklib-2.9.6-r1.ebuild |
22 |
index b4d9cfdb5a9..101aef42295 100644 |
23 |
--- a/sys-libs/cracklib/cracklib-2.9.6-r1.ebuild |
24 |
+++ b/sys-libs/cracklib/cracklib-2.9.6-r1.ebuild |
25 |
@@ -16,7 +16,7 @@ SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.gz" |
26 |
LICENSE="LGPL-2.1" |
27 |
SLOT="0" |
28 |
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" |
29 |
-IUSE="nls python static-libs test zlib" |
30 |
+IUSE="nls python static-libs zlib" |
31 |
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
32 |
|
33 |
RDEPEND="python? ( ${PYTHON_DEPS} ) |
34 |
@@ -24,7 +24,6 @@ RDEPEND="python? ( ${PYTHON_DEPS} ) |
35 |
DEPEND="${RDEPEND} |
36 |
python? ( |
37 |
dev-python/setuptools[${PYTHON_USEDEP}] |
38 |
- test? ( dev-python/nose[${PYTHON_USEDEP}] ) |
39 |
)" |
40 |
|
41 |
S=${WORKDIR}/${MY_P} |
42 |
@@ -72,11 +71,12 @@ multilib_src_compile() { |
43 |
} |
44 |
|
45 |
multilib_src_test() { |
46 |
- do_python |
47 |
+ # Make sure we load the freshly built library |
48 |
+ LD_LIBRARY_PATH="${BUILD_DIR}/lib/.libs" do_python |
49 |
} |
50 |
|
51 |
python_test() { |
52 |
- nosetests -w "${S}"/python || die "Tests fail with ${EPYTHON}" |
53 |
+ ${EPYTHON} -m unittest test_cracklib || die "Tests fail with ${EPYTHON}" |
54 |
} |
55 |
|
56 |
multilib_src_install() { |