media-libs/opencolorio: fix build with GCC 12

Closes: https://bugs.gentoo.org/841479
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2022-05-07 08:08:56 +01:00
parent 18d7b78bdd
commit 16594ec389
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
https://src.fedoraproject.org/rpms/OpenColorIO/raw/rawhide/f/OCIO-strlen.patch
https://github.com/AcademySoftwareFoundation/OpenColorIO/commit/4fa94918c2cf572dcaf61ca07016f3b5c231c14c
https://bugs.gentoo.org/841479
--- a/src/OpenColorIO/FileRules.cpp
+++ b/src/OpenColorIO/FileRules.cpp
@@ -3,6 +3,7 @@
#include <algorithm>
#include <cctype>
+#include <cstring>
#include <map>
#include <regex>
#include <sstream>

View File

@@ -55,6 +55,10 @@ RESTRICT="test"
CMAKE_BUILD_TYPE=RelWithDebInfo
PATCHES=(
"${FILESDIR}"/${P}-gcc12.patch
)
pkg_setup() {
use python && python-single-r1_pkg_setup
}