From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1707682-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 (4096 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 9DB6C15813A
	for <garchives@archives.gentoo.org>; Thu, 09 Jan 2025 23:05:50 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id C1B14E0788;
	Thu, 09 Jan 2025 23:05:49 +0000 (UTC)
Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id AB39FE0788
	for <gentoo-commits@lists.gentoo.org>; Thu, 09 Jan 2025 23:05:49 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id F403D33C84E
	for <gentoo-commits@lists.gentoo.org>; Thu, 09 Jan 2025 23:05:48 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 2D2B11DEA
	for <gentoo-commits@lists.gentoo.org>; Thu, 09 Jan 2025 23:05:46 +0000 (UTC)
From: "Sam James" <sam@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, "Sam James" <sam@gentoo.org>
Message-ID: <1736463844.1b32ae2e36a5f5de43c7d526f1d21c602625652d.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/osl/
X-VCS-Repository: repo/gentoo
X-VCS-Files: media-libs/osl/osl-1.12.14.0-r2.ebuild media-libs/osl/osl-1.12.14.0-r3.ebuild
X-VCS-Directories: media-libs/osl/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: 1b32ae2e36a5f5de43c7d526f1d21c602625652d
X-VCS-Branch: master
Date: Thu, 09 Jan 2025 23:05:46 +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: dcd7f81b-3d3b-4d0b-b2b3-e72ad1ec3197
X-Archives-Hash: 26ba4e2f1193c86bee0f638c4683e8a0

commit:     1b32ae2e36a5f5de43c7d526f1d21c602625652d
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Thu Jan  9 21:24:24 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jan  9 23:04:04 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b32ae2e

media-libs/osl: backport 1.13 changes to 1.12.14.0-r3

Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...1.12.14.0-r2.ebuild => osl-1.12.14.0-r3.ebuild} | 38 ++++++++++++++--------
 1 file changed, 24 insertions(+), 14 deletions(-)

diff --git a/media-libs/osl/osl-1.12.14.0-r2.ebuild b/media-libs/osl/osl-1.12.14.0-r3.ebuild
similarity index 95%
rename from media-libs/osl/osl-1.12.14.0-r2.ebuild
rename to media-libs/osl/osl-1.12.14.0-r3.ebuild
index cbce89ca9931..92d756ff9fb0 100644
--- a/media-libs/osl/osl-1.12.14.0-r2.ebuild
+++ b/media-libs/osl/osl-1.12.14.0-r3.ebuild
@@ -24,7 +24,7 @@ else
 fi
 
 LICENSE="BSD"
-SLOT="0/$(ver_cut 1-3)"
+SLOT="0/$(ver_cut 1-2)" # based on SONAME
 
 X86_CPU_FEATURES=(
 	sse2:sse2 sse3:sse3 ssse3:ssse3 sse4_1:sse4.1 sse4_2:sse4.2
@@ -33,7 +33,9 @@ X86_CPU_FEATURES=(
 CPU_FEATURES=( "${X86_CPU_FEATURES[@]/#/cpu_flags_x86_}" )
 
 IUSE="debug doc gui libcxx nofma partio test ${CPU_FEATURES[*]%:*} python"
+
 RESTRICT="!test? ( test )"
+
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
 RDEPEND="
@@ -58,8 +60,12 @@ RDEPEND="
 "
 
 DEPEND="${RDEPEND}
+	dev-util/patchelf
 	>=media-libs/openexr-3
 	sys-libs/zlib
+	test? (
+		media-fonts/droid
+	)
 "
 BDEPEND="
 	sys-devel/bison
@@ -124,25 +130,24 @@ src_configure() {
 					"b8_AVX512_noFMA"
 					"b16_AVX512_noFMA"
 				)
-			else
-				mybatched+=(
-					"b8_AVX512"
-					"b16_AVX512"
-				)
 			fi
+			mybatched+=(
+				"b8_AVX512"
+				"b16_AVX512"
+			)
 		fi
 		if use cpu_flags_x86_avx2 ; then
 			if use nofma; then
 				mybatched+=(
 					"b8_AVX2_noFMA"
 				)
-			else
-				mybatched+=(
-					"b8_AVX2"
-				)
 			fi
+			mybatched+=(
+				"b8_AVX2"
+			)
 		fi
-	elif use cpu_flags_x86_avx ; then
+	fi
+	if use cpu_flags_x86_avx ; then
 		mybatched+=(
 			"b8_AVX"
 		)
@@ -191,7 +196,7 @@ src_configure() {
 
 	if use partio; then
 		mycmakeargs+=(
-			-Dpartio_ROOT="${EPREFIX}/usr"
+			-Dpartio_DIR="${EPREFIX}/usr"
 		)
 	fi
 
@@ -213,7 +218,7 @@ src_test() {
 	ln -s "${CMAKE_USE_DIR}/src/cmake/" "${BUILD_DIR}/src/cmake" || die
 
 	CMAKE_SKIP_TESTS=(
-		"broken"
+		"-broken$"
 		"^render"
 
 		# outright fail
@@ -222,6 +227,7 @@ src_test() {
 		"^color.batched$"
 		"^color.batched.opt$"
 		"^matrix.batched.opt$"
+		"^osl-imageio"
 		"^spline-reg.regress.batched.opt$"
 		"^transform-reg.regress.batched.opt$"
 	)
@@ -355,7 +361,7 @@ src_test() {
 	)
 
 	local -x DEBUG CXXFLAGS LD_LIBRARY_PATH DIR OSL_DIR OSL_SOURCE_DIR PYTHONPATH
-	DEBUG=1 # doubles the floating point tolerance
+	DEBUG=1 # doubles the floating point tolerance so we avoid FMA related issues
 	CXXFLAGS="-I${T}/usr/include"
 	LD_LIBRARY_PATH="${T}/usr/$(get_libdir)"
 	OSL_DIR="${T}/usr/$(get_libdir)/cmake/OSL"
@@ -367,6 +373,10 @@ src_test() {
 
 	cmake_src_test
 
+	einfo ""
+	einfo "testing render tests in isolation"
+	einfo ""
+
 	CMAKE_SKIP_TESTS=(
 		"^render-background$"
 		"^render-bumptest$"