Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-apps/dolphin/files/, kde-apps/dolphin/
Date: Wed, 23 Dec 2020 21:33:07
Message-Id: 1608759160.ee0c9b5bb373695466c06a621be10a7a13eed2d5.asturm@gentoo
1 commit: ee0c9b5bb373695466c06a621be10a7a13eed2d5
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 23 21:11:28 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 23 21:32:40 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee0c9b5b
7
8 kde-apps/dolphin: Crash fix
9
10 Upstream commit c95d7fae79a309ed7f2df393fa20257cb20d54a8
11
12 See also: https://mail.kde.org/pipermail/distributions/2020-December/000913.html
13 KDE-bug: https://bugs.kde.org/show_bug.cgi?id=429628
14 KDE-bug: https://bugs.kde.org/show_bug.cgi?id=430434
15 Package-Manager: Portage-3.0.12, Repoman-3.0.2
16 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
17
18 kde-apps/dolphin/dolphin-20.12.0-r1.ebuild | 99 ++++++++++++++++++++++
19 .../dolphin/files/dolphin-20.12.0-crashfix.patch | 27 ++++++
20 2 files changed, 126 insertions(+)
21
22 diff --git a/kde-apps/dolphin/dolphin-20.12.0-r1.ebuild b/kde-apps/dolphin/dolphin-20.12.0-r1.ebuild
23 new file mode 100644
24 index 00000000000..ffeb5b378fe
25 --- /dev/null
26 +++ b/kde-apps/dolphin/dolphin-20.12.0-r1.ebuild
27 @@ -0,0 +1,99 @@
28 +# Copyright 1999-2020 Gentoo Authors
29 +# Distributed under the terms of the GNU General Public License v2
30 +
31 +EAPI=7
32 +
33 +ECM_HANDBOOK="forceoptional"
34 +ECM_TEST="true"
35 +PVCUT=$(ver_cut 1-3)
36 +KFMIN=5.75.0
37 +QTMIN=5.15.1
38 +VIRTUALX_REQUIRED="test"
39 +inherit ecm kde.org optfeature
40 +
41 +DESCRIPTION="Plasma filemanager focusing on usability"
42 +HOMEPAGE="https://apps.kde.org/en/dolphin https://userbase.kde.org/Dolphin"
43 +
44 +LICENSE="GPL-2" # TODO: CHECK
45 +SLOT="5"
46 +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
47 +IUSE="activities semantic-desktop telemetry"
48 +
49 +DEPEND="
50 + >=dev-qt/qtconcurrent-${QTMIN}:5
51 + >=dev-qt/qtdbus-${QTMIN}:5
52 + >=dev-qt/qtgui-${QTMIN}:5
53 + >=dev-qt/qtwidgets-${QTMIN}:5
54 + >=dev-qt/qtxml-${QTMIN}:5
55 + >=kde-frameworks/kbookmarks-${KFMIN}:5
56 + >=kde-frameworks/kcmutils-${KFMIN}:5
57 + >=kde-frameworks/kcodecs-${KFMIN}:5
58 + >=kde-frameworks/kcompletion-${KFMIN}:5
59 + >=kde-frameworks/kconfig-${KFMIN}:5
60 + >=kde-frameworks/kconfigwidgets-${KFMIN}:5
61 + >=kde-frameworks/kcoreaddons-${KFMIN}:5
62 + >=kde-frameworks/kcrash-${KFMIN}:5
63 + >=kde-frameworks/kdbusaddons-${KFMIN}:5
64 + >=kde-frameworks/ki18n-${KFMIN}:5
65 + >=kde-frameworks/kiconthemes-${KFMIN}:5
66 + >=kde-frameworks/kinit-${KFMIN}:5
67 + >=kde-frameworks/kio-${KFMIN}:5
68 + >=kde-frameworks/kitemviews-${KFMIN}:5
69 + >=kde-frameworks/kjobwidgets-${KFMIN}:5
70 + >=kde-frameworks/knewstuff-${KFMIN}:5
71 + >=kde-frameworks/knotifications-${KFMIN}:5
72 + >=kde-frameworks/kparts-${KFMIN}:5
73 + >=kde-frameworks/kservice-${KFMIN}:5
74 + >=kde-frameworks/ktextwidgets-${KFMIN}:5
75 + >=kde-frameworks/kwidgetsaddons-${KFMIN}:5
76 + >=kde-frameworks/kwindowsystem-${KFMIN}:5
77 + >=kde-frameworks/kxmlgui-${KFMIN}:5
78 + >=kde-frameworks/solid-${KFMIN}:5
79 + >=media-libs/phonon-4.11.0
80 + activities? ( >=kde-frameworks/kactivities-${KFMIN}:5 )
81 + semantic-desktop? (
82 + >=kde-apps/baloo-widgets-${PVCUT}:5
83 + >=kde-frameworks/baloo-${KFMIN}:5
84 + >=kde-frameworks/kfilemetadata-${KFMIN}:5
85 + )
86 + telemetry? ( dev-libs/kuserfeedback:5 )
87 +"
88 +RDEPEND="${DEPEND}
89 + >=kde-apps/kio-extras-${PVCUT}:5
90 +"
91 +
92 +PATCHES=( "${FILESDIR}/${P}-crashfix.patch" )
93 +
94 +src_configure() {
95 + local mycmakeargs=(
96 + -DCMAKE_DISABLE_FIND_PACKAGE_PackageKitQt5=ON
97 + $(cmake_use_find_package activities KF5Activities)
98 + $(cmake_use_find_package semantic-desktop KF5Baloo)
99 + $(cmake_use_find_package semantic-desktop KF5BalooWidgets)
100 + $(cmake_use_find_package semantic-desktop KF5FileMetaData)
101 + $(cmake_use_find_package telemetry KUserFeedback)
102 + )
103 + ecm_src_configure
104 +}
105 +
106 +src_test() {
107 + local myctestargs=(
108 + # servicemenuinstaller requires ruby, no thanks
109 + # dolphinmainwindowtest, kitemlistcontrollertest, kfileitemlistviewtest, kfileitemmodeltest hang forever
110 + # placesitemmodeltest requires DBus
111 + -E "(servicemenuinstaller|dolphinmainwindowtest|kfileitemlistviewtest|kfileitemmodeltest|kitemlistcontrollertest|placesitemmodeltest)"
112 + )
113 + ecm_src_test
114 +}
115 +
116 +pkg_postinst() {
117 + if [[ -z "${REPLACING_VERSIONS}" ]]; then
118 + elog "Optional dependencies:"
119 + optfeature "compress/extract and other actions" kde-apps/ark:${SLOT}
120 + optfeature "crypto actions" kde-apps/kleopatra:${SLOT}
121 + optfeature "video file thumbnails" kde-apps/ffmpegthumbs:${SLOT}
122 + optfeature "graphics file thumbnails" kde-apps/thumbnailers:${SLOT}
123 + optfeature "'Share' context menu actions" kde-frameworks/purpose:${SLOT}
124 + fi
125 + ecm_pkg_postinst
126 +}
127
128 diff --git a/kde-apps/dolphin/files/dolphin-20.12.0-crashfix.patch b/kde-apps/dolphin/files/dolphin-20.12.0-crashfix.patch
129 new file mode 100644
130 index 00000000000..65350b7ba3e
131 --- /dev/null
132 +++ b/kde-apps/dolphin/files/dolphin-20.12.0-crashfix.patch
133 @@ -0,0 +1,27 @@
134 +From c95d7fae79a309ed7f2df393fa20257cb20d54a8 Mon Sep 17 00:00:00 2001
135 +From: Anthony Fieroni <bvbfan@×××.bg>
136 +Date: Sat, 12 Dec 2020 12:36:23 +0200
137 +Subject: [PATCH] Fix access url navigator while creating new tab in filename
138 + search view BUG: 429628 BUG: 430434
139 +
140 +Signed-off-by: Anthony Fieroni <bvbfan@×××.bg>
141 +---
142 + src/dolphinviewcontainer.cpp | 2 +-
143 + 1 file changed, 1 insertion(+), 1 deletion(-)
144 +
145 +diff --git a/src/dolphinviewcontainer.cpp b/src/dolphinviewcontainer.cpp
146 +index 7260d2c4c..8dd309314 100644
147 +--- a/src/dolphinviewcontainer.cpp
148 ++++ b/src/dolphinviewcontainer.cpp
149 +@@ -390,7 +390,7 @@ void DolphinViewContainer::setSearchModeEnabled(bool enabled)
150 + m_searchBox->setVisible(enabled);
151 +
152 + if (enabled) {
153 +- const QUrl& locationUrl = m_urlNavigatorConnected->locationUrl();
154 ++ const QUrl& locationUrl = m_urlNavigator->locationUrl();
155 + m_searchBox->fromSearchUrl(locationUrl);
156 + }
157 +
158 +--
159 +GitLab
160 +