dev-util/kdevelop-python: Fix build with Qt 5.11
authorAndreas Sturmlechner <asturm@gentoo.org>
Thu, 10 May 2018 06:59:08 +0000 (08:59 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Thu, 10 May 2018 08:01:09 +0000 (10:01 +0200)
Package-Manager: Portage-2.3.36, Repoman-2.3.9

dev-util/kdevelop-python/files/kdevelop-python-5.2.1-qt-5.11.patch [new file with mode: 0644]
dev-util/kdevelop-python/kdevelop-python-5.2.1.ebuild

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 (file)
index 0000000..67528c5
--- /dev/null
@@ -0,0 +1,24 @@
+From a4a3cfb040054e7ca938bdd593c6c3c80d80807f Mon Sep 17 00:00:00 2001
+From: Luca Beltrame <lbeltrame@kde.org>
+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
index ba7fd2bc14f1da3ed7711406f9978fc5649a23a2..11bbd220000acb28d8adc9c8c8f8346ac997c125 100644 (file)
@@ -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