Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: kde-apps/akonadi/, kde-apps/akonadi/files/
Date: Sun, 17 Nov 2019 21:54:26
Message-Id: 1574027649.158d589c8aa05a7f1695fa6b39c94e285ccca927.asturm@gentoo
1 commit: 158d589c8aa05a7f1695fa6b39c94e285ccca927
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 17 21:54:09 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 17 21:54:09 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=158d589c
7
8 kde-apps/akonadi: Fix build with Qt 5.14
9
10 Package-Manager: Portage-2.3.79, Repoman-2.3.18
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 kde-apps/akonadi/akonadi-19.11.80.ebuild | 6 ++-
14 .../akonadi/files/akonadi-19.11.80-qt-5.14.patch | 46 ++++++++++++++++++++++
15 2 files changed, 51 insertions(+), 1 deletion(-)
16
17 diff --git a/kde-apps/akonadi/akonadi-19.11.80.ebuild b/kde-apps/akonadi/akonadi-19.11.80.ebuild
18 index 886147b825..41ff83a435 100644
19 --- a/kde-apps/akonadi/akonadi-19.11.80.ebuild
20 +++ b/kde-apps/akonadi/akonadi-19.11.80.ebuild
21 @@ -37,6 +37,7 @@ COMMON_DEPEND="
22 >=kde-frameworks/kwidgetsaddons-${KFMIN}:5
23 >=kde-frameworks/kwindowsystem-${KFMIN}:5
24 >=kde-frameworks/kxmlgui-${KFMIN}:5
25 + >=dev-qt/qtcore-${QTMIN}:5=
26 >=dev-qt/qtdbus-${QTMIN}:5
27 >=dev-qt/qtgui-${QTMIN}:5
28 >=dev-qt/qtnetwork-${QTMIN}:5
29 @@ -69,7 +70,10 @@ RDEPEND="${COMMON_DEPEND}
30 # some akonadi tests time out, that probably needs more work as it's ~700 tests
31 RESTRICT+=" test"
32
33 -PATCHES=( "${FILESDIR}/${PN}-18.12.2-mysql56-crash.patch" )
34 +PATCHES=(
35 + "${FILESDIR}/${PN}-18.12.2-mysql56-crash.patch"
36 + "${FILESDIR}/${P}-qt-5.14.patch"
37 +)
38
39 pkg_setup() {
40 # Set default storage backend in order: MySQL, PostgreSQL, SQLite
41
42 diff --git a/kde-apps/akonadi/files/akonadi-19.11.80-qt-5.14.patch b/kde-apps/akonadi/files/akonadi-19.11.80-qt-5.14.patch
43 new file mode 100644
44 index 0000000000..c3165698b2
45 --- /dev/null
46 +++ b/kde-apps/akonadi/files/akonadi-19.11.80-qt-5.14.patch
47 @@ -0,0 +1,46 @@
48 +From 1d4bb01a60548ae9a5439186fbe155f9f7d492e4 Mon Sep 17 00:00:00 2001
49 +From: Heiko Becker <heirecka@×××××××.org>
50 +Date: Sun, 17 Nov 2019 18:45:49 +0100
51 +Subject: Fix build with Qt 5.14
52 +
53 +Summary:
54 +std::hash<QString> is already specialized in Qt 5.14 [1], so we need
55 +to avoid redifining it with this version.
56 +
57 +[1] 4469e36d7203a55a4e158a50f0e9effc3f2fa3c2 in qtbase.git
58 +
59 +Test Plan: Builds fine with Qt 5.14.0-beta3
60 +
61 +Reviewers: #kde_pim
62 +
63 +Subscribers: kde-pim
64 +
65 +Tags: #kde_pim
66 +
67 +Differential Revision: https://phabricator.kde.org/D25356
68 +---
69 + src/shared/akstd.h | 2 ++
70 + 1 file changed, 2 insertions(+)
71 +
72 +diff --git a/src/shared/akstd.h b/src/shared/akstd.h
73 +index 4078ee4..774c432 100644
74 +--- a/src/shared/akstd.h
75 ++++ b/src/shared/akstd.h
76 +@@ -29,6 +29,7 @@
77 +
78 + namespace std {
79 +
80 ++#if (QT_VERSION < QT_VERSION_CHECK(5, 14, 0))
81 + template<>
82 + struct hash<QString> {
83 + using argument_type = QString;
84 +@@ -39,6 +40,7 @@ struct hash<QString> {
85 + return qHash(s);
86 + }
87 + };
88 ++#endif
89 +
90 + }
91 +
92 +--
93 +cgit v1.1