From ecee07a2f88b3142f5078433ff2f1554370076b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Cerqueira?= Date: Tue, 18 Apr 2023 12:04:00 +0100 Subject: [PATCH] openexr: update to 3.1.7. --- srcpkgs/openexr/patches/fix-i686.patch | 31 ++++++++++++++++++++++++++ srcpkgs/openexr/template | 6 ++--- 2 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/openexr/patches/fix-i686.patch diff --git a/srcpkgs/openexr/patches/fix-i686.patch b/srcpkgs/openexr/patches/fix-i686.patch new file mode 100644 index 000000000000..fa8160c8b008 --- /dev/null +++ b/srcpkgs/openexr/patches/fix-i686.patch @@ -0,0 +1,31 @@ +From 0293978345d9b9188da36e48aa5fa419f81a57ac Mon Sep 17 00:00:00 2001 +From: Leon Marz +Date: Mon, 18 Apr 2022 10:35:52 +0200 +Subject: [PATCH] fix x86 + +--- + src/lib/Iex/IexMathFpu.cpp | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/lib/Iex/IexMathFpu.cpp b/src/lib/Iex/IexMathFpu.cpp +index 996bae8..3b6b5b9 100644 +--- a/src/lib/Iex/IexMathFpu.cpp ++++ b/src/lib/Iex/IexMathFpu.cpp +@@ -251,14 +251,14 @@ restoreControlRegs (const ucontext_t & ucon, bool clearExceptions) + inline void + restoreControlRegs (const ucontext_t & ucon, bool clearExceptions) + { +-# if (defined(__GLIBC__) && defined(__i386__)) || defined(__ANDROID_API__) ++# if defined(__i386__) || defined(__ANDROID_API__) + setCw ((ucon.uc_mcontext.fpregs->cw & cwRestoreMask) | cwRestoreVal); + #else + setCw ((ucon.uc_mcontext.fpregs->cwd & cwRestoreMask) | cwRestoreVal); + # endif + + _fpstate* kfp = reinterpret_cast<_fpstate*> (ucon.uc_mcontext.fpregs); +-# if defined(__GLIBC__) && defined(__i386__) ++# if defined(__i386__) + setMxcsr (kfp->magic == 0 ? kfp->mxcsr : 0, clearExceptions); + #else + setMxcsr (kfp->mxcsr, clearExceptions); + diff --git a/srcpkgs/openexr/template b/srcpkgs/openexr/template index 2c2b21b043b5..b15bfb736f72 100644 --- a/srcpkgs/openexr/template +++ b/srcpkgs/openexr/template @@ -1,7 +1,7 @@ # Template file for 'openexr' pkgname=openexr -version=3.1.5 -revision=2 +version=3.1.7 +revision=1 build_style=cmake build_helper="qemu" hostmakedepends="pkg-config" @@ -12,7 +12,7 @@ license="BSD-3-Clause" homepage="https://www.openexr.com/" changelog="https://raw.githubusercontent.com/AcademySoftwareFoundation/openexr/main/CHANGES.md" distfiles="https://github.com/openexr/openexr/archive/v${version}.tar.gz>openexr-${version}.tar.gz" -checksum=93925805c1fc4f8162b35f0ae109c4a75344e6decae5a240afdfce25f8a433ec +checksum=78dbca39115a1c526e6728588753955ee75fa7f5bb1a6e238bed5b6d66f91fd7 if [ "$XBPS_CHECK_PKGS" ]; then configure_args+=" -DBUILD_TESTING=ON"