Add patch to fix gcc 12 related FTBFS.

This commit is contained in:
Richard Shaw 2022-01-29 15:45:50 -06:00
parent bbe1193d6d
commit 80c57925b2
2 changed files with 14 additions and 0 deletions

12
OCIO-strlen.patch Normal file
View File

@ -0,0 +1,12 @@
Index: OpenColorIO-2.1.1/src/OpenColorIO/FileRules.cpp
===================================================================
--- OpenColorIO-2.1.1.orig/src/OpenColorIO/FileRules.cpp
+++ OpenColorIO-2.1.1/src/OpenColorIO/FileRules.cpp
@@ -3,6 +3,7 @@
#include <algorithm>
#include <cctype>
+#include <cstring>
#include <map>
#include <regex>
#include <sstream>

View File

@ -12,6 +12,8 @@ License: BSD
URL: http://opencolorio.org/
Source0: https://github.com/AcademySoftwareFoundation/OpenColorIO/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0: OCIO-strlen.patch
# OIIO is only built for these arches due to Libraw
%if 0%{?rhel} >= 8
ExclusiveArch: x86_64 ppc64le