1 |
commit: bc8b86bd8193de379f7acc368343174d9295f5ea |
2 |
Author: WANG Xuerui <xen0n <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 10 00:31:01 2022 +0000 |
4 |
Commit: WANG Xuerui <xen0n <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 10 00:43:23 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc8b86bd |
7 |
|
8 |
media-libs/libjpeg-turbo: fix test suite on loong |
9 |
|
10 |
By marking the correct floating-point behavior, as suggested by |
11 |
upstream; this could be done independently of upstreaming of said logic. |
12 |
Tests now pass on real hardware. |
13 |
|
14 |
See: https://github.com/libjpeg-turbo/libjpeg-turbo/issues/597 |
15 |
Signed-off-by: WANG Xuerui <xen0n <AT> gentoo.org> |
16 |
|
17 |
media-libs/libjpeg-turbo/libjpeg-turbo-2.1.3.ebuild | 9 +++++++++ |
18 |
1 file changed, 9 insertions(+) |
19 |
|
20 |
diff --git a/media-libs/libjpeg-turbo/libjpeg-turbo-2.1.3.ebuild b/media-libs/libjpeg-turbo/libjpeg-turbo-2.1.3.ebuild |
21 |
index 33dbbbc93b45..303151384efd 100644 |
22 |
--- a/media-libs/libjpeg-turbo/libjpeg-turbo-2.1.3.ebuild |
23 |
+++ b/media-libs/libjpeg-turbo/libjpeg-turbo-2.1.3.ebuild |
24 |
@@ -75,6 +75,15 @@ multilib_src_configure() { |
25 |
) |
26 |
fi |
27 |
|
28 |
+ # We should tell the test suite which floating-point flavor we are |
29 |
+ # expecting: https://github.com/libjpeg-turbo/libjpeg-turbo/issues/597 |
30 |
+ # For now, mark loong as fp-contract. |
31 |
+ if use loong; then |
32 |
+ mycmakeargs+=( |
33 |
+ -DFLOATTEST=fp-contract |
34 |
+ ) |
35 |
+ fi |
36 |
+ |
37 |
# mostly for Prefix, ensure that we use our yasm if installed and |
38 |
# not pick up host-provided nasm |
39 |
if has_version -b dev-lang/yasm && ! has_version -b dev-lang/nasm; then |