mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
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:
14
media-libs/opencolorio/files/opencolorio-2.1.1-gcc12.patch
Normal file
14
media-libs/opencolorio/files/opencolorio-2.1.1-gcc12.patch
Normal 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>
|
||||
|
||||
@@ -55,6 +55,10 @@ RESTRICT="test"
|
||||
|
||||
CMAKE_BUILD_TYPE=RelWithDebInfo
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-gcc12.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user