summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2021-01-03 17:26:35 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2021-01-03 17:26:56 +0100
commita3f90c1d4c4b957fa6fe8a74d3a430c5cf89a7bf (patch)
treeed279fd95f9aba6010b99c83dd3e8c6e605d2673 /media-libs/kquickimageeditor
parentdev-db/percona-xtrabackup: Proxied maintainer retired as requested (diff)
downloadgentoo-a3f90c1d4c4b957fa6fe8a74d3a430c5cf89a7bf.tar.gz
gentoo-a3f90c1d4c4b957fa6fe8a74d3a430c5cf89a7bf.tar.bz2
gentoo-a3f90c1d4c4b957fa6fe8a74d3a430c5cf89a7bf.zip
media-libs/kquickimageeditor: Drop -Werror
Closes: https://bugs.gentoo.org/763291 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-libs/kquickimageeditor')
-rw-r--r--media-libs/kquickimageeditor/files/kquickimageeditor-0.1.2-no-werror.patch34
-rw-r--r--media-libs/kquickimageeditor/kquickimageeditor-0.1.2.ebuild2
2 files changed, 36 insertions, 0 deletions
diff --git a/media-libs/kquickimageeditor/files/kquickimageeditor-0.1.2-no-werror.patch b/media-libs/kquickimageeditor/files/kquickimageeditor-0.1.2-no-werror.patch
new file mode 100644
index 000000000000..69448ea2e705
--- /dev/null
+++ b/media-libs/kquickimageeditor/files/kquickimageeditor-0.1.2-no-werror.patch
@@ -0,0 +1,34 @@
+From c79657496326c10f81cf80a8c9a0e55bc2ba2798 Mon Sep 17 00:00:00 2001
+From: Nicolas Fella <nicolas.fella@gmx.de>
+Date: Mon, 7 Dec 2020 14:34:09 +0100
+Subject: [PATCH] Remove -Werror
+
+It's doing more harm than good.
+
+It makes it a pain to update anything (compiler, dependencies etc) that
+may introduce new warnings. It also makes it hard to use a compiler that
+produces a lot of warnings, e.g. clazy
+---
+ src/CMakeLists.txt | 6 ------
+ 1 file changed, 6 deletions(-)
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 301c05e..99b0a87 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -33,12 +33,6 @@ add_library(
+ ${sources} ${pluginData}
+ )
+
+-target_compile_options(
+- kquickimageeditorplugin
+- PRIVATE
+- -Werror
+-)
+-
+ target_link_libraries(
+ kquickimageeditorplugin
+ PRIVATE
+--
+2.30.0
+
diff --git a/media-libs/kquickimageeditor/kquickimageeditor-0.1.2.ebuild b/media-libs/kquickimageeditor/kquickimageeditor-0.1.2.ebuild
index 639fb3296722..eb897f7b47c6 100644
--- a/media-libs/kquickimageeditor/kquickimageeditor-0.1.2.ebuild
+++ b/media-libs/kquickimageeditor/kquickimageeditor-0.1.2.ebuild
@@ -19,6 +19,8 @@ fi
LICENSE="LGPL-2.1+"
SLOT="5"
+PATCHES=( "${FILESDIR}"/${P}-no-werror.patch )
+
DEPEND="
>=dev-qt/qtdeclarative-${QTMIN}:5
"