summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-05-07 08:08:56 +0100
committerSam James <sam@gentoo.org>2022-05-07 08:17:00 +0100
commit16594ec389119cfd9c6058b5b00972b80cd532d7 (patch)
tree72e7433bd4acec0d069b93dce5038c1c1167a9b6
parentmail-filter/pyzor: add 1.0.0_p20211223 (diff)
downloadgentoo-16594ec389119cfd9c6058b5b00972b80cd532d7.tar.gz
gentoo-16594ec389119cfd9c6058b5b00972b80cd532d7.tar.bz2
gentoo-16594ec389119cfd9c6058b5b00972b80cd532d7.zip
media-libs/opencolorio: fix build with GCC 12
Closes: https://bugs.gentoo.org/841479 Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--media-libs/opencolorio/files/opencolorio-2.1.1-gcc12.patch14
-rw-r--r--media-libs/opencolorio/opencolorio-2.1.1-r7.ebuild4
2 files changed, 18 insertions, 0 deletions
diff --git a/media-libs/opencolorio/files/opencolorio-2.1.1-gcc12.patch b/media-libs/opencolorio/files/opencolorio-2.1.1-gcc12.patch
new file mode 100644
index 000000000000..0bf00862e51b
--- /dev/null
+++ b/media-libs/opencolorio/files/opencolorio-2.1.1-gcc12.patch
@@ -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>
+
diff --git a/media-libs/opencolorio/opencolorio-2.1.1-r7.ebuild b/media-libs/opencolorio/opencolorio-2.1.1-r7.ebuild
index 942486329016..b8d6102d7296 100644
--- a/media-libs/opencolorio/opencolorio-2.1.1-r7.ebuild
+++ b/media-libs/opencolorio/opencolorio-2.1.1-r7.ebuild
@@ -55,6 +55,10 @@ RESTRICT="test"
CMAKE_BUILD_TYPE=RelWithDebInfo
+PATCHES=(
+ "${FILESDIR}"/${P}-gcc12.patch
+)
+
pkg_setup() {
use python && python-single-r1_pkg_setup
}