From 8932d46026a180fc809252ae81cbbd4da70d7af9 Mon Sep 17 00:00:00 2001 From: Johannes Huber Date: Mon, 21 May 2018 00:36:15 +0200 Subject: [PATCH] media-libs/opencolorio: Fix build w/ yaml-cpp-0.6 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- .../opencolorio-1.1.0-yaml-cpp-0.6.patch | 54 +++++++++++++++++++ .../opencolorio/opencolorio-1.1.0-r1.ebuild | 1 + 2 files changed, 55 insertions(+) create mode 100644 media-libs/opencolorio/files/opencolorio-1.1.0-yaml-cpp-0.6.patch 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() { -- 2.26.2