kde-apps/umbrello: Fix build with KF 5.54
authorAndreas Sturmlechner <asturm@gentoo.org>
Wed, 13 Feb 2019 13:23:31 +0000 (14:23 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Wed, 13 Feb 2019 13:31:48 +0000 (14:31 +0100)
Tested-by: Manuel Mommertz <2kmm@gmx.de>
Closes: https://bugs.gentoo.org/677868
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

kde-apps/umbrello/files/umbrello-18.08.3-kf-5.54.patch [new file with mode: 0644]
kde-apps/umbrello/umbrello-18.08.3.ebuild

diff --git a/kde-apps/umbrello/files/umbrello-18.08.3-kf-5.54.patch b/kde-apps/umbrello/files/umbrello-18.08.3-kf-5.54.patch
new file mode 100644 (file)
index 0000000..2cf4e6a
--- /dev/null
@@ -0,0 +1,32 @@
+From 62a9e5e6afdd920779f1211afb0381857659e578 Mon Sep 17 00:00:00 2001
+From: Ralf Habacker <ralf.habacker@freenet.de>
+Date: Thu, 6 Dec 2018 13:36:34 +0100
+Subject: Fix KDE CI compile error with Qt 5.10 on linux
+
+The error was "specialization of template<class T>
+struct QMetaTypeId in different namespace [-fpermissive]"
+
+The Qt 5.10 related issue is fixed by using another approach
+to exclude KF5 class KAboutData.
+---
+ umbrello/main.cpp | 5 ++---
+ 1 file changed, 2 insertions(+), 3 deletions(-)
+
+diff --git a/umbrello/main.cpp b/umbrello/main.cpp
+index e3315fa..9d2acd8 100644
+--- a/umbrello/main.cpp
++++ b/umbrello/main.cpp
+@@ -19,9 +19,8 @@
+ // kde includes
+ #if QT_VERSION > 0x050000
+-namespace dummy {
+-#include <kaboutdata.h>
+-}
++// prevent including of <kaboutdata.h>
++#define KABOUTDATA_H
+ #include <k4aboutdata.h>
+ #define KAboutData K4AboutData
+ #include <KCrash>
+-- 
+cgit v1.1
index c570c012f3e5e9cc14f9f22c0f73a5969475ed54..2afd90e22b90c0d654e220d552456a9f64ba03a7 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -48,6 +48,8 @@ RDEPEND="${COMMON_DEPEND}
        !<kde-apps/kde4-l10n-17.07.80
 "
 
+PATCHES=( "${FILESDIR}/${P}-kf-5.54.patch" )
+
 src_configure() {
        local mycmakeargs=(
                -DBUILD_KF5=ON