1 |
commit: d30261e88e695a52e8bafabb6f06cd4faad20536 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 13 13:23:31 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 13 13:31:48 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d30261e8 |
7 |
|
8 |
kde-apps/umbrello: Fix build with KF 5.54 |
9 |
|
10 |
Tested-by: Manuel Mommertz <2kmm <AT> gmx.de> |
11 |
Closes: https://bugs.gentoo.org/677868 |
12 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
13 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
14 |
|
15 |
.../umbrello/files/umbrello-18.08.3-kf-5.54.patch | 32 ++++++++++++++++++++++ |
16 |
kde-apps/umbrello/umbrello-18.08.3.ebuild | 4 ++- |
17 |
2 files changed, 35 insertions(+), 1 deletion(-) |
18 |
|
19 |
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 |
20 |
new file mode 100644 |
21 |
index 00000000000..2cf4e6a72ee |
22 |
--- /dev/null |
23 |
+++ b/kde-apps/umbrello/files/umbrello-18.08.3-kf-5.54.patch |
24 |
@@ -0,0 +1,32 @@ |
25 |
+From 62a9e5e6afdd920779f1211afb0381857659e578 Mon Sep 17 00:00:00 2001 |
26 |
+From: Ralf Habacker <ralf.habacker@×××××××.de> |
27 |
+Date: Thu, 6 Dec 2018 13:36:34 +0100 |
28 |
+Subject: Fix KDE CI compile error with Qt 5.10 on linux |
29 |
+ |
30 |
+The error was "specialization of template<class T> |
31 |
+struct QMetaTypeId in different namespace [-fpermissive]" |
32 |
+ |
33 |
+The Qt 5.10 related issue is fixed by using another approach |
34 |
+to exclude KF5 class KAboutData. |
35 |
+--- |
36 |
+ umbrello/main.cpp | 5 ++--- |
37 |
+ 1 file changed, 2 insertions(+), 3 deletions(-) |
38 |
+ |
39 |
+diff --git a/umbrello/main.cpp b/umbrello/main.cpp |
40 |
+index e3315fa..9d2acd8 100644 |
41 |
+--- a/umbrello/main.cpp |
42 |
++++ b/umbrello/main.cpp |
43 |
+@@ -19,9 +19,8 @@ |
44 |
+ |
45 |
+ // kde includes |
46 |
+ #if QT_VERSION > 0x050000 |
47 |
+-namespace dummy { |
48 |
+-#include <kaboutdata.h> |
49 |
+-} |
50 |
++// prevent including of <kaboutdata.h> |
51 |
++#define KABOUTDATA_H |
52 |
+ #include <k4aboutdata.h> |
53 |
+ #define KAboutData K4AboutData |
54 |
+ #include <KCrash> |
55 |
+-- |
56 |
+cgit v1.1 |
57 |
|
58 |
diff --git a/kde-apps/umbrello/umbrello-18.08.3.ebuild b/kde-apps/umbrello/umbrello-18.08.3.ebuild |
59 |
index c570c012f3e..2afd90e22b9 100644 |
60 |
--- a/kde-apps/umbrello/umbrello-18.08.3.ebuild |
61 |
+++ b/kde-apps/umbrello/umbrello-18.08.3.ebuild |
62 |
@@ -1,4 +1,4 @@ |
63 |
-# Copyright 1999-2018 Gentoo Authors |
64 |
+# Copyright 1999-2019 Gentoo Authors |
65 |
# Distributed under the terms of the GNU General Public License v2 |
66 |
|
67 |
EAPI=6 |
68 |
@@ -48,6 +48,8 @@ RDEPEND="${COMMON_DEPEND} |
69 |
!<kde-apps/kde4-l10n-17.07.80 |
70 |
" |
71 |
|
72 |
+PATCHES=( "${FILESDIR}/${P}-kf-5.54.patch" ) |
73 |
+ |
74 |
src_configure() { |
75 |
local mycmakeargs=( |
76 |
-DBUILD_KF5=ON |