1 |
commit: d6cecbf80a1279b77eaefb9f2b8fb213d77a6a90 |
2 |
Author: Petr Vaněk <arkamar <AT> atlas <DOT> cz> |
3 |
AuthorDate: Thu Aug 18 08:14:33 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 18 18:42:13 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6cecbf8 |
7 |
|
8 |
dev-libs/json-parser: fix tests |
9 |
|
10 |
It is necessary to link the test with libm. |
11 |
|
12 |
Fixes: 3d84addb0089 ("dev-libs/json-parser: new package, add 1.1.0_p20211208") |
13 |
Closes: https://bugs.gentoo.org/865669 |
14 |
Signed-off-by: Petr Vaněk <arkamar <AT> atlas.cz> |
15 |
Closes: https://github.com/gentoo/gentoo/pull/26908 |
16 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
17 |
|
18 |
dev-libs/json-parser/json-parser-1.1.0_p20211208.ebuild | 2 +- |
19 |
1 file changed, 1 insertion(+), 1 deletion(-) |
20 |
|
21 |
diff --git a/dev-libs/json-parser/json-parser-1.1.0_p20211208.ebuild b/dev-libs/json-parser/json-parser-1.1.0_p20211208.ebuild |
22 |
index a551d83b795c..6fd9ed14039b 100644 |
23 |
--- a/dev-libs/json-parser/json-parser-1.1.0_p20211208.ebuild |
24 |
+++ b/dev-libs/json-parser/json-parser-1.1.0_p20211208.ebuild |
25 |
@@ -68,7 +68,7 @@ python_test() { |
26 |
} |
27 |
|
28 |
src_test() { |
29 |
- edo $(tc-getCC) ${CFLAGS} -I. ${CPPFLAGS} ${LDFLAGS} -o tests/test tests/test.c json.o |
30 |
+ edo $(tc-getCC) ${CFLAGS} -I. ${CPPFLAGS} ${LDFLAGS} -o tests/test tests/test.c json.o -lm |
31 |
pushd tests > /dev/null || die |
32 |
edo ./test |
33 |
use python && distutils-r1_src_test |