From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1394637-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id C4891158091
	for <garchives@archives.gentoo.org>; Tue, 10 May 2022 00:44:36 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 75F50E0825;
	Tue, 10 May 2022 00:44:35 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id B80B6E0823
	for <gentoo-commits@lists.gentoo.org>; Tue, 10 May 2022 00:44:34 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 51ABA3414DD
	for <gentoo-commits@lists.gentoo.org>; Tue, 10 May 2022 00:44:33 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id B8BAB458
	for <gentoo-commits@lists.gentoo.org>; Tue, 10 May 2022 00:44:31 +0000 (UTC)
From: "WANG Xuerui" <xen0n@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "WANG Xuerui" <xen0n@gentoo.org>
Message-ID: <1652143403.bc8b86bd8193de379f7acc368343174d9295f5ea.xen0n@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libjpeg-turbo/
X-VCS-Repository: repo/gentoo
X-VCS-Files: media-libs/libjpeg-turbo/libjpeg-turbo-2.1.3.ebuild
X-VCS-Directories: media-libs/libjpeg-turbo/
X-VCS-Committer: xen0n
X-VCS-Committer-Name: WANG Xuerui
X-VCS-Revision: bc8b86bd8193de379f7acc368343174d9295f5ea
X-VCS-Branch: master
Date: Tue, 10 May 2022 00:44:31 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 3fa4cdb0-43e1-4144-b338-21fd6b2e4828
X-Archives-Hash: 8b41b635ef5d5797248f44f8e5da9c32

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