commit:     00f515c1c6f5d75ecc2b94351f0e133d128060cd
Author:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Sun May 31 11:12:19 2020 +0000
Commit:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Sun May 31 12:42:18 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00f515c1

x11-themes/QGnomePlatform: Fix build with qt-5.15

Closes: https://bugs.gentoo.org/725830
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>

 .../QGnomePlatform/QGnomePlatform-0.6.1.ebuild      |  2 ++
 .../files/QGnomePlatform-0.6.1-qt5.15.patch         | 21 +++++++++++++++++++++
 2 files changed, 23 insertions(+)

diff --git a/x11-themes/QGnomePlatform/QGnomePlatform-0.6.1.ebuild 
b/x11-themes/QGnomePlatform/QGnomePlatform-0.6.1.ebuild
index 65c5840ce9d..1ec98282675 100644
--- a/x11-themes/QGnomePlatform/QGnomePlatform-0.6.1.ebuild
+++ b/x11-themes/QGnomePlatform/QGnomePlatform-0.6.1.ebuild
@@ -22,6 +22,8 @@ RDEPEND="
 DEPEND="${RDEPEND}"
 BDEPEND="${RDEPEND}"
 
+PATCHES=( "${FILESDIR}/${P}-qt5.15.patch" )
+
 src_configure() {
        eqmake5
 }

diff --git a/x11-themes/QGnomePlatform/files/QGnomePlatform-0.6.1-qt5.15.patch 
b/x11-themes/QGnomePlatform/files/QGnomePlatform-0.6.1-qt5.15.patch
new file mode 100644
index 00000000000..b0927d12e79
--- /dev/null
+++ b/x11-themes/QGnomePlatform/files/QGnomePlatform-0.6.1-qt5.15.patch
@@ -0,0 +1,21 @@
+From c835c9e80cfadd62e01f16591721d2103d28a212 Mon Sep 17 00:00:00 2001
+From: Jan Grulich <[email protected]>
+Date: Wed, 27 May 2020 13:38:49 +0200
+Subject: [PATCH] Fix build with Qt 5.15
+
+---
+ decoration/qgnomeplatformdecoration.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/decoration/qgnomeplatformdecoration.cpp 
b/decoration/qgnomeplatformdecoration.cpp
+index 61c2af9..c8b381c 100644
+--- a/decoration/qgnomeplatformdecoration.cpp
++++ b/decoration/qgnomeplatformdecoration.cpp
+@@ -46,6 +46,7 @@
+ #include <QtGui/QCursor>
+ #include <QtGui/QLinearGradient>
+ #include <QtGui/QPainter>
++#include <QtGui/QPainterPath>
+ #include <QtGui/QPalette>
+ #include <QtGui/QPixmap>
+ 

Reply via email to