1 |
commit: dd923de0e1dd632d52ebaaab703ddbbfa7e8ba21 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 17 23:45:16 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 18 00:16:44 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd923de0 |
7 |
|
8 |
kde-plasma/kwin: Initialize kcrash for xclipboardsync |
9 |
|
10 |
Package-Manager: Portage-2.3.51, Repoman-2.3.12 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
.../kwin/files/kwin-5.14.3-kcrash-init.patch | 48 ++++++++++++++++++++++ |
14 |
kde-plasma/kwin/kwin-5.14.3-r1.ebuild | 5 ++- |
15 |
2 files changed, 51 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/kde-plasma/kwin/files/kwin-5.14.3-kcrash-init.patch b/kde-plasma/kwin/files/kwin-5.14.3-kcrash-init.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..fc9c3007f84 |
20 |
--- /dev/null |
21 |
+++ b/kde-plasma/kwin/files/kwin-5.14.3-kcrash-init.patch |
22 |
@@ -0,0 +1,48 @@ |
23 |
+From aace9b1675819feab81d50f694391c7d854d9822 Mon Sep 17 00:00:00 2001 |
24 |
+From: Harald Sitter <sitter@×××.org> |
25 |
+Date: Fri, 16 Nov 2018 12:50:53 +0100 |
26 |
+Subject: actually initialize kcrash for xclipboardsync |
27 |
+ |
28 |
+Summary: |
29 |
+to successfully use kcrash when linking with as-needed (which is a default |
30 |
+flag on many linux distros) one also needs to call KCrash::initialize. |
31 |
+ |
32 |
+https://markmail.org/thread/zv5pheijaze72bzs |
33 |
+ |
34 |
+Test Plan: builds; correctly links kcrash |
35 |
+ |
36 |
+Reviewers: davidedmundson |
37 |
+ |
38 |
+Reviewed By: davidedmundson |
39 |
+ |
40 |
+Subscribers: kwin |
41 |
+ |
42 |
+Tags: #kwin |
43 |
+ |
44 |
+Differential Revision: https://phabricator.kde.org/D16923 |
45 |
+--- |
46 |
+ helpers/xclipboardsync/main.cpp | 2 ++ |
47 |
+ 1 file changed, 2 insertions(+) |
48 |
+ |
49 |
+diff --git a/helpers/xclipboardsync/main.cpp b/helpers/xclipboardsync/main.cpp |
50 |
+index 2f06e9c..1a5e5ee 100644 |
51 |
+--- a/helpers/xclipboardsync/main.cpp |
52 |
++++ b/helpers/xclipboardsync/main.cpp |
53 |
+@@ -19,6 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. |
54 |
+ *********************************************************************/ |
55 |
+ #include "waylandclipboard.h" |
56 |
+ |
57 |
++#include <KCrash> |
58 |
+ #include <QGuiApplication> |
59 |
+ |
60 |
+ #include <config-kwin.h> |
61 |
+@@ -40,6 +41,7 @@ int main(int argc, char *argv[]) |
62 |
+ argv[0], qPrintable(app.platformName())); |
63 |
+ return 1; |
64 |
+ } |
65 |
++ KCrash::initialize(); |
66 |
+ new WaylandClipboard(&app); |
67 |
+ return app.exec(); |
68 |
+ } |
69 |
+-- |
70 |
+cgit v0.11.2 |
71 |
|
72 |
diff --git a/kde-plasma/kwin/kwin-5.14.3-r1.ebuild b/kde-plasma/kwin/kwin-5.14.3-r1.ebuild |
73 |
index a2ab760c9be..c74288ae8cb 100644 |
74 |
--- a/kde-plasma/kwin/kwin-5.14.3-r1.ebuild |
75 |
+++ b/kde-plasma/kwin/kwin-5.14.3-r1.ebuild |
76 |
@@ -89,8 +89,9 @@ PDEPEND=" |
77 |
RESTRICT+=" test" |
78 |
|
79 |
PATCHES=( |
80 |
- "${FILESDIR}/${PN}-5.14.3-virtualdesktop-crash.patch" |
81 |
- "${FILESDIR}/${PN}-5.14.3-resizewindows-crash.patch" |
82 |
+ "${FILESDIR}/${P}-virtualdesktop-crash.patch" |
83 |
+ "${FILESDIR}/${P}-resizewindows-crash.patch" |
84 |
+ "${FILESDIR}/${P}-kcrash-init.patch" |
85 |
) |
86 |
|
87 |
src_prepare() { |