media-libs/ctl: Fix compat with newer openexr
authorPacho Ramos <pacho@gentoo.org>
Sun, 7 Apr 2019 10:31:34 +0000 (12:31 +0200)
committerPacho Ramos <pacho@gentoo.org>
Sun, 7 Apr 2019 10:31:50 +0000 (12:31 +0200)
Closes: https://bugs.gentoo.org/668454
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
media-libs/ctl/ctl-1.5.2-r1.ebuild
media-libs/ctl/files/ctl-1.5.2-openexr-2.3.patch [new file with mode: 0644]

index 55acc2744c99a03382f82db8dd02267944f277d5..07a248ff7ba34f1cb254ae230ad99d777621dc9b 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -22,6 +22,9 @@ DEPEND="${RDEPEND}
 
 S="${WORKDIR}/CTL-ctl-${PV}"
 
-PATCHES=( "${FILESDIR}/${P}-Use-GNUInstallDirs-and-fix-PkgConfig-files-1.patch" )
+PATCHES=(
+       "${FILESDIR}/${P}-Use-GNUInstallDirs-and-fix-PkgConfig-files-1.patch"
+       "${FILESDIR}/${P}-openexr-2.3.patch"
+)
 
 mycmakeargs=( -DCMAKE_INSTALL_DOCDIR="share/doc/${PF}" )
diff --git a/media-libs/ctl/files/ctl-1.5.2-openexr-2.3.patch b/media-libs/ctl/files/ctl-1.5.2-openexr-2.3.patch
new file mode 100644 (file)
index 0000000..ac4ceb3
--- /dev/null
@@ -0,0 +1,13 @@
+Index: CTL-ctl-1.5.2/lib/IlmCtlSimd/CtlSimdInst.cpp
+===================================================================
+--- CTL-ctl-1.5.2.orig/lib/IlmCtlSimd/CtlSimdInst.cpp
++++ CTL-ctl-1.5.2/lib/IlmCtlSimd/CtlSimdInst.cpp
+@@ -189,7 +189,7 @@ SimdInst::executePath (SimdBoolMask &mas
+           REPLACE_EXC
+               (e, "\n" <<
+                xcontext.fileName() << ":" <<
+-               inst->lineNumber() << ": " << e);
++               inst->lineNumber() << ": " << e.what());
+           throw e;
+       }