commit:     68decc065ca312b10e9af2c7fb3d682bfc740d67
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Thu May 10 06:59:08 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu May 10 08:01:09 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68decc06

dev-util/kdevelop-python: Fix build with Qt 5.11

Package-Manager: Portage-2.3.36, Repoman-2.3.9

 .../files/kdevelop-python-5.2.1-qt-5.11.patch      | 24 ++++++++++++++++++++++
 .../kdevelop-python/kdevelop-python-5.2.1.ebuild   |  2 ++
 2 files changed, 26 insertions(+)

diff --git a/dev-util/kdevelop-python/files/kdevelop-python-5.2.1-qt-5.11.patch 
b/dev-util/kdevelop-python/files/kdevelop-python-5.2.1-qt-5.11.patch
new file mode 100644
index 00000000000..67528c55850
--- /dev/null
+++ b/dev-util/kdevelop-python/files/kdevelop-python-5.2.1-qt-5.11.patch
@@ -0,0 +1,24 @@
+From a4a3cfb040054e7ca938bdd593c6c3c80d80807f Mon Sep 17 00:00:00 2001
+From: Luca Beltrame <[email protected]>
+Date: Thu, 10 May 2018 06:55:07 +0200
+Subject: Fix build with Qt 5.11
+
+Some includes were added transitively, now they need to be explicit.
+---
+ codegen/correctionfilegenerator.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/codegen/correctionfilegenerator.cpp 
b/codegen/correctionfilegenerator.cpp
+index bb79a25..53ebec4 100644
+--- a/codegen/correctionfilegenerator.cpp
++++ b/codegen/correctionfilegenerator.cpp
+@@ -20,6 +20,7 @@
+ 
+ #include "correctionfilegenerator.h"
+ 
++#include <QAction>
+ #include <QTemporaryFile>
+ 
+ #include <language/backgroundparser/backgroundparser.h>
+-- 
+cgit v0.11.2

diff --git a/dev-util/kdevelop-python/kdevelop-python-5.2.1.ebuild 
b/dev-util/kdevelop-python/kdevelop-python-5.2.1.ebuild
index ba7fd2bc14f..11bbd220000 100644
--- a/dev-util/kdevelop-python/kdevelop-python-5.2.1.ebuild
+++ b/dev-util/kdevelop-python/kdevelop-python-5.2.1.ebuild
@@ -39,6 +39,8 @@ RDEPEND="${DEPEND}
 
 RESTRICT+=" test"
 
+PATCHES=( "${FILESDIR}/${P}-qt-5.11.patch" )
+
 pkg_setup() {
        python-single-r1_pkg_setup
        kde5_pkg_setup

Reply via email to