1 |
commit: 54e164077a2805c816cc73d1db94af629fec2efe |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 1 08:32:33 2023 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 1 09:26:43 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54e16407 |
7 |
|
8 |
kde-plasma/plasma-workspace: drop 5.25.5-r5 |
9 |
|
10 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
11 |
|
12 |
kde-plasma/plasma-workspace/Manifest | 1 - |
13 |
....25.5-delay-ksplash-until-after-env-setup.patch | 82 -------- |
14 |
.../plasma-workspace-5.25.5-fix-setpassword.patch | 39 ---- |
15 |
...5-fonts-honor-and-present-system-defaults.patch | 55 ----- |
16 |
...sma-workspace-5.25.5-geolocation-deadlock.patch | 194 ----------------- |
17 |
.../plasma-workspace-5.25.5-layout-save.patch | 33 --- |
18 |
.../plasma-workspace-5.25.5-lock-layout.patch | 113 ---------- |
19 |
...ace-5.25.5-prevent-panel-go-out-of-screen.patch | 25 --- |
20 |
.../files/plasma-workspace-5.25.5-relayout.patch | 22 -- |
21 |
...a-workspace-5.25.5-systray-double-destroy.patch | 24 --- |
22 |
....25.5-widgetexplorer-recurse-containments.patch | 26 --- |
23 |
.../plasma-workspace-5.25.5-r5.ebuild | 229 --------------------- |
24 |
12 files changed, 843 deletions(-) |
25 |
|
26 |
diff --git a/kde-plasma/plasma-workspace/Manifest b/kde-plasma/plasma-workspace/Manifest |
27 |
index e52db83c3114..1d9403c158d7 100644 |
28 |
--- a/kde-plasma/plasma-workspace/Manifest |
29 |
+++ b/kde-plasma/plasma-workspace/Manifest |
30 |
@@ -1,3 +1,2 @@ |
31 |
-DIST plasma-workspace-5.25.5.tar.xz 18638932 BLAKE2B f83aabf84b775c0bf9d1e60db03f94400e3363fa8f45767bdc471706682cda7323fae4948cffa156188cc7ed2d30d05349a385dd370ef941c16464ddddf8fa01 SHA512 0c6cf5104b584b34a8bcb45d57069fed3b25e871fccf1bfefd47d8fc1b595867c1c4f0fcfcc0e07847534e1e77ce8ed1f3be1ac6cb7eea8669a9c7649c8466cb |
32 |
DIST plasma-workspace-5.26.5.tar.xz 17470516 BLAKE2B 4809ad1ec93e4e6d27b17197457b76f5971ea6c74ac64f64e68ecfe828068f7f33af69bdd03411a4cd0cf8fb26080ebf9c85741eacc0e53d6b782af4eabb4b8a SHA512 9fb840d3f36e1cb25126a715d5599bf89680b0c3ff2a674f07f83246dc15358e15c7e31565d39570e33f6b4d3292822d5fdde05e4795f2eef13e1a0ff2f1c687 |
33 |
DIST plasma-workspace-5.26.90.tar.xz 18481828 BLAKE2B 1594718737ae9f7be98a6e06b691e61bb519cf73755af01ce0a5a1b58a2172a9003974e2a85d0c000edf579139e6ef9a8800d071167812522f492f6b17de7479 SHA512 ecd3a107496e7a6d1a9e9093118f9cf4e1a8746140302e201dc48ba896b5b7d51e4dfa13bd87c3a7e8548221c978470d0635fe1221205a412b66e5c585a634ac |
34 |
|
35 |
diff --git a/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-delay-ksplash-until-after-env-setup.patch b/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-delay-ksplash-until-after-env-setup.patch |
36 |
deleted file mode 100644 |
37 |
index 9fcea5a32cbe..000000000000 |
38 |
--- a/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-delay-ksplash-until-after-env-setup.patch |
39 |
+++ /dev/null |
40 |
@@ -1,82 +0,0 @@ |
41 |
-From 536ba654e43741a18d2b71ee519f1daefeaa7ffd Mon Sep 17 00:00:00 2001 |
42 |
-From: Fushan Wen <qydwhotmail@×××××.com> |
43 |
-Date: Sat, 4 Jun 2022 18:15:10 +0800 |
44 |
-Subject: [PATCH 1/2] startkde: `Q_UNUSED` ksplash |
45 |
- |
46 |
-Variable 'ksplash' is assigned a value that is never used. (CWE-563) |
47 |
- |
48 |
-(cherry picked from commit 6bebf9a7e636d6655ede49ce48d33f2254ac75f0) |
49 |
---- |
50 |
- startkde/startplasma-x11.cpp | 1 + |
51 |
- 1 file changed, 1 insertion(+) |
52 |
- |
53 |
-diff --git a/startkde/startplasma-x11.cpp b/startkde/startplasma-x11.cpp |
54 |
-index 817de3511..a80c515fc 100644 |
55 |
---- a/startkde/startplasma-x11.cpp |
56 |
-+++ b/startkde/startplasma-x11.cpp |
57 |
-@@ -59,6 +59,7 @@ int main(int argc, char **argv) |
58 |
- |
59 |
- setupCursor(false); |
60 |
- QScopedPointer<QProcess, KillBeforeDeleter> ksplash(setupKSplash()); |
61 |
-+ Q_UNUSED(ksplash) |
62 |
- |
63 |
- runEnvironmentScripts(); |
64 |
- |
65 |
--- |
66 |
-2.37.3 |
67 |
- |
68 |
- |
69 |
-From 5e54fbd0b351e43cb68c193bf684dd8cdbd11210 Mon Sep 17 00:00:00 2001 |
70 |
-From: Harald Sitter <sitter@×××.org> |
71 |
-Date: Tue, 13 Sep 2022 13:54:04 +0200 |
72 |
-Subject: [PATCH 2/2] delay ksplash until after env is set up |
73 |
- |
74 |
-otherwise we can dbus invoke with the wrong environment. specifically |
75 |
-this happens with the latest qtbase changes that introduced color |
76 |
-picking support on wayland. when we start a qguiapplication with |
77 |
-incomplete environment that dbus invokes the xdg-portal system and that |
78 |
-in turn has an incomplete environment resulting in theming and the likes |
79 |
-not properly applying because the portal doesn't know that it runs |
80 |
-inside a plasma session. |
81 |
- |
82 |
-https://invent.kde.org/qt/qt/qtbase/-/commit/2dc083df009a45c5dacfea27b0affeb85b01f847 |
83 |
- |
84 |
-BUG: 458865 |
85 |
-(cherry picked from commit 9bf0e56da84de5e9bd2b3ff28bdb2cb1af6de91e) |
86 |
- |
87 |
-asturmlechner 2022-09-14: Backported to Plasma/5.25 branch |
88 |
---- |
89 |
- startkde/startplasma-x11.cpp | 10 ++++++---- |
90 |
- 1 file changed, 6 insertions(+), 4 deletions(-) |
91 |
- |
92 |
-diff --git a/startkde/startplasma-x11.cpp b/startkde/startplasma-x11.cpp |
93 |
-index a80c515fc..d1722771b 100644 |
94 |
---- a/startkde/startplasma-x11.cpp |
95 |
-+++ b/startkde/startplasma-x11.cpp |
96 |
-@@ -57,10 +57,6 @@ int main(int argc, char **argv) |
97 |
- } |
98 |
- } |
99 |
- |
100 |
-- setupCursor(false); |
101 |
-- QScopedPointer<QProcess, KillBeforeDeleter> ksplash(setupKSplash()); |
102 |
-- Q_UNUSED(ksplash) |
103 |
-- |
104 |
- runEnvironmentScripts(); |
105 |
- |
106 |
- out << "startkde: Starting up...\n"; |
107 |
-@@ -80,6 +76,12 @@ int main(int argc, char **argv) |
108 |
- // variables (e.g. LANG and LC_*) |
109 |
- importSystemdEnvrionment(); |
110 |
- |
111 |
-+ // NOTE: Do not start QGuiApplications before setting up the environment. We'd be at risk of dbus invoking other |
112 |
-+ // processes with an incomplete environment. |
113 |
-+ setupCursor(false); |
114 |
-+ QScopedPointer<QProcess, KillBeforeDeleter> ksplash(setupKSplash()); |
115 |
-+ Q_UNUSED(ksplash) |
116 |
-+ |
117 |
- if (!startPlasmaSession(false)) |
118 |
- return 1; |
119 |
- |
120 |
--- |
121 |
-2.37.3 |
122 |
- |
123 |
|
124 |
diff --git a/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-fix-setpassword.patch b/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-fix-setpassword.patch |
125 |
deleted file mode 100644 |
126 |
index 7351b8808819..000000000000 |
127 |
--- a/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-fix-setpassword.patch |
128 |
+++ /dev/null |
129 |
@@ -1,39 +0,0 @@ |
130 |
-From 84dcfc45b9a354827b9bbf6ae58902d04e8fe915 Mon Sep 17 00:00:00 2001 |
131 |
-From: Marco Martin <notmart@×××××.com> |
132 |
-Date: Wed, 28 Sep 2022 11:33:33 +0200 |
133 |
-Subject: [PATCH] set setInteractiveAuthorizationAllowed on SetPassword call |
134 |
- |
135 |
-is important that the setpasswod call uses interactive authorization, |
136 |
-otherwise will be denied, unless the user had been modified beforehand |
137 |
-so an authorization was already granted |
138 |
- |
139 |
-BUG:459309 |
140 |
---- |
141 |
- kcms/users/src/user.cpp | 11 ++++++++--- |
142 |
- 1 file changed, 8 insertions(+), 3 deletions(-) |
143 |
- |
144 |
-diff --git a/kcms/users/src/user.cpp b/kcms/users/src/user.cpp |
145 |
-index 020ebee097..87745582c5 100644 |
146 |
---- a/kcms/users/src/user.cpp |
147 |
-+++ b/kcms/users/src/user.cpp |
148 |
-@@ -217,9 +217,14 @@ void User::setPassword(const QString &password) |
149 |
- { |
150 |
- // Blocking because we need to wait for the password to be changed before we |
151 |
- // can ask the user about also possibly changing their KWallet password |
152 |
-- auto invocation = m_dbusIface->SetPassword(saltPassword(password), QString()); |
153 |
-- invocation.waitForFinished(); |
154 |
-- if (!invocation.isError()) { |
155 |
-+ |
156 |
-+ auto mc = QDBusMessage::createMethodCall(m_dbusIface->service(), m_dbusIface->path(), m_dbusIface->interface(), "SetPassword"); |
157 |
-+ mc.setArguments({saltPassword(password), QString()}); |
158 |
-+ mc.setInteractiveAuthorizationAllowed(true); |
159 |
-+ auto message = QDBusConnection::systemBus().call(mc); |
160 |
-+ |
161 |
-+ // Not an error or invalid message |
162 |
-+ if (message.type() == QDBusMessage::ReplyMessage) { |
163 |
- Q_EMIT passwordSuccessfullyChanged(); |
164 |
- } |
165 |
- } |
166 |
--- |
167 |
-GitLab |
168 |
- |
169 |
|
170 |
diff --git a/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-fonts-honor-and-present-system-defaults.patch b/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-fonts-honor-and-present-system-defaults.patch |
171 |
deleted file mode 100644 |
172 |
index 4e2b579646fc..000000000000 |
173 |
--- a/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-fonts-honor-and-present-system-defaults.patch |
174 |
+++ /dev/null |
175 |
@@ -1,55 +0,0 @@ |
176 |
-From dc24b7c1c4e2c9dfb74090f716da029e44e209ff Mon Sep 17 00:00:00 2001 |
177 |
-From: Harald Sitter <sitter@×××.org> |
178 |
-Date: Mon, 19 Sep 2022 12:39:54 +0200 |
179 |
-Subject: [PATCH] fonts: honor & present system defaults |
180 |
- |
181 |
-previously we'd pretend that a missing value meant our "plasma-ish" |
182 |
-defaults would apply but that is utterly false. when no hitting is set, |
183 |
-no hinting is set. this can happen when the system default fontconfigs |
184 |
-don't set up any hinting. |
185 |
- |
186 |
-BUG: 416140 |
187 |
- |
188 |
- |
189 |
-(cherry picked from commit 5dd8cc919f54bf28152a80e1fa6f3f649ea4e47a) |
190 |
---- |
191 |
- kcms/fonts/fontsaasettings.cpp | 9 +++++---- |
192 |
- 1 file changed, 5 insertions(+), 4 deletions(-) |
193 |
- |
194 |
-diff --git a/kcms/fonts/fontsaasettings.cpp b/kcms/fonts/fontsaasettings.cpp |
195 |
-index a7159b0e63..e7192aa89d 100644 |
196 |
---- a/kcms/fonts/fontsaasettings.cpp |
197 |
-+++ b/kcms/fonts/fontsaasettings.cpp |
198 |
-@@ -1,5 +1,6 @@ |
199 |
- /* |
200 |
- SPDX-FileCopyrightText: 2020 Benjamin Port <benjamin.port@××××××.com> |
201 |
-+ SPDX-FileCopyrightText: 2022 Harald Sitter <sitter@×××.org> |
202 |
- |
203 |
- SPDX-License-Identifier: GPL-2.0-or-later |
204 |
- */ |
205 |
-@@ -211,18 +212,18 @@ public: |
206 |
- // sub pixel |
207 |
- KXftConfig::SubPixel::Type spType = KXftConfig::SubPixel::NotSet; |
208 |
- xft.getSubPixelType(spType); |
209 |
-- // if it is not set, we set it to rgb |
210 |
-+ // if it is not set, we have no subpixel hinting |
211 |
- if (spType == KXftConfig::SubPixel::NotSet) { |
212 |
-- spType = KXftConfig::SubPixel::Rgb; |
213 |
-+ spType = KXftConfig::SubPixel::None; |
214 |
- } |
215 |
- setSubPixel(spType); |
216 |
- |
217 |
- // hinting |
218 |
- KXftConfig::Hint::Style hStyle = KXftConfig::Hint::NotSet; |
219 |
- xft.getHintStyle(hStyle); |
220 |
-- // if it is not set, we set it to slight hinting |
221 |
-+ // if it is not set, we have no hinting |
222 |
- if (hStyle == KXftConfig::Hint::NotSet) { |
223 |
-- hStyle = KXftConfig::Hint::Slight; |
224 |
-+ hStyle = KXftConfig::Hint::None; |
225 |
- } |
226 |
- setHinting(hStyle); |
227 |
- |
228 |
--- |
229 |
-GitLab |
230 |
- |
231 |
|
232 |
diff --git a/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-geolocation-deadlock.patch b/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-geolocation-deadlock.patch |
233 |
deleted file mode 100644 |
234 |
index 70bd28419472..000000000000 |
235 |
--- a/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-geolocation-deadlock.patch |
236 |
+++ /dev/null |
237 |
@@ -1,194 +0,0 @@ |
238 |
-https://invent.kde.org/plasma/plasma-workspace/-/commit/d693026676cc6bf2b7c23e9ff4b620679cf15d10 |
239 |
- |
240 |
-From d693026676cc6bf2b7c23e9ff4b620679cf15d10 Mon Sep 17 00:00:00 2001 |
241 |
-From: Nicolas Fella <nicolas.fella@×××.de> |
242 |
-Date: Mon, 15 Aug 2022 18:36:56 +0200 |
243 |
-Subject: [PATCH] [dataengines/geolocation] Port from KIO::http_post to |
244 |
- QNetworkAccessManager |
245 |
- |
246 |
-Not only does this slightly simplify the code, it also avoids a deadlock in kded when automatic proxy detection is enabled |
247 |
- |
248 |
-BUG: 449984 |
249 |
- |
250 |
-BUG: 457341 |
251 |
-(cherry picked from commit 98cadd48c21c89b81fdeb3499a557a6551a09d8a) |
252 |
---- |
253 |
- dataengines/geolocation/CMakeLists.txt | 2 +- |
254 |
- dataengines/geolocation/location_ip.cpp | 84 ++++++++++--------------- |
255 |
- 2 files changed, 35 insertions(+), 51 deletions(-) |
256 |
- |
257 |
-diff --git a/dataengines/geolocation/CMakeLists.txt b/dataengines/geolocation/CMakeLists.txt |
258 |
-index 175687bd4d..6ae707643c 100644 |
259 |
---- a/dataengines/geolocation/CMakeLists.txt |
260 |
-+++ b/dataengines/geolocation/CMakeLists.txt |
261 |
-@@ -36,7 +36,7 @@ target_link_libraries(plasma_engine_geolocation |
262 |
- kcoreaddons_add_plugin(plasma-geolocation-ip SOURCES location_ip.cpp INSTALL_NAMESPACE plasma/geolocationprovider) |
263 |
- ecm_qt_declare_logging_category(plasma-geolocation-ip HEADER geolocdebug.h IDENTIFIER DATAENGINE_GEOLOCATION CATEGORY_NAME org.kde.plasma.dataengine.geolocation) |
264 |
- target_compile_definitions(plasma-geolocation-ip PRIVATE -DQT_NO_KEYWORDS) |
265 |
--target_link_libraries(plasma-geolocation-ip plasma-geolocation-interface KF5::KIOCore KF5::NetworkManagerQt) |
266 |
-+target_link_libraries(plasma-geolocation-ip plasma-geolocation-interface KF5::NetworkManagerQt) |
267 |
- |
268 |
- pkg_check_modules(LIBGPS libgps IMPORTED_TARGET) |
269 |
- |
270 |
-diff --git a/dataengines/geolocation/location_ip.cpp b/dataengines/geolocation/location_ip.cpp |
271 |
-index 27b530810c..3c5a202b89 100644 |
272 |
---- a/dataengines/geolocation/location_ip.cpp |
273 |
-+++ b/dataengines/geolocation/location_ip.cpp |
274 |
-@@ -12,15 +12,14 @@ |
275 |
- |
276 |
- #include "location_ip.h" |
277 |
- #include "geolocdebug.h" |
278 |
--#include <KIO/Job> |
279 |
--#include <KIO/TransferJob> |
280 |
--#include <KJob> |
281 |
- #include <KSharedConfig> |
282 |
- #include <NetworkManagerQt/Manager> |
283 |
- #include <NetworkManagerQt/WirelessDevice> |
284 |
- #include <QJsonArray> |
285 |
- #include <QJsonDocument> |
286 |
- #include <QJsonObject> |
287 |
-+#include <QNetworkAccessManager> |
288 |
-+#include <QNetworkReply> |
289 |
- #include <QUrl> |
290 |
- |
291 |
- class Ip::Private : public QObject |
292 |
-@@ -30,19 +29,21 @@ public: |
293 |
- Private(Ip *q) |
294 |
- : q(q) |
295 |
- { |
296 |
-+ m_nam.setRedirectPolicy(QNetworkRequest::NoLessSafeRedirectPolicy); |
297 |
-+ m_nam.setStrictTransportSecurityEnabled(true); |
298 |
-+ m_nam.enableStrictTransportSecurityStore(true, |
299 |
-+ QStandardPaths::writableLocation(QStandardPaths::GenericCacheLocation) + QLatin1String("/plasmashell/hsts/")); |
300 |
- } |
301 |
- |
302 |
-- void readGeoLocation(KJob *job) |
303 |
-+ void readGeoLocation(QNetworkReply *reply) |
304 |
- { |
305 |
- m_geoLocationResolved = true; |
306 |
-- if (job && job->error()) { |
307 |
-- qCCritical(DATAENGINE_GEOLOCATION) << "error: " << job->errorString(); |
308 |
-- m_geoLocationPayload.clear(); |
309 |
-+ if (reply->error()) { |
310 |
-+ qCCritical(DATAENGINE_GEOLOCATION) << "error: " << reply->errorString(); |
311 |
- checkUpdateData(); |
312 |
- return; |
313 |
- } |
314 |
-- const QJsonObject json = QJsonDocument::fromJson(m_geoLocationPayload).object(); |
315 |
-- m_geoLocationPayload.clear(); |
316 |
-+ const QJsonObject json = QJsonDocument::fromJson(reply->readAll()).object(); |
317 |
- |
318 |
- auto accuracyIt = json.find(QStringLiteral("accuracy")); |
319 |
- if (accuracyIt != json.end()) { |
320 |
-@@ -62,52 +63,28 @@ public: |
321 |
- |
322 |
- void clear() |
323 |
- { |
324 |
-- m_geoLocationPayload.clear(); |
325 |
-- m_countryPayload.clear(); |
326 |
- m_countryResolved = false; |
327 |
- m_geoLocationResolved = false; |
328 |
- m_data.clear(); |
329 |
- } |
330 |
- |
331 |
-- void geoLocationData(KIO::Job *job, const QByteArray &data) |
332 |
-- { |
333 |
-- Q_UNUSED(job) |
334 |
-- |
335 |
-- if (data.isEmpty()) { |
336 |
-- return; |
337 |
-- } |
338 |
-- m_geoLocationPayload.append(data); |
339 |
-- } |
340 |
-- |
341 |
-- void countryData(KIO::Job *job, const QByteArray &data) |
342 |
-- { |
343 |
-- Q_UNUSED(job) |
344 |
-- |
345 |
-- if (data.isEmpty()) { |
346 |
-- return; |
347 |
-- } |
348 |
-- m_countryPayload.append(data); |
349 |
-- } |
350 |
-- |
351 |
-- void readCountry(KJob *job) |
352 |
-+ void readCountry(QNetworkReply *reply) |
353 |
- { |
354 |
- m_countryResolved = true; |
355 |
-- if (job && job->error()) { |
356 |
-- qCCritical(DATAENGINE_GEOLOCATION) << "error: " << job->errorString(); |
357 |
-- m_countryPayload.clear(); |
358 |
-+ if (reply->error()) { |
359 |
-+ qCCritical(DATAENGINE_GEOLOCATION) << "error: " << reply->errorString(); |
360 |
- checkUpdateData(); |
361 |
- return; |
362 |
- } |
363 |
- |
364 |
-- const QJsonObject json = QJsonDocument::fromJson(m_countryPayload).object(); |
365 |
-- m_countryPayload.clear(); |
366 |
-+ const QJsonObject json = QJsonDocument::fromJson(reply->readAll()).object(); |
367 |
- |
368 |
- m_data[QStringLiteral("country")] = json.value(QStringLiteral("country_name")).toString(); |
369 |
- m_data[QStringLiteral("country code")] = json.value(QStringLiteral("country_code")).toString(); |
370 |
-+ |
371 |
- checkUpdateData(); |
372 |
- } |
373 |
- |
374 |
--private: |
375 |
- void checkUpdateData() |
376 |
- { |
377 |
- if (!m_countryResolved || !m_geoLocationResolved) { |
378 |
-@@ -117,11 +94,10 @@ private: |
379 |
- } |
380 |
- |
381 |
- Ip *q; |
382 |
-- QByteArray m_geoLocationPayload; |
383 |
-- QByteArray m_countryPayload; |
384 |
- bool m_countryResolved = false; |
385 |
- bool m_geoLocationResolved = false; |
386 |
- Plasma::DataEngine::Data m_data; |
387 |
-+ QNetworkAccessManager m_nam; |
388 |
- }; |
389 |
- |
390 |
- Ip::Ip(QObject *parent, const QVariantList &args) |
391 |
-@@ -176,18 +152,26 @@ void Ip::update() |
392 |
- } |
393 |
- const QByteArray postData = QJsonDocument(request).toJson(QJsonDocument::Compact); |
394 |
- const QString apiKey = QStringLiteral("60e8eae6-3988-4ada-ad48-2cfddddf216b"); |
395 |
-- KIO::TransferJob *datajob = |
396 |
-- KIO::http_post(QUrl(QStringLiteral("https://location.services.mozilla.com/v1/geolocate?key=%1").arg(apiKey)), postData, KIO::HideProgressInfo); |
397 |
-- datajob->addMetaData(QStringLiteral("content-type"), QStringLiteral("application/json")); |
398 |
- |
399 |
- qCDebug(DATAENGINE_GEOLOCATION) << "Fetching https://location.services.mozilla.com/v1/geolocate"; |
400 |
-- connect(datajob, &KIO::TransferJob::data, d, &Ip::Private::geoLocationData); |
401 |
-- connect(datajob, &KIO::TransferJob::result, d, &Ip::Private::readGeoLocation); |
402 |
-- |
403 |
-- datajob = KIO::http_post(QUrl(QStringLiteral("https://location.services.mozilla.com/v1/country?key=%1").arg(apiKey)), postData, KIO::HideProgressInfo); |
404 |
-- datajob->addMetaData(QStringLiteral("content-type"), QStringLiteral("application/json")); |
405 |
-- connect(datajob, &KIO::TransferJob::data, d, &Ip::Private::countryData); |
406 |
-- connect(datajob, &KIO::TransferJob::result, d, &Ip::Private::readCountry); |
407 |
-+ QNetworkRequest locationRequest(QUrl(QStringLiteral("https://location.services.mozilla.com/v1/geolocate?key=%1").arg(apiKey))); |
408 |
-+ locationRequest.setHeader(QNetworkRequest::ContentTypeHeader, QStringLiteral("application/json")); |
409 |
-+ QNetworkReply *locationReply = d->m_nam.post(locationRequest, postData); |
410 |
-+ |
411 |
-+ connect(locationReply, &QNetworkReply::finished, this, [this, locationReply] { |
412 |
-+ locationReply->deleteLater(); |
413 |
-+ d->readGeoLocation(locationReply); |
414 |
-+ }); |
415 |
-+ |
416 |
-+ qCDebug(DATAENGINE_GEOLOCATION) << "Fetching https://location.services.mozilla.com/v1/country"; |
417 |
-+ QNetworkRequest countryRequest(QUrl(QStringLiteral("https://location.services.mozilla.com/v1/country?key=%1").arg(apiKey))); |
418 |
-+ countryRequest.setHeader(QNetworkRequest::ContentTypeHeader, QStringLiteral("application/json")); |
419 |
-+ QNetworkReply *countryReply = d->m_nam.post(countryRequest, postData); |
420 |
-+ |
421 |
-+ connect(countryReply, &QNetworkReply::finished, this, [this, countryReply] { |
422 |
-+ countryReply->deleteLater(); |
423 |
-+ d->readCountry(countryReply); |
424 |
-+ }); |
425 |
- } |
426 |
- |
427 |
- K_PLUGIN_CLASS_WITH_JSON(Ip, "plasma-geolocation-ip.json") |
428 |
--- |
429 |
-GitLab |
430 |
- |
431 |
- |
432 |
|
433 |
diff --git a/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-layout-save.patch b/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-layout-save.patch |
434 |
deleted file mode 100644 |
435 |
index ed298549128a..000000000000 |
436 |
--- a/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-layout-save.patch |
437 |
+++ /dev/null |
438 |
@@ -1,33 +0,0 @@ |
439 |
-https://invent.kde.org/plasma/plasma-workspace/-/commit/b983f1c758552346083ffe0b3d47173b487ae426 |
440 |
- |
441 |
-From b983f1c758552346083ffe0b3d47173b487ae426 Mon Sep 17 00:00:00 2001 |
442 |
-From: Aaron Rainbolt <arraybolt3@×××××.com> |
443 |
-Date: Wed, 19 Oct 2022 14:16:26 -0500 |
444 |
-Subject: [PATCH] Save layout immediately after a resolution change triggered |
445 |
- relayout |
446 |
- |
447 |
-(cherry picked from commit f33cd92fbfb765299018bddc2a86ac5326731231) |
448 |
---- |
449 |
- components/containmentlayoutmanager/appletslayout.cpp | 5 +++++ |
450 |
- 1 file changed, 5 insertions(+) |
451 |
- |
452 |
-diff --git a/components/containmentlayoutmanager/appletslayout.cpp b/components/containmentlayoutmanager/appletslayout.cpp |
453 |
-index 70970e8919..c3e957cbd9 100644 |
454 |
---- a/components/containmentlayoutmanager/appletslayout.cpp |
455 |
-+++ b/components/containmentlayoutmanager/appletslayout.cpp |
456 |
-@@ -80,6 +80,11 @@ AppletsLayout::AppletsLayout(QQuickItem *parent) |
457 |
- } else if (!m_geometryBeforeResolutionChange.isEmpty()) { |
458 |
- m_layoutManager->layoutGeometryChanged(newGeom, m_geometryBeforeResolutionChange); |
459 |
- m_geometryBeforeResolutionChange = QRectF(); |
460 |
-+ |
461 |
-+ // If the user doesn't move a widget after this is done, the widget positions won't be saved and they will be in the wrong |
462 |
-+ // places on next login, so save them now. |
463 |
-+ |
464 |
-+ save(); |
465 |
- } |
466 |
- } |
467 |
- m_layoutChanges = NoChange; |
468 |
--- |
469 |
-GitLab |
470 |
- |
471 |
- |
472 |
|
473 |
diff --git a/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-lock-layout.patch b/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-lock-layout.patch |
474 |
deleted file mode 100644 |
475 |
index 422b22a678dd..000000000000 |
476 |
--- a/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-lock-layout.patch |
477 |
+++ /dev/null |
478 |
@@ -1,113 +0,0 @@ |
479 |
-https://invent.kde.org/plasma/plasma-workspace/-/commit/0a01c8910309fb9f289fe0aa58492e106d154548 |
480 |
- |
481 |
-From 0a01c8910309fb9f289fe0aa58492e106d154548 Mon Sep 17 00:00:00 2001 |
482 |
-From: Marco Martin <notmart@×××××.com> |
483 |
-Date: Sun, 25 Sep 2022 16:47:31 -0500 |
484 |
-Subject: [PATCH] Introduce a lock that blocks relayouts and config writes |
485 |
- |
486 |
-The resize of the layout area can happen either by screen resolution |
487 |
-change or available screen area change (a panel appears or is resized) |
488 |
-This is not an atomic operation, as width and height are usually set in |
489 |
-2 different operations, and even worse the layout area is resized to |
490 |
- match the available one with an animation, so many intermediate resizes |
491 |
-that should never cause a relayout happen. |
492 |
-In normal operation an event compression timer limits the actual |
493 |
-relayouts to hopefully one, but if the system is really slowed down |
494 |
-(for instance, startup) the timer may expire and cause relayouts in |
495 |
-non useful sizes, losing the needed configuration |
496 |
-In combination with |
497 |
- |
498 |
-The lock blocks all relayout and config writes when the size of the |
499 |
-layout area doesn't correspond to corona availablescreenrect, which are |
500 |
-the only "settled" cases. |
501 |
- |
502 |
-BUG:413645 |
503 |
---- a/components/containmentlayoutmanager/appletslayout.cpp |
504 |
-+++ b/components/containmentlayoutmanager/appletslayout.cpp |
505 |
-@@ -56,9 +56,10 @@ AppletsLayout::AppletsLayout(QQuickItem *parent) |
506 |
- connect(m_layoutChangeTimer, &QTimer::timeout, this, [this]() { |
507 |
- // We can't assume m_containment to be valid: if we load in a plasmoid that can run also |
508 |
- // in "applet" mode, m_containment will never be valid |
509 |
-- if (!m_containment) { |
510 |
-+ if (!m_containment || width() <= 0 || height() <= 0 || m_relayoutLock) { |
511 |
- return; |
512 |
- } |
513 |
-+ |
514 |
- const QString &serializedConfig = m_containment->config().readEntry(m_configKey, ""); |
515 |
- if ((m_layoutChanges & ConfigKeyChange) && !serializedConfig.isEmpty()) { |
516 |
- if (!m_configKey.isEmpty() && m_containment) { |
517 |
-@@ -169,6 +170,27 @@ void AppletsLayout::setFallbackConfigKey(const QString &key) |
518 |
- Q_EMIT fallbackConfigKeyChanged(); |
519 |
- } |
520 |
- |
521 |
-+bool AppletsLayout::relayoutLock() const |
522 |
-+{ |
523 |
-+ return m_relayoutLock; |
524 |
-+} |
525 |
-+ |
526 |
-+void AppletsLayout::setRelayoutLock(bool lock) |
527 |
-+{ |
528 |
-+ if (lock == m_relayoutLock) { |
529 |
-+ return; |
530 |
-+ } |
531 |
-+ |
532 |
-+ m_relayoutLock = lock; |
533 |
-+ |
534 |
-+ if (!lock && m_layoutChanges != NoChange) { |
535 |
-+ m_layoutChangeTimer->start(); |
536 |
-+ } |
537 |
-+ |
538 |
-+ Q_EMIT relayoutLockChanged(); |
539 |
-+} |
540 |
-+ |
541 |
-+ |
542 |
- QJSValue AppletsLayout::acceptsAppletCallback() const |
543 |
- { |
544 |
- return m_acceptsAppletCallback; |
545 |
-@@ -468,7 +490,7 @@ void AppletsLayout::geometryChanged(const QRectF &newGeometry, const QRectF &old |
546 |
- } |
547 |
- |
548 |
- // Only do a layouting procedure if we received a valid size |
549 |
-- if (!newGeometry.isEmpty()) { |
550 |
-+ if (!newGeometry.isEmpty() && newGeometry != oldGeometry) { |
551 |
- m_layoutChanges |= SizeChange; |
552 |
- m_layoutChangeTimer->start(); |
553 |
- } |
554 |
---- a/components/containmentlayoutmanager/appletslayout.h |
555 |
-+++ b/components/containmentlayoutmanager/appletslayout.h |
556 |
-@@ -39,6 +39,8 @@ class AppletsLayout : public QQuickItem |
557 |
- // from the screen size and plasma starts on an "unexpected" size |
558 |
- Q_PROPERTY(QString fallbackConfigKey READ fallbackConfigKey WRITE setFallbackConfigKey NOTIFY fallbackConfigKeyChanged) |
559 |
- |
560 |
-+ Q_PROPERTY(bool relayoutLock READ relayoutLock WRITE setRelayoutLock NOTIFY relayoutLockChanged) |
561 |
-+ |
562 |
- Q_PROPERTY(PlasmaQuick::AppletQuickItem *containment READ containment WRITE setContainment NOTIFY containmentChanged) |
563 |
- |
564 |
- Q_PROPERTY(QJSValue acceptsAppletCallback READ acceptsAppletCallback WRITE setAcceptsAppletCallback NOTIFY acceptsAppletCallbackChanged) |
565 |
-@@ -103,6 +105,9 @@ public: |
566 |
- QString fallbackConfigKey() const; |
567 |
- void setFallbackConfigKey(const QString &key); |
568 |
- |
569 |
-+ bool relayoutLock() const; |
570 |
-+ void setRelayoutLock(bool lock); |
571 |
-+ |
572 |
- PlasmaQuick::AppletQuickItem *containment() const; |
573 |
- void setContainment(PlasmaQuick::AppletQuickItem *containment); |
574 |
- |
575 |
-@@ -162,6 +167,7 @@ Q_SIGNALS: |
576 |
- |
577 |
- void configKeyChanged(); |
578 |
- void fallbackConfigKeyChanged(); |
579 |
-+ void relayoutLockChanged(); |
580 |
- void containmentChanged(); |
581 |
- void minimumItemWidthChanged(); |
582 |
- void minimumItemHeightChanged(); |
583 |
-@@ -226,6 +232,7 @@ private: |
584 |
- QPointF m_mouseDownPosition = QPoint(-1, -1); |
585 |
- bool m_mouseDownWasEditMode = false; |
586 |
- bool m_editMode = false; |
587 |
-+ bool m_relayoutLock = false; |
588 |
- }; |
589 |
- |
590 |
- Q_DECLARE_OPERATORS_FOR_FLAGS(AppletsLayout::LayoutChanges) |
591 |
-GitLab |
592 |
|
593 |
diff --git a/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-prevent-panel-go-out-of-screen.patch b/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-prevent-panel-go-out-of-screen.patch |
594 |
deleted file mode 100644 |
595 |
index ef94ed3afa00..000000000000 |
596 |
--- a/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-prevent-panel-go-out-of-screen.patch |
597 |
+++ /dev/null |
598 |
@@ -1,25 +0,0 @@ |
599 |
-From 9c7ac7061c5c85d63875eaee70793ba04334c1d0 Mon Sep 17 00:00:00 2001 |
600 |
-From: Fushan Wen <qydwhotmail@×××××.com> |
601 |
-Date: Fri, 16 Sep 2022 14:34:27 +0000 |
602 |
-Subject: [PATCH] Revert "Revert "Prevent panel going out of screen |
603 |
- boundaries"" |
604 |
- |
605 |
-This reverts commit 17774bc4c673294a7c8a6e80660d83cce1ba8891 |
606 |
- |
607 |
-There is still a known culprit (duplicate display names) so the hack shouldn't be reverted. |
608 |
- |
609 |
-CCBUG: 353975 |
610 |
-CCBUG: 438114 |
611 |
---- a/shell/panelview.cpp |
612 |
-+++ b/shell/panelview.cpp |
613 |
-@@ -859,6 +859,9 @@ void PanelView::moveEvent(QMoveEvent *ev) |
614 |
- updateEnabledBorders(); |
615 |
- m_strutsTimer.start(STRUTSTIMERDELAY); |
616 |
- PlasmaQuick::ContainmentView::moveEvent(ev); |
617 |
-+ if (m_screenToFollow && !m_screenToFollow->geometry().contains(geometry())) { |
618 |
-+ positionPanel(); |
619 |
-+ } |
620 |
- } |
621 |
- |
622 |
- void PanelView::keyPressEvent(QKeyEvent *event) |
623 |
-GitLab |
624 |
|
625 |
diff --git a/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-relayout.patch b/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-relayout.patch |
626 |
deleted file mode 100644 |
627 |
index efd211c26de4..000000000000 |
628 |
--- a/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-relayout.patch |
629 |
+++ /dev/null |
630 |
@@ -1,22 +0,0 @@ |
631 |
-https://invent.kde.org/plasma/plasma-workspace/-/commit/f30431c9ed0bb70506cbc72ea337323660a0dc14 |
632 |
- |
633 |
-From f30431c9ed0bb70506cbc72ea337323660a0dc14 Mon Sep 17 00:00:00 2001 |
634 |
-From: Aaron Rainbolt <arraybolt3@×××××.com> |
635 |
-Date: Wed, 19 Oct 2022 14:15:16 -0500 |
636 |
-Subject: [PATCH] Remove unnecessary heuristic relayout function call |
637 |
- |
638 |
-(cherry picked from commit c344410a061862dd4802581a1ac3b9a09758ace0) |
639 |
---- a/components/containmentlayoutmanager/appletslayout.cpp |
640 |
-+++ b/components/containmentlayoutmanager/appletslayout.cpp |
641 |
-@@ -80,10 +80,6 @@ AppletsLayout::AppletsLayout(QQuickItem *parent) |
642 |
- } else if (!m_geometryBeforeResolutionChange.isEmpty()) { |
643 |
- m_layoutManager->layoutGeometryChanged(newGeom, m_geometryBeforeResolutionChange); |
644 |
- m_geometryBeforeResolutionChange = QRectF(); |
645 |
-- |
646 |
-- // Heuristically relayout items only when the plasma startup is fully completed |
647 |
-- } else { |
648 |
-- polish(); |
649 |
- } |
650 |
- } |
651 |
- m_layoutChanges = NoChange; |
652 |
-GitLab |
653 |
|
654 |
diff --git a/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-systray-double-destroy.patch b/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-systray-double-destroy.patch |
655 |
deleted file mode 100644 |
656 |
index 3719f2dcae7a..000000000000 |
657 |
--- a/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-systray-double-destroy.patch |
658 |
+++ /dev/null |
659 |
@@ -1,24 +0,0 @@ |
660 |
-https://invent.kde.org/plasma/plasma-workspace/-/commit/432d7c4b51c5a1f17af327d770266b3fe81e5ae5 |
661 |
- |
662 |
-From 432d7c4b51c5a1f17af327d770266b3fe81e5ae5 Mon Sep 17 00:00:00 2001 |
663 |
-From: Nicolas Fella <nicolas.fella@×××.de> |
664 |
-Date: Tue, 27 Sep 2022 18:04:51 +0200 |
665 |
-Subject: [PATCH] [applets/systemtray] Don't manually destroy innerContainment |
666 |
- |
667 |
-It's already destroyed by the corona |
668 |
- |
669 |
-BUG: 420245 |
670 |
-(cherry picked from commit 7baa4c221e45f161adf4e00d4cf0e36d6436e90c) |
671 |
---- a/applets/systemtray/container/systemtraycontainer.cpp |
672 |
-+++ b/applets/systemtray/container/systemtraycontainer.cpp |
673 |
-@@ -20,9 +20,6 @@ SystemTrayContainer::SystemTrayContainer(QObject *parent, const KPluginMetaData |
674 |
- |
675 |
- SystemTrayContainer::~SystemTrayContainer() |
676 |
- { |
677 |
-- if (destroyed()) { |
678 |
-- m_innerContainment->destroy(); |
679 |
-- } |
680 |
- } |
681 |
- |
682 |
- void SystemTrayContainer::init() |
683 |
-GitLab |
684 |
|
685 |
diff --git a/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-widgetexplorer-recurse-containments.patch b/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-widgetexplorer-recurse-containments.patch |
686 |
deleted file mode 100644 |
687 |
index 1efe75b9b41d..000000000000 |
688 |
--- a/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-widgetexplorer-recurse-containments.patch |
689 |
+++ /dev/null |
690 |
@@ -1,26 +0,0 @@ |
691 |
-https://invent.kde.org/plasma/plasma-workspace/-/commit/c7ba560ccaac5e469cb2d6bf66c39e1acf967454 |
692 |
-https://mail.kde.org/pipermail/distributions/2022-September/001287.html |
693 |
- |
694 |
-From: Nicolas Fella <nicolas.fella@×××.de> |
695 |
-Date: Sun, 21 Aug 2022 16:33:50 +0200 |
696 |
-Subject: [PATCH] [widgetexplorer] Don't recurse into applet's containments |
697 |
- |
698 |
-The intention of this code appears to be finding system tray applets, since the systemtray is a containment within another applet/containment |
699 |
- |
700 |
-However the code causes an infinit recursion since we are calling addContainment on the same containment again |
701 |
- |
702 |
-The recursion also is unnecessary since corona->containments() already lists the system tray containment, so we don't need to find it by recursing through the panel's children |
703 |
---- a/components/shellprivate/widgetexplorer/widgetexplorer.cpp |
704 |
-+++ b/components/shellprivate/widgetexplorer/widgetexplorer.cpp |
705 |
-@@ -280,10 +280,6 @@ void WidgetExplorerPrivate::addContainment(Containment *containment) |
706 |
- |
707 |
- foreach (Applet *applet, containment->applets()) { |
708 |
- if (applet->pluginMetaData().isValid()) { |
709 |
-- Containment *childContainment = applet->property("containment").value<Containment *>(); |
710 |
-- if (childContainment) { |
711 |
-- addContainment(childContainment); |
712 |
-- } |
713 |
- runningApplets[applet->pluginMetaData().pluginId()]++; |
714 |
- } else { |
715 |
- qDebug() << "Invalid plugin metadata. :("; |
716 |
-GitLab |
717 |
|
718 |
diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.25.5-r5.ebuild b/kde-plasma/plasma-workspace/plasma-workspace-5.25.5-r5.ebuild |
719 |
deleted file mode 100644 |
720 |
index c642d1cafc2d..000000000000 |
721 |
--- a/kde-plasma/plasma-workspace/plasma-workspace-5.25.5-r5.ebuild |
722 |
+++ /dev/null |
723 |
@@ -1,229 +0,0 @@ |
724 |
-# Copyright 1999-2022 Gentoo Authors |
725 |
-# Distributed under the terms of the GNU General Public License v2 |
726 |
- |
727 |
-EAPI=8 |
728 |
- |
729 |
-ECM_HANDBOOK="optional" |
730 |
-ECM_TEST="forceoptional" |
731 |
-KFMIN=5.99.0 |
732 |
-PVCUT=$(ver_cut 1-3) |
733 |
-QTMIN=5.15.5 |
734 |
-VIRTUALX_REQUIRED="test" |
735 |
-inherit ecm plasma.kde.org |
736 |
- |
737 |
-DESCRIPTION="KDE Plasma workspace" |
738 |
- |
739 |
-LICENSE="GPL-2" # TODO: CHECK |
740 |
-SLOT="5" |
741 |
-KEYWORDS="amd64 ~arm arm64 ~loong ~ppc64 ~riscv x86" |
742 |
-IUSE="appstream +calendar +fontconfig geolocation gps +policykit |
743 |
-screencast +semantic-desktop telemetry" |
744 |
- |
745 |
-REQUIRED_USE="gps? ( geolocation )" |
746 |
-RESTRICT="test" |
747 |
- |
748 |
-# slot op: various private QtWaylandClient headers |
749 |
-COMMON_DEPEND=" |
750 |
- dev-libs/icu:= |
751 |
- >=dev-libs/wayland-1.15 |
752 |
- >=dev-qt/qtdbus-${QTMIN}:5 |
753 |
- >=dev-qt/qtdeclarative-${QTMIN}:5[widgets] |
754 |
- >=dev-qt/qtgui-${QTMIN}:5=[jpeg,libinput] |
755 |
- >=dev-qt/qtnetwork-${QTMIN}:5 |
756 |
- >=dev-qt/qtsql-${QTMIN}:5 |
757 |
- >=dev-qt/qtsvg-${QTMIN}:5 |
758 |
- >=dev-qt/qtwayland-${QTMIN}:5= |
759 |
- >=dev-qt/qtwidgets-${QTMIN}:5 |
760 |
- >=dev-qt/qtx11extras-${QTMIN}:5 |
761 |
- >=dev-qt/qtxml-${QTMIN}:5 |
762 |
- >=kde-frameworks/kactivities-${KFMIN}:5 |
763 |
- >=kde-frameworks/kactivities-stats-${KFMIN}:5 |
764 |
- >=kde-frameworks/karchive-${KFMIN}:5 |
765 |
- >=kde-frameworks/kauth-${KFMIN}:5 |
766 |
- >=kde-frameworks/kbookmarks-${KFMIN}:5 |
767 |
- >=kde-frameworks/kcompletion-${KFMIN}:5 |
768 |
- >=kde-frameworks/kconfig-${KFMIN}:5 |
769 |
- >=kde-frameworks/kconfigwidgets-${KFMIN}:5 |
770 |
- >=kde-frameworks/kcoreaddons-${KFMIN}:5 |
771 |
- >=kde-frameworks/kcrash-${KFMIN}:5 |
772 |
- >=kde-frameworks/kdbusaddons-${KFMIN}:5 |
773 |
- >=kde-frameworks/kdeclarative-${KFMIN}:5 |
774 |
- >=kde-frameworks/kded-${KFMIN}:5 |
775 |
- >=kde-frameworks/kglobalaccel-${KFMIN}:5 |
776 |
- >=kde-frameworks/kguiaddons-${KFMIN}:5 |
777 |
- >=kde-frameworks/ki18n-${KFMIN}:5 |
778 |
- >=kde-frameworks/kiconthemes-${KFMIN}:5 |
779 |
- >=kde-frameworks/kidletime-${KFMIN}:5 |
780 |
- >=kde-frameworks/kinit-${KFMIN}:5 |
781 |
- >=kde-frameworks/kio-${KFMIN}:5 |
782 |
- >=kde-frameworks/kitemmodels-${KFMIN}:5 |
783 |
- >=kde-frameworks/kitemviews-${KFMIN}:5 |
784 |
- >=kde-frameworks/kjobwidgets-${KFMIN}:5 |
785 |
- >=kde-frameworks/knewstuff-${KFMIN}:5 |
786 |
- >=kde-frameworks/knotifications-${KFMIN}:5 |
787 |
- >=kde-frameworks/knotifyconfig-${KFMIN}:5 |
788 |
- >=kde-frameworks/kpackage-${KFMIN}:5 |
789 |
- >=kde-frameworks/kpeople-${KFMIN}:5 |
790 |
- >=kde-frameworks/krunner-${KFMIN}:5 |
791 |
- >=kde-frameworks/kservice-${KFMIN}:5 |
792 |
- >=kde-frameworks/ktexteditor-${KFMIN}:5 |
793 |
- >=kde-frameworks/ktextwidgets-${KFMIN}:5 |
794 |
- >=kde-frameworks/kunitconversion-${KFMIN}:5 |
795 |
- >=kde-frameworks/kwallet-${KFMIN}:5 |
796 |
- >=kde-frameworks/kwayland-${KFMIN}:5 |
797 |
- >=kde-frameworks/kwidgetsaddons-${KFMIN}:5 |
798 |
- >=kde-frameworks/kwindowsystem-${KFMIN}:5 |
799 |
- >=kde-frameworks/kxmlgui-${KFMIN}:5 |
800 |
- >=kde-frameworks/plasma-${KFMIN}:5 |
801 |
- >=kde-frameworks/prison-${KFMIN}:5[qml] |
802 |
- >=kde-frameworks/solid-${KFMIN}:5 |
803 |
- >=kde-plasma/breeze-${PVCUT}:5 |
804 |
- >=kde-plasma/kscreenlocker-${PVCUT}:5 |
805 |
- >=kde-plasma/kwin-${PVCUT}:5 |
806 |
- >=kde-plasma/layer-shell-qt-${PVCUT}:5 |
807 |
- >=kde-plasma/libkscreen-${PVCUT}:5 |
808 |
- >=kde-plasma/libksysguard-${PVCUT}:5 |
809 |
- >=kde-plasma/libkworkspace-${PVCUT}:5 |
810 |
- >=media-libs/phonon-4.11.0 |
811 |
- sci-libs/libqalculate:= |
812 |
- sys-libs/zlib |
813 |
- x11-libs/libICE |
814 |
- x11-libs/libSM |
815 |
- x11-libs/libX11 |
816 |
- x11-libs/libXau |
817 |
- x11-libs/libxcb |
818 |
- x11-libs/libXcursor |
819 |
- x11-libs/libXfixes |
820 |
- x11-libs/libXrender |
821 |
- x11-libs/libXtst |
822 |
- x11-libs/xcb-util |
823 |
- x11-libs/xcb-util-image |
824 |
- appstream? ( dev-libs/appstream[qt5] ) |
825 |
- calendar? ( >=kde-frameworks/kholidays-${KFMIN}:5 ) |
826 |
- fontconfig? ( |
827 |
- >=dev-qt/qtprintsupport-${QTMIN}:5 |
828 |
- media-libs/fontconfig |
829 |
- x11-libs/libXft |
830 |
- x11-libs/xcb-util-image |
831 |
- ) |
832 |
- geolocation? ( >=kde-frameworks/networkmanager-qt-${KFMIN}:5 ) |
833 |
- gps? ( sci-geosciences/gpsd ) |
834 |
- policykit? ( virtual/libcrypt:= ) |
835 |
- screencast? ( |
836 |
- >=dev-qt/qtgui-${QTMIN}:5=[egl] |
837 |
- media-libs/libglvnd |
838 |
- >=media-video/pipewire-0.3:= |
839 |
- x11-libs/libdrm |
840 |
- ) |
841 |
- semantic-desktop? ( >=kde-frameworks/baloo-${KFMIN}:5 ) |
842 |
- telemetry? ( dev-libs/kuserfeedback:5 ) |
843 |
-" |
844 |
-DEPEND="${COMMON_DEPEND} |
845 |
- >=dev-libs/plasma-wayland-protocols-1.6.0 |
846 |
- >=dev-qt/qtconcurrent-${QTMIN}:5 |
847 |
- >=dev-util/wayland-scanner-1.19.0 |
848 |
- x11-base/xorg-proto |
849 |
- fontconfig? ( x11-libs/libXrender ) |
850 |
- test? ( >=dev-libs/wayland-protocols-1.24 ) |
851 |
-" |
852 |
-RDEPEND="${COMMON_DEPEND} |
853 |
- app-text/iso-codes |
854 |
- >=dev-qt/qdbus-${QTMIN}:* |
855 |
- >=dev-qt/qtgraphicaleffects-${QTMIN}:5 |
856 |
- >=dev-qt/qtpaths-${QTMIN}:5 |
857 |
- >=dev-qt/qtquickcontrols-${QTMIN}:5[widgets] |
858 |
- >=dev-qt/qtquickcontrols2-${QTMIN}:5 |
859 |
- kde-apps/kio-extras:5 |
860 |
- >=kde-frameworks/kirigami-${KFMIN}:5 |
861 |
- >=kde-frameworks/kquickcharts-${KFMIN}:5 |
862 |
- >=kde-plasma/milou-${PVCUT}:5 |
863 |
- >=kde-plasma/plasma-integration-${PVCUT}:5 |
864 |
- sys-apps/dbus |
865 |
- x11-apps/xmessage |
866 |
- x11-apps/xprop |
867 |
- x11-apps/xrdb |
868 |
- x11-apps/xsetroot |
869 |
- !<kde-plasma/breeze-5.22.90:5 |
870 |
- !<kde-plasma/plasma-desktop-5.23.90:5 |
871 |
- policykit? ( sys-apps/accountsservice ) |
872 |
-" |
873 |
-BDEPEND=" |
874 |
- >=dev-qt/qtwaylandscanner-${QTMIN}:5 |
875 |
- virtual/pkgconfig |
876 |
-" |
877 |
-PDEPEND=">=kde-plasma/kde-cli-tools-${PVCUT}:5" |
878 |
- |
879 |
-PATCHES=( |
880 |
- "${FILESDIR}/${PN}-5.24.80-split-libkworkspace.patch" # downstream |
881 |
- "${FILESDIR}/${PN}-5.22.5-krunner-cwd-at-home.patch" # TODO upstream: KDE-bug 432975, bug 767478 |
882 |
- "${FILESDIR}/${P}-widgetexplorer-recurse-containments.patch" # https://mail.kde.org/pipermail/distributions/2022-September/001287.html |
883 |
- "${FILESDIR}/${P}-delay-ksplash-until-after-env-setup.patch" # KDE-bug 458865 w/ Qt 5.15.6 |
884 |
- "${FILESDIR}/${P}-fonts-honor-and-present-system-defaults.patch" # KDE-bug 416140 |
885 |
- "${FILESDIR}/${P}-prevent-panel-go-out-of-screen.patch" # git master and Plasma/5.24 branch double revert |
886 |
- "${FILESDIR}/${P}-fix-setpassword.patch" # Plasma/5.25 branch, KDE-bug 459309 |
887 |
- "${FILESDIR}/${P}-systray-double-destroy.patch" # Plasma/5.24 branch, KDE-bug 420245 |
888 |
- "${FILESDIR}/${P}-geolocation-deadlock.patch" # Plasma/5.24 branch, KDE-bug 449984, KDE-bug 457341 |
889 |
- "${FILESDIR}/${P}-lock-layout.patch" # Plasma/5.24 branch, KDE-bug 413645 |
890 |
- "${FILESDIR}/${P}-relayout.patch" # Plasma/5.24 branch |
891 |
- "${FILESDIR}/${P}-layout-save.patch" # Plasma/5.24 branch |
892 |
-) |
893 |
- |
894 |
-src_prepare() { |
895 |
- ecm_src_prepare |
896 |
- |
897 |
- cmake_comment_add_subdirectory libkworkspace |
898 |
- # delete colliding libkworkspace translations |
899 |
- if [[ ${KDE_BUILD_TYPE} = release ]]; then |
900 |
- find po -type f -name "*po" -and -name "libkworkspace*" -delete || die |
901 |
- fi |
902 |
- |
903 |
- # TODO: try to get a build switch upstreamed |
904 |
- if ! use screencast; then |
905 |
- sed -e "s/^pkg_check_modules.*PipeWire/#&/" -i CMakeLists.txt || die |
906 |
- fi |
907 |
- |
908 |
- # TODO: try to get a build switch upstreamed |
909 |
- if use geolocation; then |
910 |
- use gps || sed -e "s/^pkg_check_modules.*LIBGPS/#&/" \ |
911 |
- -i dataengines/geolocation/CMakeLists.txt || die |
912 |
- fi |
913 |
- |
914 |
- if ! use policykit; then |
915 |
- cmake_run_in kcms cmake_comment_add_subdirectory users |
916 |
- fi |
917 |
-} |
918 |
- |
919 |
-src_configure() { |
920 |
- local mycmakeargs=( |
921 |
- -DBUILD_xembed-sni-proxy=OFF |
922 |
- -DCMAKE_DISABLE_FIND_PACKAGE_PackageKitQt5=ON |
923 |
- $(cmake_use_find_package appstream AppStreamQt) |
924 |
- $(cmake_use_find_package calendar KF5Holidays) |
925 |
- $(cmake_use_find_package fontconfig Fontconfig) |
926 |
- $(cmake_use_find_package geolocation KF5NetworkManagerQt) |
927 |
- $(cmake_use_find_package semantic-desktop KF5Baloo) |
928 |
- $(cmake_use_find_package telemetry KUserFeedback) |
929 |
- ) |
930 |
- |
931 |
- ecm_src_configure |
932 |
-} |
933 |
- |
934 |
-src_install() { |
935 |
- ecm_src_install |
936 |
- |
937 |
- # default startup and shutdown scripts |
938 |
- insinto /etc/xdg/plasma-workspace/env |
939 |
- doins "${FILESDIR}"/10-agent-startup.sh |
940 |
- |
941 |
- insinto /etc/xdg/plasma-workspace/shutdown |
942 |
- doins "${FILESDIR}"/10-agent-shutdown.sh |
943 |
- fperms +x /etc/xdg/plasma-workspace/shutdown/10-agent-shutdown.sh |
944 |
-} |
945 |
- |
946 |
-pkg_postinst () { |
947 |
- ecm_pkg_postinst |
948 |
- |
949 |
- elog "To enable gpg-agent and/or ssh-agent in Plasma sessions," |
950 |
- elog "edit ${EPREFIX}/etc/xdg/plasma-workspace/env/10-agent-startup.sh" |
951 |
- elog "and ${EPREFIX}/etc/xdg/plasma-workspace/shutdown/10-agent-shutdown.sh" |
952 |
-} |