1 |
commit: dee2a816907f66000aa963d3f088008ebcda6b71 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 6 19:08:40 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 6 20:33:15 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dee2a816 |
7 |
|
8 |
kde-apps/kmail: Fix crash on exit |
9 |
|
10 |
See also: https://mail.kde.org/pipermail/release-team/2019-June/011386.html |
11 |
KDE-Bug: https://bugs.kde.org/show_bug.cgi?id=404881 |
12 |
Package-Manager: Portage-2.3.67, Repoman-2.3.14 |
13 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
14 |
|
15 |
.../kmail/files/kmail-19.04.2-crash-on-exit.patch | 74 +++++++++++++ |
16 |
kde-apps/kmail/kmail-19.04.2-r1.ebuild | 117 +++++++++++++++++++++ |
17 |
2 files changed, 191 insertions(+) |
18 |
|
19 |
diff --git a/kde-apps/kmail/files/kmail-19.04.2-crash-on-exit.patch b/kde-apps/kmail/files/kmail-19.04.2-crash-on-exit.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..5817694013a |
22 |
--- /dev/null |
23 |
+++ b/kde-apps/kmail/files/kmail-19.04.2-crash-on-exit.patch |
24 |
@@ -0,0 +1,74 @@ |
25 |
+From 97e165dcf5a851ee10526631d24f9af7736da2e6 Mon Sep 17 00:00:00 2001 |
26 |
+From: David Faure <faure@×××.org> |
27 |
+Date: Thu, 6 Jun 2019 18:10:42 +0200 |
28 |
+Subject: Fix kontact crash on logout. |
29 |
+ |
30 |
+Summary: |
31 |
+KMail was creating new Akonadi jobs during mainwindow destruction, |
32 |
+due to not testing the bool in GuiActivateEvent. |
33 |
+ |
34 |
+Same bt in bug 404881, apparently quitting from the akregator tray icon |
35 |
+[which quits all of kontact... separate issue...] gave the same crash. |
36 |
+ |
37 |
+BUG: 404881 |
38 |
+FIXED-IN: 19.04.2 |
39 |
+ |
40 |
+Test Plan: Run kontact, logout. Hello Drkonqi. |
41 |
+ |
42 |
+Reviewers: mlaurent, winterz |
43 |
+ |
44 |
+Reviewed By: mlaurent, winterz |
45 |
+ |
46 |
+Subscribers: kde-pim |
47 |
+ |
48 |
+Tags: #kde_pim |
49 |
+ |
50 |
+Differential Revision: https://phabricator.kde.org/D21626 |
51 |
+--- |
52 |
+ src/kmail_part.cpp | 23 ++++++++++++----------- |
53 |
+ 1 file changed, 12 insertions(+), 11 deletions(-) |
54 |
+ |
55 |
+diff --git a/src/kmail_part.cpp b/src/kmail_part.cpp |
56 |
+index 703a1ee..96c4c07 100644 |
57 |
+--- a/src/kmail_part.cpp |
58 |
++++ b/src/kmail_part.cpp |
59 |
+@@ -33,6 +33,7 @@ |
60 |
+ |
61 |
+ #include <QVBoxLayout> |
62 |
+ |
63 |
++#include <KParts/GUIActivateEvent> |
64 |
+ #include <kparts/statusbarextension.h> |
65 |
+ #include <kparts/mainwindow.h> |
66 |
+ #include <kpluginfactory.h> |
67 |
+@@ -129,18 +130,18 @@ bool KMailPart::openFile() |
68 |
+ void KMailPart::guiActivateEvent(KParts::GUIActivateEvent *e) |
69 |
+ { |
70 |
+ KParts::ReadOnlyPart::guiActivateEvent(e); |
71 |
+- mainWidget->initializeFilterActions(); |
72 |
+- mainWidget->tagActionManager()->createActions(); |
73 |
+- mainWidget->folderShortcutActionManager()->createActions(); |
74 |
+- mainWidget->populateMessageListStatusFilterCombo(); |
75 |
+- mainWidget->initializePluginActions(); |
76 |
+- /* |
77 |
+- FIXME it doesn't work when we switch component. |
78 |
+- const QString title = mainWidget->fullCollectionPath(); |
79 |
+- if (!title.isEmpty()) { |
80 |
+- Q_EMIT setWindowCaption(title); |
81 |
++ if (e->activated()) { |
82 |
++ mainWidget->initializeFilterActions(); |
83 |
++ mainWidget->tagActionManager()->createActions(); |
84 |
++ mainWidget->folderShortcutActionManager()->createActions(); |
85 |
++ mainWidget->populateMessageListStatusFilterCombo(); |
86 |
++ mainWidget->initializePluginActions(); |
87 |
++ |
88 |
++ const QString title = mainWidget->fullCollectionPath(); |
89 |
++ if (!title.isEmpty()) { |
90 |
++ Q_EMIT setWindowCaption(title); |
91 |
++ } |
92 |
+ } |
93 |
+- */ |
94 |
+ } |
95 |
+ |
96 |
+ void KMailPart::exit() |
97 |
+-- |
98 |
+cgit v1.1 |
99 |
|
100 |
diff --git a/kde-apps/kmail/kmail-19.04.2-r1.ebuild b/kde-apps/kmail/kmail-19.04.2-r1.ebuild |
101 |
new file mode 100644 |
102 |
index 00000000000..dd0a95a3f0d |
103 |
--- /dev/null |
104 |
+++ b/kde-apps/kmail/kmail-19.04.2-r1.ebuild |
105 |
@@ -0,0 +1,117 @@ |
106 |
+# Copyright 1999-2019 Gentoo Authors |
107 |
+# Distributed under the terms of the GNU General Public License v2 |
108 |
+ |
109 |
+EAPI=7 |
110 |
+ |
111 |
+KDE_HANDBOOK="forceoptional" |
112 |
+KDE_TEST="forceoptional" |
113 |
+VIRTUALX_REQUIRED="test" |
114 |
+inherit kde5 |
115 |
+ |
116 |
+DESCRIPTION="Email client, supporting POP3 and IMAP mailboxes." |
117 |
+HOMEPAGE="https://kde.org/applications/internet/kmail/" |
118 |
+LICENSE="GPL-2+ handbook? ( FDL-1.2+ )" |
119 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
120 |
+IUSE="" |
121 |
+ |
122 |
+BDEPEND=" |
123 |
+ dev-libs/libxslt |
124 |
+ test? ( $(add_kdeapps_dep akonadi 'tools') ) |
125 |
+" |
126 |
+COMMON_DEPEND=" |
127 |
+ $(add_frameworks_dep kbookmarks) |
128 |
+ $(add_frameworks_dep kcmutils) |
129 |
+ $(add_frameworks_dep kcodecs) |
130 |
+ $(add_frameworks_dep kcompletion) |
131 |
+ $(add_frameworks_dep kconfig) |
132 |
+ $(add_frameworks_dep kconfigwidgets) |
133 |
+ $(add_frameworks_dep kcoreaddons) |
134 |
+ $(add_frameworks_dep kcrash) |
135 |
+ $(add_frameworks_dep kdbusaddons) |
136 |
+ $(add_frameworks_dep kguiaddons) |
137 |
+ $(add_frameworks_dep ki18n) |
138 |
+ $(add_frameworks_dep kiconthemes) |
139 |
+ $(add_frameworks_dep kitemviews) |
140 |
+ $(add_frameworks_dep kio) |
141 |
+ $(add_frameworks_dep kjobwidgets) |
142 |
+ $(add_frameworks_dep knotifications) |
143 |
+ $(add_frameworks_dep knotifyconfig) |
144 |
+ $(add_frameworks_dep kparts) |
145 |
+ $(add_frameworks_dep kservice) |
146 |
+ $(add_frameworks_dep ktextwidgets) |
147 |
+ $(add_frameworks_dep kwidgetsaddons) |
148 |
+ $(add_frameworks_dep kwindowsystem) |
149 |
+ $(add_frameworks_dep kxmlgui) |
150 |
+ $(add_frameworks_dep sonnet) |
151 |
+ $(add_kdeapps_dep akonadi) |
152 |
+ $(add_kdeapps_dep akonadi-contacts) |
153 |
+ $(add_kdeapps_dep akonadi-mime) |
154 |
+ $(add_kdeapps_dep akonadi-search) |
155 |
+ $(add_kdeapps_dep kcalcore) |
156 |
+ $(add_kdeapps_dep kcontacts) |
157 |
+ $(add_kdeapps_dep kdepim-apps-libs) |
158 |
+ $(add_kdeapps_dep kidentitymanagement) |
159 |
+ $(add_kdeapps_dep kmailtransport) |
160 |
+ $(add_kdeapps_dep kmime) |
161 |
+ $(add_kdeapps_dep kontactinterface) |
162 |
+ $(add_kdeapps_dep kpimtextedit) |
163 |
+ $(add_kdeapps_dep libgravatar) |
164 |
+ $(add_kdeapps_dep libkdepim) |
165 |
+ $(add_kdeapps_dep libkleo) |
166 |
+ $(add_kdeapps_dep libksieve) |
167 |
+ $(add_kdeapps_dep libktnef) |
168 |
+ $(add_kdeapps_dep mailcommon) |
169 |
+ $(add_kdeapps_dep messagelib) |
170 |
+ $(add_kdeapps_dep pimcommon) |
171 |
+ $(add_qt_dep qtdbus) |
172 |
+ $(add_qt_dep qtgui) |
173 |
+ $(add_qt_dep qtnetwork) |
174 |
+ $(add_qt_dep qtwebengine 'widgets') |
175 |
+ $(add_qt_dep qtwidgets) |
176 |
+ >=app-crypt/gpgme-1.7.1[cxx,qt5] |
177 |
+" |
178 |
+DEPEND="${COMMON_DEPEND} |
179 |
+ $(add_kdeapps_dep kcalutils) |
180 |
+ $(add_kdeapps_dep kldap) |
181 |
+ test? ( $(add_kdeapps_dep akonadi 'sqlite') ) |
182 |
+" |
183 |
+RDEPEND="${COMMON_DEPEND} |
184 |
+ !kde-apps/kdepim-common-libs:4 |
185 |
+ !kde-apps/kdepim-l10n |
186 |
+ !kde-apps/ktnef |
187 |
+ $(add_kdeapps_dep kdepim-runtime) |
188 |
+ $(add_kdeapps_dep kmail-account-wizard) |
189 |
+" |
190 |
+ |
191 |
+PATCHES=( "${FILESDIR}/${P}-crash-on-exit.patch" ) |
192 |
+ |
193 |
+RESTRICT+=" test" # bug 616878 |
194 |
+ |
195 |
+src_prepare() { |
196 |
+ kde5_src_prepare |
197 |
+ |
198 |
+ if ! use handbook; then |
199 |
+ sed -i ktnef/CMakeLists.txt -e "/add_subdirectory(doc)/ s/^/#DONT/" || die |
200 |
+ fi |
201 |
+} |
202 |
+ |
203 |
+pkg_postinst() { |
204 |
+ kde5_pkg_postinst |
205 |
+ |
206 |
+ pkg_is_installed() { |
207 |
+ echo "${1} ($(has_version ${1} || echo "not ")installed)" |
208 |
+ } |
209 |
+ |
210 |
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then |
211 |
+ elog "KMail supports the following runtime dependencies:" |
212 |
+ elog " Virus detection:" |
213 |
+ elog " $(pkg_is_installed app-antivirus/clamav)" |
214 |
+ elog " Spam filtering:" |
215 |
+ elog " $(pkg_is_installed mail-filter/bogofilter)" |
216 |
+ elog " $(pkg_is_installed mail-filter/spamassassin)" |
217 |
+ elog " Fancy e-mail headers and various useful plugins:" |
218 |
+ elog " $(pkg_is_installed kde-apps/kdepim-addons:${SLOT})" |
219 |
+ elog " Crypto config and certificate details GUI:" |
220 |
+ elog " $(pkg_is_installed kde-apps/kleopatra:${SLOT})" |
221 |
+ fi |
222 |
+} |