1 |
commit: c49e785e16c43104a9b2e8c2f7df3eaf35c6c57a |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 17 23:47:36 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 18 00:16:45 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c49e785e |
7 |
|
8 |
kde-apps/dolphin: Move kcrash link to dolphin app |
9 |
|
10 |
Package-Manager: Portage-2.3.51, Repoman-2.3.12 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
kde-apps/dolphin/dolphin-18.08.3.ebuild | 2 + |
14 |
.../files/dolphin-18.08.3-kcrash-init.patch | 56 ++++++++++++++++++++++ |
15 |
2 files changed, 58 insertions(+) |
16 |
|
17 |
diff --git a/kde-apps/dolphin/dolphin-18.08.3.ebuild b/kde-apps/dolphin/dolphin-18.08.3.ebuild |
18 |
index 47da3a35d62..e38021b2487 100644 |
19 |
--- a/kde-apps/dolphin/dolphin-18.08.3.ebuild |
20 |
+++ b/kde-apps/dolphin/dolphin-18.08.3.ebuild |
21 |
@@ -62,6 +62,8 @@ RDEPEND="${DEPEND} |
22 |
|
23 |
RESTRICT+=" test" |
24 |
|
25 |
+PATCHES=( "${FILESDIR}/${P}-kcrash-init.patch" ) |
26 |
+ |
27 |
src_configure() { |
28 |
local mycmakeargs=( |
29 |
$(cmake-utils_use_find_package semantic-desktop KF5Baloo) |
30 |
|
31 |
diff --git a/kde-apps/dolphin/files/dolphin-18.08.3-kcrash-init.patch b/kde-apps/dolphin/files/dolphin-18.08.3-kcrash-init.patch |
32 |
new file mode 100644 |
33 |
index 00000000000..cb7923534c3 |
34 |
--- /dev/null |
35 |
+++ b/kde-apps/dolphin/files/dolphin-18.08.3-kcrash-init.patch |
36 |
@@ -0,0 +1,56 @@ |
37 |
+From a4cddf7517dab5f666f1c1ede2a58900f3bc5e53 Mon Sep 17 00:00:00 2001 |
38 |
+From: Harald Sitter <sitter@×××.org> |
39 |
+Date: Thu, 15 Nov 2018 14:43:57 +0100 |
40 |
+Subject: move kcrash link to dolphin app (which is the effective user) |
41 |
+ |
42 |
+Summary: |
43 |
+to successfully use kcrash when linking with as-needed (which is a default |
44 |
+flag on many linux distros) one also needs to call KCrash::initialize. |
45 |
+this call happens in the app's main.cpp. as such the kcrash link target |
46 |
+on the dolphinprivate library doesn't do anything for dolphinprivate but |
47 |
+only kicks into action for dolphin itself. |
48 |
+to avoid confusion and make it clear that kcrash is only initialized in the |
49 |
+application scope the KF5::Crash link target is now on the application |
50 |
+target, not the library target. |
51 |
+ |
52 |
+(this makes no difference in the output, kcrash was still correctly linked |
53 |
+ via dolphinprivate; but only for kdeinit_dolphin, dolphinprivate did |
54 |
+ not get linked to it with as-needed) |
55 |
+ |
56 |
+Test Plan: builds; links as expected |
57 |
+ |
58 |
+Reviewers: elvisangelaccio, #dolphin |
59 |
+ |
60 |
+Reviewed By: elvisangelaccio, #dolphin |
61 |
+ |
62 |
+Subscribers: kfm-devel |
63 |
+ |
64 |
+Tags: #dolphin |
65 |
+ |
66 |
+Differential Revision: https://phabricator.kde.org/D16896 |
67 |
+--- |
68 |
+ src/CMakeLists.txt | 2 +- |
69 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
70 |
+ |
71 |
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt |
72 |
+index 4a1f173..d5206be 100644 |
73 |
+--- a/src/CMakeLists.txt |
74 |
++++ b/src/CMakeLists.txt |
75 |
+@@ -136,7 +136,6 @@ target_link_libraries( |
76 |
+ dolphinvcs |
77 |
+ Qt5::Concurrent |
78 |
+ Qt5::Gui |
79 |
+- KF5::Crash |
80 |
+ KF5::I18n |
81 |
+ KF5::IconThemes |
82 |
+ KF5::KIOCore |
83 |
+@@ -301,6 +300,7 @@ kf5_add_kdeinit_executable(dolphin ${dolphin_SRCS}) |
84 |
+ target_link_libraries(kdeinit_dolphin PRIVATE |
85 |
+ dolphinstatic |
86 |
+ dolphinprivate |
87 |
++ KF5::Crash |
88 |
+ ) |
89 |
+ |
90 |
+ include(DbusInterfaceMacros) |
91 |
+-- |
92 |
+cgit v0.11.2 |