summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernd Waibel <waebbl@gmail.com>2019-03-31 10:23:27 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2019-05-19 19:23:38 +0200
commitc90bb560b5723836ba466d41886e75fe832c1e9c (patch)
treed2c07afff02c8f27c784bc01c3af2a9ad594a1aa /media-libs/opencolorio
parentmedia-sound/kid3: Drop 3.7.0 (diff)
downloadgentoo-c90bb560b5723836ba466d41886e75fe832c1e9c.tar.gz
gentoo-c90bb560b5723836ba466d41886e75fe832c1e9c.tar.bz2
gentoo-c90bb560b5723836ba466d41886e75fe832c1e9c.zip
media-libs/opencolorio: disable -Werror flag
The src/pyglue/CMakeLists.txt has a global -Werror flag set for unix systems, which let the compile fail. This patch removes this flag. Closes: https://bugs.gentoo.org/666696 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Bernd Waibel <waebbl@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/12049 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-libs/opencolorio')
-rw-r--r--media-libs/opencolorio/files/opencolorio-1.1.0-remove-Werror.patch17
-rw-r--r--media-libs/opencolorio/opencolorio-1.1.0-r1.ebuild1
2 files changed, 18 insertions, 0 deletions
diff --git a/media-libs/opencolorio/files/opencolorio-1.1.0-remove-Werror.patch b/media-libs/opencolorio/files/opencolorio-1.1.0-remove-Werror.patch
new file mode 100644
index 000000000000..2814f703f81d
--- /dev/null
+++ b/media-libs/opencolorio/files/opencolorio-1.1.0-remove-Werror.patch
@@ -0,0 +1,17 @@
+diff --git a/src/pyglue/CMakeLists.txt b/src/pyglue/CMakeLists.txt
+index a90ca1c..35de89a 100644
+--- a/src/pyglue/CMakeLists.txt
++++ b/src/pyglue/CMakeLists.txt
+@@ -22,9 +22,9 @@ endif()
+
+ # Process all warnings as errors
+ # Unfortunately Windows still has a warning
+-if(UNIX)
+- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
+-endif()
++#if(UNIX)
++# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
++#endif()
+
+ find_package(PythonLibs)
+ if(NOT PYTHONLIBS_FOUND)
diff --git a/media-libs/opencolorio/opencolorio-1.1.0-r1.ebuild b/media-libs/opencolorio/opencolorio-1.1.0-r1.ebuild
index 2ee8b87912af..86efd8a9f584 100644
--- a/media-libs/opencolorio/opencolorio-1.1.0-r1.ebuild
+++ b/media-libs/opencolorio/opencolorio-1.1.0-r1.ebuild
@@ -45,6 +45,7 @@ PATCHES=(
"${FILESDIR}/${P}-use-GNUInstallDirs-and-fix-cmake-install-location.patch"
"${FILESDIR}/${P}-remove-building-of-bundled-programs.patch"
"${FILESDIR}/${P}-yaml-cpp-0.6.patch"
+ "${FILESDIR}/${P}-remove-Werror.patch"
)
pkg_setup() {