From: Johannes Huber Date: Sun, 20 May 2018 22:36:15 +0000 (+0200) Subject: media-libs/opencolorio: Fix build w/ yaml-cpp-0.6 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=8932d46026a180fc809252ae81cbbd4da70d7af9;p=gentoo.git media-libs/opencolorio: Fix build w/ yaml-cpp-0.6 Closes: https://bugs.gentoo.org/651970 Reported-by: Bernd Feige Thanks-to: Joakim Gebart Nohlgård Package-Manager: Portage-2.3.38, Repoman-2.3.9 --- diff --git a/media-libs/opencolorio/files/opencolorio-1.1.0-yaml-cpp-0.6.patch b/media-libs/opencolorio/files/opencolorio-1.1.0-yaml-cpp-0.6.patch new file mode 100644 index 000000000000..2094e1ed58b8 --- /dev/null +++ b/media-libs/opencolorio/files/opencolorio-1.1.0-yaml-cpp-0.6.patch @@ -0,0 +1,54 @@ +commit 8ce96cc5d590a1c094fb316968f2db8464f3be82 +Author: Joakim NohlgÃ¥rd +Date: Fri Mar 30 13:47:28 2018 +0200 + + OCIOYaml: Remove forward declarations to use system yaml-cpp headers + +diff --git a/src/core/OCIOYaml.cpp b/src/core/OCIOYaml.cpp +index 68fcef6..8047d7e 100644 +--- a/src/core/OCIOYaml.cpp ++++ b/src/core/OCIOYaml.cpp +@@ -30,43 +30,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + #include + +-#ifndef WIN32 +- +-// fwd declare yaml-cpp visibility +-#pragma GCC visibility push(hidden) +-namespace YAML { +- class Exception; +- class BadDereference; +- class RepresentationException; +- class EmitterException; +- class ParserException; +- class InvalidScalar; +- class KeyNotFound; +- template class TypedKeyNotFound; +- template <> class TypedKeyNotFound; +- template <> class TypedKeyNotFound; +- template <> class TypedKeyNotFound; +- template <> class TypedKeyNotFound; +- template <> class TypedKeyNotFound; +- template <> class TypedKeyNotFound; +- template <> class TypedKeyNotFound; +- template <> class TypedKeyNotFound; +- template <> class TypedKeyNotFound; +- template <> class TypedKeyNotFound; +- template <> class TypedKeyNotFound; +- template <> class TypedKeyNotFound; +- template <> class TypedKeyNotFound; +- template <> class TypedKeyNotFound; +- template <> class TypedKeyNotFound; +- template <> class TypedKeyNotFound; +- template <> class TypedKeyNotFound; +- template <> class TypedKeyNotFound; +- template <> class TypedKeyNotFound; +-} +-#pragma GCC visibility pop +- +-#endif +- + #ifdef WIN32 + #pragma warning( push ) + #pragma warning( disable: 4146 ) diff --git a/media-libs/opencolorio/opencolorio-1.1.0-r1.ebuild b/media-libs/opencolorio/opencolorio-1.1.0-r1.ebuild index 82a5b17acd9e..7ed8940ab029 100644 --- a/media-libs/opencolorio/opencolorio-1.1.0-r1.ebuild +++ b/media-libs/opencolorio/opencolorio-1.1.0-r1.ebuild @@ -44,6 +44,7 @@ PATCHES=( "${FILESDIR}/${P}-fix-compile-error-with-Lut1DOp.cpp.patch" "${FILESDIR}/${P}-use-GNUInstallDirs-and-fix-cmake-install-location.patch" "${FILESDIR}/${P}-remove-building-of-bundled-programs.patch" + "${FILESDIR}/${P}-yaml-cpp-0.6.patch" ) pkg_setup() {