Add patch to deal with multiple instantation issue.

This commit is contained in:
Richard Shaw 2021-08-23 12:54:18 -05:00
parent 01ded9b06a
commit c7c7799882
2 changed files with 16 additions and 0 deletions

View File

@ -19,6 +19,9 @@ Patch0: ocio-install.patch
# https://github.com/AcademySoftwareFoundation/OpenColorIO/pull/1432
Patch1: 1432.patch
# Violates c++11 (definition shall appear at most one in a program)
Patch2: ocio-cpp11.patch
# OIIO is only built for these arches due to Libraw
%if 0%{?rhel} >= 8
ExclusiveArch: x86_64 ppc64le

13
ocio-cpp11.patch Normal file
View File

@ -0,0 +1,13 @@
Index: OpenColorIO-2.0.1/src/OpenColorIO/Config.cpp
===================================================================
--- OpenColorIO-2.0.1.orig/src/OpenColorIO/Config.cpp
+++ OpenColorIO-2.0.1/src/OpenColorIO/Config.cpp
@@ -1141,7 +1141,7 @@ public:
// Instantiate the cache with the right types.
-template class ProcessorCache<std::size_t, ProcessorRcPtr>;
+extern template class ProcessorCache<std::size_t, ProcessorRcPtr>;
///////////////////////////////////////////////////////////////////////////