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