diff --git a/OpenColorIO.spec b/OpenColorIO.spec index 7dbb21d..27f0420 100644 --- a/OpenColorIO.spec +++ b/OpenColorIO.spec @@ -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 diff --git a/ocio-cpp11.patch b/ocio-cpp11.patch new file mode 100644 index 0000000..9d5d242 --- /dev/null +++ b/ocio-cpp11.patch @@ -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; ++extern template class ProcessorCache; + + + ///////////////////////////////////////////////////////////////////////////