[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2024-09-20 Thread Andreas Sturmlechner
commit: 0f286d339c6912c9af2b648bba9bb512d370842b
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Fri Sep 20 16:52:12 2024 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Fri Sep 20 17:11:37 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f286d33

kde-plasma/plasma-workspace: Fix X11 logout w/ Session Restore enabled

KDE-bug: https://bugs.kde.org/show_bug.cgi?id=488853

Closes: https://bugs.gentoo.org/938925
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 ...ce-6.1.5-fix-x11-logout-w-session-restore.patch |  45 
 .../plasma-workspace-6.1.5-r2.ebuild   | 232 +
 2 files changed, 277 insertions(+)

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-6.1.5-fix-x11-logout-w-session-restore.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-6.1.5-fix-x11-logout-w-session-restore.patch
new file mode 100644
index ..052ff52bba38
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-6.1.5-fix-x11-logout-w-session-restore.patch
@@ -0,0 +1,45 @@
+From 9bd2dcc8a785d977cdf67a7cbb467423803e3327 Mon Sep 17 00:00:00 2001
+From: David Edmundson 
+Date: Fri, 20 Sep 2024 14:36:11 +0200
+Subject: [PATCH] startkde: Disable session management in our session
+ management
+
+We have two types of session restore, ksmserver for ICE clients and a
+small fallback app that runs after ksmserver for any stragglers.
+
+This fallback app is a gui application, as such it will try and connect
+to ksmserver. This isn't useful and can cause a block.
+
+BUG: 488853
+---
+ startkde/session-restore/restore.cpp | 1 +
+ startkde/session-restore/save.cpp| 1 +
+ 2 files changed, 2 insertions(+)
+
+diff --git a/startkde/session-restore/restore.cpp 
b/startkde/session-restore/restore.cpp
+index 2d86215a6f..aecc179139 100644
+--- a/startkde/session-restore/restore.cpp
 b/startkde/session-restore/restore.cpp
+@@ -22,6 +22,7 @@ using namespace Qt::StringLiterals;
+ 
+ int main(int argc, char *argv[])
+ {
++QCoreApplication::setAttribute(Qt::AA_DisableSessionManager);
+ QGuiApplication a(argc, argv);
+ a.setDesktopSettingsAware(false);
+ a.setApplicationName(u"plasmasessionrestore"_s);
+diff --git a/startkde/session-restore/save.cpp 
b/startkde/session-restore/save.cpp
+index a2a0fb2086..5e1473ed0b 100644
+--- a/startkde/session-restore/save.cpp
 b/startkde/session-restore/save.cpp
+@@ -29,6 +29,7 @@ using namespace Qt::StringLiterals;
+ 
+ int main(int argc, char *argv[])
+ {
++QCoreApplication::setAttribute(Qt::AA_DisableSessionManager);
+ QGuiApplication::setDesktopFileName(u"plasma-fallback-session-save"_s);
+ QGuiApplication a(argc, argv);
+ a.setApplicationName(u"plasmasessionrestore"_s);
+-- 
+GitLab
+

diff --git a/kde-plasma/plasma-workspace/plasma-workspace-6.1.5-r2.ebuild 
b/kde-plasma/plasma-workspace/plasma-workspace-6.1.5-r2.ebuild
new file mode 100644
index ..317637695d40
--- /dev/null
+++ b/kde-plasma/plasma-workspace/plasma-workspace-6.1.5-r2.ebuild
@@ -0,0 +1,232 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_HANDBOOK="optional"
+ECM_TEST="forceoptional"
+KFMIN=6.5.0
+PVCUT=$(ver_cut 1-3)
+QTMIN=6.7.2
+inherit ecm plasma.kde.org
+
+DESCRIPTION="KDE Plasma workspace"
+
+LICENSE="GPL-2" # TODO: CHECK
+SLOT="6"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
+IUSE="appstream +calendar +fontconfig geolocation gps +policykit
+screencast +semantic-desktop systemd telemetry +wallpaper-metadata"
+
+REQUIRED_USE="gps? ( geolocation )"
+RESTRICT="test"
+
+# kde-frameworks/kwindowsystem[X]: Uses KX11Extras
+# slot op: Uses Qt::GuiPrivate for qtx11extras_p.h
+# slot op: various private QtWaylandClient headers
+COMMON_DEPEND="
+   dev-libs/icu:=
+   >=dev-libs/wayland-1.15
+   >=dev-qt/qt5compat-${QTMIN}:6[qml]
+   >=dev-qt/qtbase-${QTMIN}:6=[dbus,gui,libinput,network,sql,widgets,xml]
+   >=dev-qt/qtdeclarative-${QTMIN}:6[widgets]
+   >=dev-qt/qtshadertools-${QTMIN}:6
+   >=dev-qt/qtsvg-${QTMIN}:6
+   >=dev-qt/qtwayland-${QTMIN}:6=
+   >=kde-frameworks/karchive-${KFMIN}:6
+   >=kde-frameworks/kauth-${KFMIN}:6
+   >=kde-frameworks/kbookmarks-${KFMIN}:6
+   >=kde-frameworks/kcmutils-${KFMIN}:6
+   >=kde-frameworks/kcompletion-${KFMIN}:6
+   >=kde-frameworks/kconfig-${KFMIN}:6
+   >=kde-frameworks/kconfigwidgets-${KFMIN}:6
+   >=kde-frameworks/kcoreaddons-${KFMIN}:6
+   >=kde-frameworks/kcrash-${KFMIN}:6
+   >=kde-frameworks/kdbusaddons-${KFMIN}:6
+   >=kde-frameworks/kdeclarative-${KFMIN}:6
+   >=kde-frameworks/kded-${KFMIN}:6
+   >=kde-frameworks/kglobalaccel-${KFMIN}:6
+   >=kde-frameworks/kguiaddons-${KFMIN}:6
+   >=kde-frameworks/ki18n-${KFMIN}:6
+   >=kde-frameworks/kiconthemes-${KFMIN}:6
+   >=kde-frameworks/kidletime-${KFMIN}:6
+   >=kde-frameworks/kio-${KFMIN}:6
+

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2024-08-12 Thread Andreas Sturmlechner
commit: c14898232f396019f7c882ed0df560cb72d64f77
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Sat Aug 10 20:44:16 2024 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Mon Aug 12 20:16:16 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1489823

kde-plasma/plasma-workspace: Backport 3 fixes from 6.1.5

KDE-bug: https://bugs.kde.org/show_bug.cgi?id=450579
KDE-bug: https://bugs.kde.org/show_bug.cgi?id=490569
KDE-bug: https://bugs.kde.org/show_bug.cgi?id=491369

Set KFMIN=6.5.0 to be in sync with kde-plasma/kwin-6.1.4-r1.

Signed-off-by: Andreas Sturmlechner  gentoo.org>

 ...sma-workspace-6.1.4-fix-mediacontroller-1.patch |  39 
 ...sma-workspace-6.1.4-fix-mediacontroller-2.patch |  46 
 .../plasma-workspace-6.1.4-fix-svg-images.patch|  36 
 ...rkspace-6.1.4-restart-unhide-timer-on-dnd.patch |  38 
 .../plasma-workspace-6.1.4-r1.ebuild   | 235 +
 5 files changed, 394 insertions(+)

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-6.1.4-fix-mediacontroller-1.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-6.1.4-fix-mediacontroller-1.patch
new file mode 100644
index ..2cf7c959d996
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-6.1.4-fix-mediacontroller-1.patch
@@ -0,0 +1,39 @@
+From 9a294b8a91170ed2bd5c75a65c81fee7c58839d2 Mon Sep 17 00:00:00 2001
+From: Fushan Wen 
+Date: Fri, 9 Aug 2024 00:57:00 +
+Subject: [PATCH] applets/mediacontroller: use Play/Pause to control players
+
+Some players don't report updated CanPlay or CanPause properties to
+MPRIS, which is a problem for PlayPause() as it requires the player can
+play and pause at the same time. Use Play/Pause to work around it.
+
+CCBUG: 490569
+
+
+(cherry picked from commit c5edc144665a0d814a908ae6a120a288f7965d7d)
+
+Co-authored-by: Fushan Wen 
+---
+ applets/mediacontroller/package/contents/ui/main.qml | 6 +-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/applets/mediacontroller/package/contents/ui/main.qml 
b/applets/mediacontroller/package/contents/ui/main.qml
+index 885c972ae71..fa09d2a86c4 100644
+--- a/applets/mediacontroller/package/contents/ui/main.qml
 b/applets/mediacontroller/package/contents/ui/main.qml
+@@ -174,7 +174,11 @@ PlasmoidItem {
+ mpris2Model.currentPlayer.Pause();
+ }
+ function togglePlaying() {
+-mpris2Model.currentPlayer.PlayPause();
++if (root.isPlaying) {
++mpris2Model.currentPlayer.Pause();
++} else {
++mpris2Model.currentPlayer.Play();
++}
+ }
+ function stop() {
+ mpris2Model.currentPlayer.Stop();
+-- 
+GitLab
+

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-6.1.4-fix-mediacontroller-2.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-6.1.4-fix-mediacontroller-2.patch
new file mode 100644
index ..e7bc079b6577
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-6.1.4-fix-mediacontroller-2.patch
@@ -0,0 +1,46 @@
+From 1ff8f37f6a8fb47697364d56460989abbd764bbf Mon Sep 17 00:00:00 2001
+From: Fushan Wen 
+Date: Fri, 9 Aug 2024 00:57:31 +
+Subject: [PATCH] libkmpris: refresh player when track list changes
+
+For some players when the current track list changes, it doesn't emit
+all changed properties for org.mpris.MediaPlayer2.Player. This adds a
+check for the track list so when the track list changes, the player
+information is refreshed.
+
+BUG: 490569
+FIXED-IN: 6.1.5
+
+
+(cherry picked from commit 627f5418409f2e362fb83f6fdb6f427221460a0c)
+
+Co-authored-by: Fushan Wen 
+---
+ libkmpris/playercontainer.cpp | 8 ++--
+ 1 file changed, 2 insertions(+), 6 deletions(-)
+
+diff --git a/libkmpris/playercontainer.cpp b/libkmpris/playercontainer.cpp
+index f48103d507d..c8d37efae5e 100644
+--- a/libkmpris/playercontainer.cpp
 b/libkmpris/playercontainer.cpp
+@@ -711,15 +711,11 @@ void 
PlayerContainer::onGetPropsFinished(QDBusPendingCallWatcher *watcher)
+ 
+ void PlayerContainer::onPropertiesChanged(const QString &interfaceName, const 
QVariantMap &changedProperties, const QStringList &invalidatedProperties)
+ {
+-if (interfaceName != QLatin1String("org.mpris.MediaPlayer2.Player") && 
interfaceName != QLatin1String("org.mpris.MediaPlayer2")) {
+-// org.mpris.MediaPlayer2.TrackList is ignored for now
+-return;
+-}
+-if (!invalidatedProperties.empty()) {
++if (!invalidatedProperties.empty() || interfaceName == 
u"org.mpris.MediaPlayer2.TrackList") {
+ disconnect(m_propsIface, 
&OrgFreedesktopDBusPropertiesInterface::PropertiesChanged, this, 
&PlayerContainer::onPropertiesChanged);
+ disconnect(m_playerIface, 
&OrgMprisMediaPlayer2PlayerInterface::Seeked, this, &PlayerContainer::onSeeked);
+ refresh();
+-} else {
++} else if (interfaceName == u"org.mpris.MediaPlayer2.Player" || 
interfaceName == u"org.mpri

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2024-06-05 Thread Andreas Sturmlechner
commit: c1c8413a508c5484dd0d65f8f84862251576da6a
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Wed Jun  5 18:50:45 2024 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Wed Jun  5 18:57:08 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1c8413a

kde-plasma/plasma-workspace: Fix writing ICEAuthority file

KDE-bug: https://bugs.kde.org/487912

Bug: https://bugs.gentoo.org/933435
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 ...e-5.27.11.1-fix-writing-iceauthority-file.patch |  66 ++
 .../plasma-workspace-5.27.11.1-r1.ebuild   | 234 +
 2 files changed, 300 insertions(+)

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.27.11.1-fix-writing-iceauthority-file.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.27.11.1-fix-writing-iceauthority-file.patch
new file mode 100644
index ..ed1b67bbd85f
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.27.11.1-fix-writing-iceauthority-file.patch
@@ -0,0 +1,66 @@
+From 1181acfe30557d6646511df8d98d82589878a570 Mon Sep 17 00:00:00 2001
+From: Fushan Wen 
+Date: Tue, 4 Jun 2024 12:18:11 +
+Subject: [PATCH] Fix writing ICEAuthority file
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Commit 9398f6cf8933055b31506ba155aef2fc2b3561d7 "Remove iceauth
+dependency" introduced two bugs:
+
+1) "fp" is never closed, so the generated auth data stays buffered in
+   memory for some indeterminate time and the file stays empty on disk.
+   This completely breaks authentication and thus also session restore.
+
+2) Checking the return value of IceWriteAuthFileEntry() is inverted (the
+   function returns non-zero on success), so warnings are printed iff
+   everything goes well.
+
+BUG: 487912
+
+
+(cherry picked from commit 0dcf34458d99b07a3d9054ae0c86c656e0dfa7aa)
+
+Co-authored-by: Tomáš Trnka 
+---
+ ksmserver/server.cpp | 9 +++--
+ 1 file changed, 7 insertions(+), 2 deletions(-)
+
+diff --git a/ksmserver/server.cpp b/ksmserver/server.cpp
+index f88de40dba4..bba6b13ffae 100644
+--- a/ksmserver/server.cpp
 b/ksmserver/server.cpp
+@@ -333,7 +333,7 @@ Status SetAuthentication(int count, IceListenObj 
*listenObjs, IceAuthDataEntry *
+ file_entry->auth_name = strdup("MIT-MAGIC-COOKIE-1");
+ file_entry->auth_data = strdup((*authDataEntries)[i].auth_data);
+ file_entry->auth_data_length = MAGIC_COOKIE_LEN;
+-if (IceWriteAuthFileEntry(fp, file_entry) != 0) {
++if (IceWriteAuthFileEntry(fp, file_entry) == 0) {
+ qWarning("Failed to write ice auth file entry");
+ }
+ IceFreeAuthFileEntry(file_entry);
+@@ -357,7 +357,7 @@ Status SetAuthentication(int count, IceListenObj 
*listenObjs, IceAuthDataEntry *
+ file_entry->auth_name = strdup("MIT-MAGIC-COOKIE-1");
+ file_entry->auth_data = strdup((*authDataEntries)[i + 
1].auth_data);
+ file_entry->auth_data_length = MAGIC_COOKIE_LEN;
+-if (IceWriteAuthFileEntry(fp, file_entry) != 0) {
++if (IceWriteAuthFileEntry(fp, file_entry) == 0) {
+ qWarning("Failed to write xsmp ice auth file entry");
+ }
+ IceFreeAuthFileEntry(file_entry);
+@@ -366,6 +366,11 @@ Status SetAuthentication(int count, IceListenObj 
*listenObjs, IceAuthDataEntry *
+ IceSetPaAuthData(2, &(*authDataEntries)[i]);
+ }
+ 
++if (fclose(fp) != 0) {
++qWarning() << "Could not close ICEAuthority file";
++return 0;
++}
++
+ return (1);
+ }
+ 
+-- 
+GitLab
+

diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.27.11.1-r1.ebuild 
b/kde-plasma/plasma-workspace/plasma-workspace-5.27.11.1-r1.ebuild
new file mode 100644
index ..2f283485e222
--- /dev/null
+++ b/kde-plasma/plasma-workspace/plasma-workspace-5.27.11.1-r1.ebuild
@@ -0,0 +1,234 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_HANDBOOK="optional"
+ECM_TEST="forceoptional"
+KFMIN=5.106.0
+PVCUT=$(ver_cut 1-3)
+QTMIN=5.15.9
+inherit ecm plasma.kde.org
+
+DESCRIPTION="KDE Plasma workspace"
+
+LICENSE="GPL-2" # TODO: CHECK
+SLOT="5"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
+IUSE="appstream +calendar +fontconfig geolocation gps +policykit
+screencast +semantic-desktop telemetry +wallpaper-metadata"
+
+REQUIRED_USE="gps? ( geolocation )"
+RESTRICT="test"
+
+# kde-frameworks/kwindowsystem[X]: Uses KX11Extras
+# slot op: various private QtWaylandClient headers
+COMMON_DEPEND="
+   dev-libs/icu:=
+   >=dev-libs/wayland-1.15
+   >=dev-qt/qtdbus-${QTMIN}:5
+   >=dev-qt/qtdeclarative-${QTMIN}:5[widgets]
+   >=dev-qt/qtgui-${QTMIN}:5=[jpeg,libinput]
+   >=dev-qt/qtnetwork-${QTMIN}:5
+   >=dev-qt/qtsql-${QTMIN}:5
+   >=dev-qt/qtsvg-${QTMIN}:5
+   >=dev-q

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2023-09-24 Thread Andreas Sturmlechner
commit: 88dcc5ac440303a19de568a02ca144613a9cc8b0
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Sun Sep 24 18:56:57 2023 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Sun Sep 24 21:46:37 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88dcc5ac

kde-plasma/plasma-workspace: Fix calendar displaying default region

instead of the selected one.

KDE-bug: https://bugs.kde.org/show_bug.cgi?id=472483

Signed-off-by: Andreas Sturmlechner  gentoo.org>

 ...8-plasmacalendarintegration-holidayregion.patch |  81 +++
 .../plasma-workspace-5.27.8-r1.ebuild  | 232 +
 2 files changed, 313 insertions(+)

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.27.8-plasmacalendarintegration-holidayregion.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.27.8-plasmacalendarintegration-holidayregion.patch
new file mode 100644
index ..d9fc57716763
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.27.8-plasmacalendarintegration-holidayregion.patch
@@ -0,0 +1,81 @@
+From 51dcf82db5990dde9cf3e6b3132dfff2c129bee5 Mon Sep 17 00:00:00 2001
+From: Eugene Popov 
+Date: Thu, 21 Sep 2023 10:31:48 +
+Subject: [PATCH] [plasmacalendarintegration] Fix selected regions are randomly
+ reset to default
+
+Check whether we are reading the selected regions from the group we need.
+
+BUG: 472483
+FIXED-IN: 5.27.9
+
+(cherry picked from commit 72444337c24dac114765ff28768bd55f7e5018c5)
+---
+ plasmacalendarintegration/holidaysevents.cpp | 19 +--
+ plasmacalendarintegration/holidaysevents.h   |  1 -
+ 2 files changed, 9 insertions(+), 11 deletions(-)
+
+diff --git a/plasmacalendarintegration/holidaysevents.cpp 
b/plasmacalendarintegration/holidaysevents.cpp
+index 1e632a602e..605c1bd214 100644
+--- a/plasmacalendarintegration/holidaysevents.cpp
 b/plasmacalendarintegration/holidaysevents.cpp
+@@ -7,18 +7,19 @@
+ #include "holidaysevents.h"
+ 
+ #include 
+-#include 
+ 
+ HolidaysEventsPlugin::HolidaysEventsPlugin(QObject *parent)
+ : CalendarEvents::CalendarEventsPlugin(parent)
+ {
+-KSharedConfig::Ptr m_config = 
KSharedConfig::openConfig(QStringLiteral("plasma_calendar_holiday_regions"));
+-const KConfigGroup regionsConfig = m_config->group("General");
+-updateSettings(regionsConfig);
++KSharedConfig::Ptr config = 
KSharedConfig::openConfig(QStringLiteral("plasma_calendar_holiday_regions"), 
KConfig::NoGlobals);
++updateSettings(config->group("General"));
+ 
+-m_configWatcher = KConfigWatcher::create(m_config);
+-connect(m_configWatcher.get(), &KConfigWatcher::configChanged, this, 
[this](const KConfigGroup &config) {
+-updateSettings(config);
++m_configWatcher = KConfigWatcher::create(config);
++connect(m_configWatcher.get(), &KConfigWatcher::configChanged, this, 
[this](const KConfigGroup &configGroup) {
++if (configGroup.name() != QLatin1String("General")) {
++return;
++}
++updateSettings(configGroup);
+ loadEventsForDateRange(m_lastStartDate, m_lastEndDate);
+ });
+ }
+@@ -35,9 +36,7 @@ void HolidaysEventsPlugin::loadEventsForDateRange(const 
QDate &startDate, const
+ return;
+ }
+ 
+-m_lastData.clear();
+ QMultiHash data;
+-
+ for (KHolidays::HolidayRegion *region : qAsConst(m_regions)) {
+ const KHolidays::Holiday::List holidays = 
region->rawHolidays(startDate, endDate);
+ 
+@@ -61,7 +60,7 @@ void HolidaysEventsPlugin::loadEventsForDateRange(const 
QDate &startDate, const
+ m_lastEndDate = endDate;
+ m_lastData = data;
+ 
+-Q_EMIT dataReady(data);
++Q_EMIT dataReady(m_lastData);
+ }
+ 
+ void HolidaysEventsPlugin::updateSettings(const KConfigGroup ®ionsConfig)
+diff --git a/plasmacalendarintegration/holidaysevents.h 
b/plasmacalendarintegration/holidaysevents.h
+index 93067049f8..1658d9d122 100644
+--- a/plasmacalendarintegration/holidaysevents.h
 b/plasmacalendarintegration/holidaysevents.h
+@@ -32,6 +32,5 @@ private:
+ QDate m_lastEndDate;
+ QList m_regions;
+ QMultiHash m_lastData;
+-KSharedConfig::Ptr m_config;
+ KConfigWatcher::Ptr m_configWatcher;
+ };
+-- 
+GitLab
+

diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.27.8-r1.ebuild 
b/kde-plasma/plasma-workspace/plasma-workspace-5.27.8-r1.ebuild
new file mode 100644
index ..ed47ad95dff2
--- /dev/null
+++ b/kde-plasma/plasma-workspace/plasma-workspace-5.27.8-r1.ebuild
@@ -0,0 +1,232 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_HANDBOOK="optional"
+ECM_TEST="forceoptional"
+KFMIN=5.106.0
+PVCUT=$(ver_cut 1-3)
+QTMIN=5.15.9
+inherit ecm plasma.kde.org
+
+DESCRIPTION="KDE Plasma workspace"
+
+LICENSE="GPL-2" # TODO: CHECK
+SLOT="5"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
+IUSE="appstream +calendar +fontconfig geolocation gps +

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2023-06-27 Thread Andreas Sturmlechner
commit: 1d11065d625e334b5e5f4aea7e10991def61497f
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Tue Jun 27 07:38:15 2023 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Tue Jun 27 11:25:39 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d11065d

kde-plasma/plasma-workspace: libtaskmanager: fix a potential leak

Upstream commit 19c0022735e74cf028daa93e36d257c804862954

Signed-off-by: Andreas Sturmlechner  gentoo.org>

 ...-5.27.6-fix-libtaskmanager-potential-leak.patch |  28 +++
 .../plasma-workspace-5.27.6-r1.ebuild  | 229 +
 2 files changed, 257 insertions(+)

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.27.6-fix-libtaskmanager-potential-leak.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.27.6-fix-libtaskmanager-potential-leak.patch
new file mode 100644
index ..18a11b2504e5
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.27.6-fix-libtaskmanager-potential-leak.patch
@@ -0,0 +1,28 @@
+From 2f67e4b63d664490310e485d59fdd500b7eb0bc5 Mon Sep 17 00:00:00 2001
+From: Fushan Wen 
+Date: Fri, 23 Jun 2023 07:55:44 +0800
+Subject: [PATCH] libtaskmanager: fix a potential leak
+
+Pointers in rowMap are not deleted before they are removed in rowMap.
+
+
+(cherry picked from commit 19c0022735e74cf028daa93e36d257c804862954)
+---
+ libtaskmanager/taskgroupingproxymodel.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/libtaskmanager/taskgroupingproxymodel.cpp 
b/libtaskmanager/taskgroupingproxymodel.cpp
+index afdde61d97..ea68bee556 100644
+--- a/libtaskmanager/taskgroupingproxymodel.cpp
 b/libtaskmanager/taskgroupingproxymodel.cpp
+@@ -778,6 +778,7 @@ void 
TaskGroupingProxyModel::setSourceModel(QAbstractItemModel *sourceModel)
+ connect(sourceModel, &QSortFilterProxyModel::modelReset, this, 
std::bind(&TaskGroupingProxyModel::Private::sourceModelReset, dd));
+ connect(sourceModel, &QSortFilterProxyModel::dataChanged, this, 
std::bind(&TaskGroupingProxyModel::Private::sourceDataChanged, dd, _1, _2, _3));
+ } else {
++qDeleteAll(d->rowMap);
+ d->rowMap.clear();
+ }
+ 
+-- 
+GitLab
+

diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.27.6-r1.ebuild 
b/kde-plasma/plasma-workspace/plasma-workspace-5.27.6-r1.ebuild
new file mode 100644
index ..b2f3659252a4
--- /dev/null
+++ b/kde-plasma/plasma-workspace/plasma-workspace-5.27.6-r1.ebuild
@@ -0,0 +1,229 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_HANDBOOK="optional"
+ECM_TEST="forceoptional"
+KFMIN=5.106.0
+PVCUT=$(ver_cut 1-3)
+QTMIN=5.15.9
+inherit ecm plasma.kde.org
+
+DESCRIPTION="KDE Plasma workspace"
+
+LICENSE="GPL-2" # TODO: CHECK
+SLOT="5"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
+IUSE="appstream +calendar +fontconfig geolocation gps +policykit
+screencast +semantic-desktop telemetry +wallpaper-metadata"
+
+REQUIRED_USE="gps? ( geolocation )"
+RESTRICT="test"
+
+# kde-frameworks/kwindowsystem[X]: Uses KX11Extras
+# slot op: various private QtWaylandClient headers
+COMMON_DEPEND="
+   dev-libs/icu:=
+   >=dev-libs/wayland-1.15
+   >=dev-qt/qtdbus-${QTMIN}:5
+   >=dev-qt/qtdeclarative-${QTMIN}:5[widgets]
+   >=dev-qt/qtgui-${QTMIN}:5=[jpeg,libinput]
+   >=dev-qt/qtnetwork-${QTMIN}:5
+   >=dev-qt/qtsql-${QTMIN}:5
+   >=dev-qt/qtsvg-${QTMIN}:5
+   >=dev-qt/qtwayland-${QTMIN}:5=
+   >=dev-qt/qtwidgets-${QTMIN}:5
+   >=dev-qt/qtx11extras-${QTMIN}:5
+   >=dev-qt/qtxml-${QTMIN}:5
+   >=kde-frameworks/kactivities-${KFMIN}:5
+   >=kde-frameworks/kactivities-stats-${KFMIN}:5
+   >=kde-frameworks/karchive-${KFMIN}:5
+   >=kde-frameworks/kauth-${KFMIN}:5
+   >=kde-frameworks/kbookmarks-${KFMIN}:5
+   >=kde-frameworks/kcompletion-${KFMIN}:5
+   >=kde-frameworks/kconfig-${KFMIN}:5
+   >=kde-frameworks/kconfigwidgets-${KFMIN}:5
+   >=kde-frameworks/kcoreaddons-${KFMIN}:5
+   >=kde-frameworks/kcrash-${KFMIN}:5
+   >=kde-frameworks/kdbusaddons-${KFMIN}:5
+   >=kde-frameworks/kdeclarative-${KFMIN}:5
+   >=kde-frameworks/kded-${KFMIN}:5
+   >=kde-frameworks/kglobalaccel-${KFMIN}:5
+   >=kde-frameworks/kguiaddons-${KFMIN}:5
+   >=kde-frameworks/ki18n-${KFMIN}:5
+   >=kde-frameworks/kiconthemes-${KFMIN}:5
+   >=kde-frameworks/kidletime-${KFMIN}:5
+   >=kde-frameworks/kinit-${KFMIN}:5
+   >=kde-frameworks/kio-${KFMIN}:5
+   >=kde-frameworks/kitemmodels-${KFMIN}:5
+   >=kde-frameworks/kitemviews-${KFMIN}:5
+   >=kde-frameworks/kjobwidgets-${KFMIN}:5
+   >=kde-frameworks/knewstuff-${KFMIN}:5
+   >=kde-frameworks/knotifications-${KFMIN}:5
+   >=kde-frameworks/knotifyconfig-${KFMIN}:5
+   >=kde-frameworks/kpackage-${KFMIN}:5
+   >=kde-frameworks/kpeople-${KFMIN}:5
+   >=kde-frameworks/krunner-${KFMI

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2023-04-10 Thread Andreas Sturmlechner
commit: b9e122254eaaa3db6a4874c927a4fd2b074fc5c9
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Sat Apr  8 22:40:15 2023 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Mon Apr 10 18:23:54 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9e12225

kde-plasma/plasma-workspace: drop 5.27.3-r1

Signed-off-by: Andreas Sturmlechner  gentoo.org>

 kde-plasma/plasma-workspace/Manifest   |   1 -
 .../files/plasma-workspace-5.27.3-cmake.patch  |  37 
 ...space-5.27.3-dashboard-skip-task-switcher.patch |  33 ---
 ...pace-5.27.3-nightcolor-fix-timing-strings.patch |  52 -
 .../plasma-workspace-5.27.3-r1.ebuild  | 232 -
 5 files changed, 355 deletions(-)

diff --git a/kde-plasma/plasma-workspace/Manifest 
b/kde-plasma/plasma-workspace/Manifest
index 959576c3c5ec..25888a987361 100644
--- a/kde-plasma/plasma-workspace/Manifest
+++ b/kde-plasma/plasma-workspace/Manifest
@@ -1,4 +1,3 @@
 DIST plasma-workspace-5.26.5.tar.xz 17470516 BLAKE2B 
4809ad1ec93e4e6d27b17197457b76f5971ea6c74ac64f64e68ecfe828068f7f33af69bdd03411a4cd0cf8fb26080ebf9c85741eacc0e53d6b782af4eabb4b8a
 SHA512 
9fb840d3f36e1cb25126a715d5599bf89680b0c3ff2a674f07f83246dc15358e15c7e31565d39570e33f6b4d3292822d5fdde05e4795f2eef13e1a0ff2f1c687
-DIST plasma-workspace-5.27.3.tar.xz 18642372 BLAKE2B 
f77a8c87e3ea89f63b6c796232258d8d82613aea63de038dc7c64ad6b26df4817dcf6c7430cc51a2edf3ea9fa1c4b7c300ced505922a8346c3169ab32fd23b4a
 SHA512 
132db99ff1a81778be928c87f59557cac40547f7ffc92f1738ea1fb575db150590a43838a3a2871e001a7e2975ce91399febfb948e444d2bd42e8a55700af96f
 DIST plasma-workspace-5.27.4.1-patchset-1.tar.xz 3496 BLAKE2B 
1be7d6eee007225bf7df3dbcff7fc5757d89501920a2b5a3f567c21bb86754aa96b0cebd6ac95c065b3b3f8724f7381ae8349e1b4471538ccbdf5eccefb90936
 SHA512 
f99099e8645a085a510aafef9793f2ecbd7216aff5f11fac95695a73cd772cbeebe53361435ead1becde84e326c121db657535c0295a225383706b36d88e3c32
 DIST plasma-workspace-5.27.4.1.tar.xz 19405228 BLAKE2B 
06e92e7c6f81c9c0dc7e2ffc7abbc5b4e121cdfd9adcceffc56464be2890cbccb4d1a25e1f298b080288ec4f87b783cdfaabccfb7dcee469c5defeeb23e4c172
 SHA512 
f79acb3129d7119937ecec227ebab1b50becc084b1563c1e72aa624502e8f337bd9c825d018d8080bcfcacab3cb53667005e92aa24d0cad9f25a298b1db19ae0

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.27.3-cmake.patch 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.27.3-cmake.patch
deleted file mode 100644
index e151a214dc4e..
--- a/kde-plasma/plasma-workspace/files/plasma-workspace-5.27.3-cmake.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 3f81a6559cd48d8735a7b0e7ca7cedac92db8cc8 Mon Sep 17 00:00:00 2001
-From: Andreas Sturmlechner 
-Date: Thu, 23 Mar 2023 09:32:09 +0100
-Subject: [PATCH] Find PkgConfig before first call to pkg_check_modules
-
-Follow-up to a0d707014150786ba2e508c144b2bc6b8ad8f316
-
-For some reason this would fail only when disabling Fontconfig.
-
-Signed-off-by: Andreas Sturmlechner 

- CMakeLists.txt | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 556e017d8..c05e7275e 100644
 a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -76,6 +76,7 @@ set_package_properties(KF5Baloo PROPERTIES DESCRIPTION "File 
Searching"
-PURPOSE "Needed for the File Search runner."
-   )
- 
-+find_package(PkgConfig REQUIRED)
- pkg_check_modules(QALCULATE libqalculate>2.0 REQUIRED IMPORTED_TARGET)
- 
- find_package(KWinDBusInterface CONFIG REQUIRED)
-@@ -151,7 +152,6 @@ else()
- set(HAVE_XFIXES 0)
- endif()
- 
--find_package(PkgConfig REQUIRED)
- pkg_check_modules(PipeWire IMPORTED_TARGET libpipewire-0.3)
- add_feature_info(PipeWire PipeWire_FOUND "Required for Wayland screencasting")
- 
--- 
-2.40.0
-

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.27.3-dashboard-skip-task-switcher.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.27.3-dashboard-skip-task-switcher.patch
deleted file mode 100644
index 2ebb9aa09fd6..
--- 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.27.3-dashboard-skip-task-switcher.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-From 29eb56d4d16c9a5544ba2b1da2369a9ed3190bb7 Mon Sep 17 00:00:00 2001
-From: Nicolas Fella 
-Date: Sun, 5 Feb 2023 16:49:04 +0100
-Subject: [PATCH] [dashboard] Skip task switcher
-
-CCBUG: 465303
-(cherry picked from commit 813dcc46c125fbdff4a208a23cec0ae1363f7cd8)

- applets/kicker/plugin/dashboardwindow.cpp | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/applets/kicker/plugin/dashboardwindow.cpp 
b/applets/kicker/plugin/dashboardwindow.cpp
-index fc6baedcb8..ac7522aab8 100644
 a/applets/kicker/plugin/dashboardwindow.cpp
-+++ b/applets/kicker/plugin/dashboardwindow.cpp
-@@ -124,12 +124,12 @@ bool DashboardWindow::event(QEvent *event)
- if (event->type() == QEvent::Expose) {
- // FIXME TODO: We can remove this once we depend on Qt

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2023-03-23 Thread Andreas Sturmlechner
commit: 6c1679c37a015b3aff52c786d2cff6adb3e82e92
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Thu Mar 23 08:38:18 2023 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Thu Mar 23 08:39:17 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c1679c3

kde-plasma/plasma-workspace: Fix cmake

Closes: https://bugs.gentoo.org/902797
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 .../files/plasma-workspace-5.27.3-cmake.patch  | 37 ++
 .../plasma-workspace-5.27.3-r1.ebuild  |  1 +
 2 files changed, 38 insertions(+)

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.27.3-cmake.patch 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.27.3-cmake.patch
new file mode 100644
index ..e151a214dc4e
--- /dev/null
+++ b/kde-plasma/plasma-workspace/files/plasma-workspace-5.27.3-cmake.patch
@@ -0,0 +1,37 @@
+From 3f81a6559cd48d8735a7b0e7ca7cedac92db8cc8 Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner 
+Date: Thu, 23 Mar 2023 09:32:09 +0100
+Subject: [PATCH] Find PkgConfig before first call to pkg_check_modules
+
+Follow-up to a0d707014150786ba2e508c144b2bc6b8ad8f316
+
+For some reason this would fail only when disabling Fontconfig.
+
+Signed-off-by: Andreas Sturmlechner 
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 556e017d8..c05e7275e 100644
+--- a/CMakeLists.txt
 b/CMakeLists.txt
+@@ -76,6 +76,7 @@ set_package_properties(KF5Baloo PROPERTIES DESCRIPTION "File 
Searching"
+PURPOSE "Needed for the File Search runner."
+   )
+ 
++find_package(PkgConfig REQUIRED)
+ pkg_check_modules(QALCULATE libqalculate>2.0 REQUIRED IMPORTED_TARGET)
+ 
+ find_package(KWinDBusInterface CONFIG REQUIRED)
+@@ -151,7 +152,6 @@ else()
+ set(HAVE_XFIXES 0)
+ endif()
+ 
+-find_package(PkgConfig REQUIRED)
+ pkg_check_modules(PipeWire IMPORTED_TARGET libpipewire-0.3)
+ add_feature_info(PipeWire PipeWire_FOUND "Required for Wayland screencasting")
+ 
+-- 
+2.40.0
+

diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.27.3-r1.ebuild 
b/kde-plasma/plasma-workspace/plasma-workspace-5.27.3-r1.ebuild
index b62e1cf969f0..f228665007ac 100644
--- a/kde-plasma/plasma-workspace/plasma-workspace-5.27.3-r1.ebuild
+++ b/kde-plasma/plasma-workspace/plasma-workspace-5.27.3-r1.ebuild
@@ -164,6 +164,7 @@ PATCHES=(
"${FILESDIR}/${PN}-5.22.5-krunner-cwd-at-home.patch" # TODO upstream: 
KDE-bug 432975, bug 767478
"${FILESDIR}/${P}-dashboard-skip-task-switcher.patch" # KDE-bug 465303
"${FILESDIR}/${P}-nightcolor-fix-timing-strings.patch"
+   "${FILESDIR}/${P}-cmake.patch" # bug 902797
 )
 
 src_prepare() {



[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2023-02-01 Thread Andreas Sturmlechner
commit: 54e164077a2805c816cc73d1db94af629fec2efe
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Wed Feb  1 08:32:33 2023 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Wed Feb  1 09:26:43 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54e16407

kde-plasma/plasma-workspace: drop 5.25.5-r5

Signed-off-by: Andreas Sturmlechner  gentoo.org>

 kde-plasma/plasma-workspace/Manifest   |   1 -
 25.5-delay-ksplash-until-after-env-setup.patch |  82 
 .../plasma-workspace-5.25.5-fix-setpassword.patch  |  39 
 ...5-fonts-honor-and-present-system-defaults.patch |  55 -
 ...sma-workspace-5.25.5-geolocation-deadlock.patch | 194 -
 .../plasma-workspace-5.25.5-layout-save.patch  |  33 ---
 .../plasma-workspace-5.25.5-lock-layout.patch  | 113 --
 ...ace-5.25.5-prevent-panel-go-out-of-screen.patch |  25 ---
 .../files/plasma-workspace-5.25.5-relayout.patch   |  22 --
 ...a-workspace-5.25.5-systray-double-destroy.patch |  24 ---
 25.5-widgetexplorer-recurse-containments.patch |  26 ---
 .../plasma-workspace-5.25.5-r5.ebuild  | 229 -
 12 files changed, 843 deletions(-)

diff --git a/kde-plasma/plasma-workspace/Manifest 
b/kde-plasma/plasma-workspace/Manifest
index e52db83c3114..1d9403c158d7 100644
--- a/kde-plasma/plasma-workspace/Manifest
+++ b/kde-plasma/plasma-workspace/Manifest
@@ -1,3 +1,2 @@
-DIST plasma-workspace-5.25.5.tar.xz 18638932 BLAKE2B 
f83aabf84b775c0bf9d1e60db03f94400e3363fa8f45767bdc471706682cda7323fae4948cffa156188cc7ed2d30d05349a385dd370ef941c16464f8fa01
 SHA512 
0c6cf5104b584b34a8bcb45d57069fed3b25e871fccf1bfefd47d8fc1b595867c1c4f0fcfcc0e07847534e1e77ce8ed1f3be1ac6cb7eea8669a9c7649c8466cb
 DIST plasma-workspace-5.26.5.tar.xz 17470516 BLAKE2B 
4809ad1ec93e4e6d27b17197457b76f5971ea6c74ac64f64e68ecfe828068f7f33af69bdd03411a4cd0cf8fb26080ebf9c85741eacc0e53d6b782af4eabb4b8a
 SHA512 
9fb840d3f36e1cb25126a715d5599bf89680b0c3ff2a674f07f83246dc15358e15c7e31565d39570e33f6b4d3292822d5fdde05e4795f2eef13e1a0ff2f1c687
 DIST plasma-workspace-5.26.90.tar.xz 18481828 BLAKE2B 
1594718737ae9f7be98a6e06b691e61bb519cf73755af01ce0a5a1b58a2172a9003974e2a85d0c000edf579139e6ef9a8800d071167812522f492f6b17de7479
 SHA512 
ecd3a107496e7a6d1a9e9093118f9cf4e1a8746140302e201dc48ba896b5b7d51e4dfa13bd87c3a7e8548221c978470d0635fe1221205a412b66e5c585a634ac

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
deleted file mode 100644
index 9fcea5a32cbe..
--- 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-delay-ksplash-until-after-env-setup.patch
+++ /dev/null
@@ -1,82 +0,0 @@
-From 536ba654e43741a18d2b71ee519f1daefeaa7ffd Mon Sep 17 00:00:00 2001
-From: Fushan Wen 
-Date: Sat, 4 Jun 2022 18:15:10 +0800
-Subject: [PATCH 1/2] startkde: `Q_UNUSED` ksplash
-
-Variable 'ksplash' is assigned a value that is never used. (CWE-563)
-
-(cherry picked from commit 6bebf9a7e636d6655ede49ce48d33f2254ac75f0)

- startkde/startplasma-x11.cpp | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/startkde/startplasma-x11.cpp b/startkde/startplasma-x11.cpp
-index 817de3511..a80c515fc 100644
 a/startkde/startplasma-x11.cpp
-+++ b/startkde/startplasma-x11.cpp
-@@ -59,6 +59,7 @@ int main(int argc, char **argv)
- 
- setupCursor(false);
- QScopedPointer ksplash(setupKSplash());
-+Q_UNUSED(ksplash)
- 
- runEnvironmentScripts();
- 
--- 
-2.37.3
-
-
-From 5e54fbd0b351e43cb68c193bf684dd8cdbd11210 Mon Sep 17 00:00:00 2001
-From: Harald Sitter 
-Date: Tue, 13 Sep 2022 13:54:04 +0200
-Subject: [PATCH 2/2] delay ksplash until after env is set up
-
-otherwise we can dbus invoke with the wrong environment. specifically
-this happens with the latest qtbase changes that introduced color
-picking support on wayland. when we start a qguiapplication with
-incomplete environment that dbus invokes the xdg-portal system and that
-in turn has an incomplete environment resulting in theming and the likes
-not properly applying because the portal doesn't know that it runs
-inside a plasma session.
-
-https://invent.kde.org/qt/qt/qtbase/-/commit/2dc083df009a45c5dacfea27b0affeb85b01f847
-
-BUG: 458865
-(cherry picked from commit 9bf0e56da84de5e9bd2b3ff28bdb2cb1af6de91e)
-
-asturmlechner 2022-09-14: Backported to Plasma/5.25 branch

- startkde/startplasma-x11.cpp | 10 ++
- 1 file changed, 6 insertions(+), 4 deletions(-)
-
-diff --git a/startkde/startplasma-x11.cpp b/startkde/startplasma-x11.cpp
-index a80c515fc..d1722771b 100644
 a/startkde/startplasma-x11.cpp
-+++ b/startkde/startplasma-x11.cpp
-@@ -57,10 +57,6 @@ int main(int argc, char **argv)
- }
- }
- 
--setupCursor(false);
--QScopedPointer ksplash(setupKSplash());
--Q_UNUSED(ksplash)
--
- runEnvironmentScripts();
- 

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2022-11-29 Thread Sam James
commit: 1fde9bdcfb26c7bb0ae09d9954106108a203bd36
Author: Sam James  gentoo  org>
AuthorDate: Fri Nov 25 09:18:30 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Nov 30 01:42:30 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1fde9bdc

kde-plasma/plasma-workspace: backport upstream fixes for 5.25.5

Upstream commit: 432d7c4b51c5a1f17af327d770266b3fe81e5ae5
Upstream commit: d693026676cc6bf2b7c23e9ff4b620679cf15d10
Upstream commit: 0a01c8910309fb9f289fe0aa58492e106d154548
Upstream commit: f30431c9ed0bb70506cbc72ea337323660a0dc14
Upstream commit: b983f1c758552346083ffe0b3d47173b487ae426

KDE-bug: https://bugs.kde.org/420245
KDE-bug: https://bugs.kde.org/449984
KDE-bug: https://bugs.kde.org/457341
KDE-bug: https://bugs.kde.org/413645
Bug: https://bugs.gentoo.org/883289
Signed-off-by: Sam James  gentoo.org>

 ...sma-workspace-5.25.5-geolocation-deadlock.patch | 194 +
 .../plasma-workspace-5.25.5-layout-save.patch  |  33 +++
 .../plasma-workspace-5.25.5-lock-layout.patch  | 113 ++
 ...ace-5.25.5-prevent-panel-go-out-of-screen.patch |   8 -
 .../files/plasma-workspace-5.25.5-relayout.patch   |  22 ++
 ...a-workspace-5.25.5-systray-double-destroy.patch |  24 +++
 .../plasma-workspace-5.25.5-r5.ebuild  | 229 +
 7 files changed, 615 insertions(+), 8 deletions(-)

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
new file mode 100644
index ..70bd28419472
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-geolocation-deadlock.patch
@@ -0,0 +1,194 @@
+https://invent.kde.org/plasma/plasma-workspace/-/commit/d693026676cc6bf2b7c23e9ff4b620679cf15d10
+
+From d693026676cc6bf2b7c23e9ff4b620679cf15d10 Mon Sep 17 00:00:00 2001
+From: Nicolas Fella 
+Date: Mon, 15 Aug 2022 18:36:56 +0200
+Subject: [PATCH] [dataengines/geolocation] Port from KIO::http_post to
+ QNetworkAccessManager
+
+Not only does this slightly simplify the code, it also avoids a deadlock in 
kded when automatic proxy detection is enabled
+
+BUG: 449984
+
+BUG: 457341
+(cherry picked from commit 98cadd48c21c89b81fdeb3499a557a6551a09d8a)
+---
+ dataengines/geolocation/CMakeLists.txt  |  2 +-
+ dataengines/geolocation/location_ip.cpp | 84 ++---
+ 2 files changed, 35 insertions(+), 51 deletions(-)
+
+diff --git a/dataengines/geolocation/CMakeLists.txt 
b/dataengines/geolocation/CMakeLists.txt
+index 175687bd4d..6ae707643c 100644
+--- a/dataengines/geolocation/CMakeLists.txt
 b/dataengines/geolocation/CMakeLists.txt
+@@ -36,7 +36,7 @@ target_link_libraries(plasma_engine_geolocation
+ kcoreaddons_add_plugin(plasma-geolocation-ip SOURCES location_ip.cpp 
INSTALL_NAMESPACE plasma/geolocationprovider)
+ ecm_qt_declare_logging_category(plasma-geolocation-ip HEADER geolocdebug.h 
IDENTIFIER DATAENGINE_GEOLOCATION CATEGORY_NAME 
org.kde.plasma.dataengine.geolocation)
+ target_compile_definitions(plasma-geolocation-ip PRIVATE -DQT_NO_KEYWORDS)
+-target_link_libraries(plasma-geolocation-ip plasma-geolocation-interface 
KF5::KIOCore KF5::NetworkManagerQt)
++target_link_libraries(plasma-geolocation-ip plasma-geolocation-interface 
KF5::NetworkManagerQt)
+ 
+ pkg_check_modules(LIBGPS libgps IMPORTED_TARGET)
+ 
+diff --git a/dataengines/geolocation/location_ip.cpp 
b/dataengines/geolocation/location_ip.cpp
+index 27b530810c..3c5a202b89 100644
+--- a/dataengines/geolocation/location_ip.cpp
 b/dataengines/geolocation/location_ip.cpp
+@@ -12,15 +12,14 @@
+ 
+ #include "location_ip.h"
+ #include "geolocdebug.h"
+-#include 
+-#include 
+-#include 
+ #include 
+ #include 
+ #include 
+ #include 
+ #include 
+ #include 
++#include 
++#include 
+ #include 
+ 
+ class Ip::Private : public QObject
+@@ -30,19 +29,21 @@ public:
+ Private(Ip *q)
+ : q(q)
+ {
++m_nam.setRedirectPolicy(QNetworkRequest::NoLessSafeRedirectPolicy);
++m_nam.setStrictTransportSecurityEnabled(true);
++m_nam.enableStrictTransportSecurityStore(true,
++ 
QStandardPaths::writableLocation(QStandardPaths::GenericCacheLocation) + 
QLatin1String("/plasmashell/hsts/"));
+ }
+ 
+-void readGeoLocation(KJob *job)
++void readGeoLocation(QNetworkReply *reply)
+ {
+ m_geoLocationResolved = true;
+-if (job && job->error()) {
+-qCCritical(DATAENGINE_GEOLOCATION) << "error: " << 
job->errorString();
+-m_geoLocationPayload.clear();
++if (reply->error()) {
++qCCritical(DATAENGINE_GEOLOCATION) << "error: " << 
reply->errorString();
+ checkUpdateData();
+ return;
+ }
+-const QJsonObject json = 
QJsonDocument::fromJson(m_geoLocationPayload).object();
+-m_geoLocationPayload.clear();
++const QJsonObject json 

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2022-10-03 Thread Andreas Sturmlechner
commit: 3a8bca8abe04d5c1d5747bd53c172ede35ff0adb
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Mon Oct  3 07:56:54 2022 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Mon Oct  3 08:43:35 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a8bca8a

kde-plasma/plasma-workspace: Fix user KCM unable to change user password

Upstream commit 84dcfc45b9a354827b9bbf6ae58902d04e8fe915

Signed-off-by: Andreas Sturmlechner  gentoo.org>

 .../plasma-workspace-5.25.5-fix-setpassword.patch  |  39 
 .../plasma-workspace-5.25.5-r4.ebuild  | 224 +
 2 files changed, 263 insertions(+)

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
new file mode 100644
index ..7351b8808819
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-fix-setpassword.patch
@@ -0,0 +1,39 @@
+From 84dcfc45b9a354827b9bbf6ae58902d04e8fe915 Mon Sep 17 00:00:00 2001
+From: Marco Martin 
+Date: Wed, 28 Sep 2022 11:33:33 +0200
+Subject: [PATCH] set setInteractiveAuthorizationAllowed on SetPassword call
+
+is important that the setpasswod call uses interactive authorization,
+otherwise will be denied, unless the user had been modified beforehand
+so an authorization was already granted
+
+BUG:459309
+---
+ kcms/users/src/user.cpp | 11 ---
+ 1 file changed, 8 insertions(+), 3 deletions(-)
+
+diff --git a/kcms/users/src/user.cpp b/kcms/users/src/user.cpp
+index 020ebee097..87745582c5 100644
+--- a/kcms/users/src/user.cpp
 b/kcms/users/src/user.cpp
+@@ -217,9 +217,14 @@ void User::setPassword(const QString &password)
+ {
+ // Blocking because we need to wait for the password to be changed before 
we
+ // can ask the user about also possibly changing their KWallet password
+-auto invocation = m_dbusIface->SetPassword(saltPassword(password), 
QString());
+-invocation.waitForFinished();
+-if (!invocation.isError()) {
++
++auto mc = QDBusMessage::createMethodCall(m_dbusIface->service(), 
m_dbusIface->path(), m_dbusIface->interface(), "SetPassword");
++mc.setArguments({saltPassword(password), QString()});
++mc.setInteractiveAuthorizationAllowed(true);
++auto message = QDBusConnection::systemBus().call(mc);
++
++// Not an error or invalid message
++if (message.type() == QDBusMessage::ReplyMessage) {
+ Q_EMIT passwordSuccessfullyChanged();
+ }
+ }
+-- 
+GitLab
+

diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.25.5-r4.ebuild 
b/kde-plasma/plasma-workspace/plasma-workspace-5.25.5-r4.ebuild
new file mode 100644
index ..dbb6d6add84f
--- /dev/null
+++ b/kde-plasma/plasma-workspace/plasma-workspace-5.25.5-r4.ebuild
@@ -0,0 +1,224 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_HANDBOOK="optional"
+ECM_TEST="forceoptional"
+KFMIN=5.95.0
+PVCUT=$(ver_cut 1-3)
+QTMIN=5.15.5
+VIRTUALX_REQUIRED="test"
+inherit ecm plasma.kde.org
+
+DESCRIPTION="KDE Plasma workspace"
+
+LICENSE="GPL-2" # TODO: CHECK
+SLOT="5"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
+IUSE="appstream +calendar +fontconfig geolocation gps +policykit
+screencast +semantic-desktop telemetry"
+
+REQUIRED_USE="gps? ( geolocation )"
+RESTRICT="test"
+
+# slot op: various private QtWaylandClient headers
+COMMON_DEPEND="
+   dev-libs/icu:=
+   >=dev-libs/wayland-1.15
+   >=dev-qt/qtdbus-${QTMIN}:5
+   >=dev-qt/qtdeclarative-${QTMIN}:5[widgets]
+   >=dev-qt/qtgui-${QTMIN}:5=[jpeg,libinput]
+   >=dev-qt/qtnetwork-${QTMIN}:5
+   >=dev-qt/qtsql-${QTMIN}:5
+   >=dev-qt/qtsvg-${QTMIN}:5
+   >=dev-qt/qtwayland-${QTMIN}:5=
+   >=dev-qt/qtwidgets-${QTMIN}:5
+   >=dev-qt/qtx11extras-${QTMIN}:5
+   >=dev-qt/qtxml-${QTMIN}:5
+   >=kde-frameworks/kactivities-${KFMIN}:5
+   >=kde-frameworks/kactivities-stats-${KFMIN}:5
+   >=kde-frameworks/karchive-${KFMIN}:5
+   >=kde-frameworks/kauth-${KFMIN}:5
+   >=kde-frameworks/kbookmarks-${KFMIN}:5
+   >=kde-frameworks/kcompletion-${KFMIN}:5
+   >=kde-frameworks/kconfig-${KFMIN}:5
+   >=kde-frameworks/kconfigwidgets-${KFMIN}:5
+   >=kde-frameworks/kcoreaddons-${KFMIN}:5
+   >=kde-frameworks/kcrash-${KFMIN}:5
+   >=kde-frameworks/kdbusaddons-${KFMIN}:5
+   >=kde-frameworks/kdeclarative-${KFMIN}:5
+   >=kde-frameworks/kded-${KFMIN}:5
+   >=kde-frameworks/kglobalaccel-${KFMIN}:5
+   >=kde-frameworks/kguiaddons-${KFMIN}:5
+   >=kde-frameworks/ki18n-${KFMIN}:5
+   >=kde-frameworks/kiconthemes-${KFMIN}:5
+   >=kde-frameworks/kidletime-${KFMIN}:5
+   >=kde-frameworks/kinit-${KFMIN}:5
+   >=kde-frameworks/kio-${KFMIN}:5
+   >=kde-frameworks/kitemmodels-${KFMIN}:5
+   >=kde-frameworks/kitemviews-${KFMIN}:5
+   >=kde-framework

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2022-09-14 Thread Andreas Sturmlechner
commit: 6114a64b23157311ebadb1e053bc4485088a69fd
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Wed Sep 14 10:32:57 2022 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Wed Sep 14 11:58:44 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6114a64b

kde-plasma/plasma-workspace: Delay ksplash until after env is set up

Upstream commit 9bf0e56da84de5e9bd2b3ff28bdb2cb1af6de91e

KDE-bug: https://bugs.kde.org/show_bug.cgi?id=458865
Bug: https://bugs.gentoo.org/868909
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 25.5-delay-ksplash-until-after-env-setup.patch |  82 
 .../plasma-workspace-5.25.5-r2.ebuild  | 220 +
 2 files changed, 302 insertions(+)

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
new file mode 100644
index ..9fcea5a32cbe
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-delay-ksplash-until-after-env-setup.patch
@@ -0,0 +1,82 @@
+From 536ba654e43741a18d2b71ee519f1daefeaa7ffd Mon Sep 17 00:00:00 2001
+From: Fushan Wen 
+Date: Sat, 4 Jun 2022 18:15:10 +0800
+Subject: [PATCH 1/2] startkde: `Q_UNUSED` ksplash
+
+Variable 'ksplash' is assigned a value that is never used. (CWE-563)
+
+(cherry picked from commit 6bebf9a7e636d6655ede49ce48d33f2254ac75f0)
+---
+ startkde/startplasma-x11.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/startkde/startplasma-x11.cpp b/startkde/startplasma-x11.cpp
+index 817de3511..a80c515fc 100644
+--- a/startkde/startplasma-x11.cpp
 b/startkde/startplasma-x11.cpp
+@@ -59,6 +59,7 @@ int main(int argc, char **argv)
+ 
+ setupCursor(false);
+ QScopedPointer ksplash(setupKSplash());
++Q_UNUSED(ksplash)
+ 
+ runEnvironmentScripts();
+ 
+-- 
+2.37.3
+
+
+From 5e54fbd0b351e43cb68c193bf684dd8cdbd11210 Mon Sep 17 00:00:00 2001
+From: Harald Sitter 
+Date: Tue, 13 Sep 2022 13:54:04 +0200
+Subject: [PATCH 2/2] delay ksplash until after env is set up
+
+otherwise we can dbus invoke with the wrong environment. specifically
+this happens with the latest qtbase changes that introduced color
+picking support on wayland. when we start a qguiapplication with
+incomplete environment that dbus invokes the xdg-portal system and that
+in turn has an incomplete environment resulting in theming and the likes
+not properly applying because the portal doesn't know that it runs
+inside a plasma session.
+
+https://invent.kde.org/qt/qt/qtbase/-/commit/2dc083df009a45c5dacfea27b0affeb85b01f847
+
+BUG: 458865
+(cherry picked from commit 9bf0e56da84de5e9bd2b3ff28bdb2cb1af6de91e)
+
+asturmlechner 2022-09-14: Backported to Plasma/5.25 branch
+---
+ startkde/startplasma-x11.cpp | 10 ++
+ 1 file changed, 6 insertions(+), 4 deletions(-)
+
+diff --git a/startkde/startplasma-x11.cpp b/startkde/startplasma-x11.cpp
+index a80c515fc..d1722771b 100644
+--- a/startkde/startplasma-x11.cpp
 b/startkde/startplasma-x11.cpp
+@@ -57,10 +57,6 @@ int main(int argc, char **argv)
+ }
+ }
+ 
+-setupCursor(false);
+-QScopedPointer ksplash(setupKSplash());
+-Q_UNUSED(ksplash)
+-
+ runEnvironmentScripts();
+ 
+ out << "startkde: Starting up...\n";
+@@ -80,6 +76,12 @@ int main(int argc, char **argv)
+ // variables (e.g. LANG and LC_*)
+ importSystemdEnvrionment();
+ 
++// NOTE: Do not start QGuiApplications before setting up the environment. 
We'd be at risk of dbus invoking other
++// processes with an incomplete environment.
++setupCursor(false);
++QScopedPointer ksplash(setupKSplash());
++Q_UNUSED(ksplash)
++
+ if (!startPlasmaSession(false))
+ return 1;
+ 
+-- 
+2.37.3
+

diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.25.5-r2.ebuild 
b/kde-plasma/plasma-workspace/plasma-workspace-5.25.5-r2.ebuild
new file mode 100644
index ..809aabe37bf7
--- /dev/null
+++ b/kde-plasma/plasma-workspace/plasma-workspace-5.25.5-r2.ebuild
@@ -0,0 +1,220 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_HANDBOOK="optional"
+ECM_TEST="forceoptional"
+KFMIN=5.95.0
+PVCUT=$(ver_cut 1-3)
+QTMIN=5.15.5
+VIRTUALX_REQUIRED="test"
+inherit ecm plasma.kde.org
+
+DESCRIPTION="KDE Plasma workspace"
+
+LICENSE="GPL-2" # TODO: CHECK
+SLOT="5"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
+IUSE="appstream +calendar +fontconfig geolocation gps +policykit
+screencast +semantic-desktop telemetry"
+
+REQUIRED_USE="gps? ( geolocation )"
+RESTRICT="test"
+
+# slot op: various private QtWaylandClient headers
+COMMON_DEPEND="
+   >=dev-libs/wayland-1.15
+   >=dev-qt/qtdbus-${QTMIN}:5
+   >=dev-qt/qtdeclarative-${QTMIN}:5[widgets]
+   >=dev-qt/qtgui-${QTMIN}:5=[jpeg,libinput]
+   >=dev-qt/qtnetwork-${QTMIN}:5
+   >

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2022-09-09 Thread Sam James
commit: bb911d4fbed9273f6c10b2107077492a19f5fdbd
Author: Sam James  gentoo  org>
AuthorDate: Fri Sep  9 07:30:02 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Sep  9 07:34:12 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb911d4f

kde-plasma/plasma-workspace: backport widgetexplorer patch

As requested by upstream at
https://mail.kde.org/pipermail/distributions/2022-September/001287.html.

Signed-off-by: Sam James  gentoo.org>

 25.5-widgetexplorer-recurse-containments.patch |  26 +++
 .../plasma-workspace-5.25.5-r1.ebuild  | 219 +
 2 files changed, 245 insertions(+)

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
new file mode 100644
index ..1efe75b9b41d
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.25.5-widgetexplorer-recurse-containments.patch
@@ -0,0 +1,26 @@
+https://invent.kde.org/plasma/plasma-workspace/-/commit/c7ba560ccaac5e469cb2d6bf66c39e1acf967454
+https://mail.kde.org/pipermail/distributions/2022-September/001287.html
+
+From: Nicolas Fella 
+Date: Sun, 21 Aug 2022 16:33:50 +0200
+Subject: [PATCH] [widgetexplorer] Don't recurse into applet's containments
+
+The intention of this code appears to be finding system tray applets, since 
the systemtray is a containment within another applet/containment
+
+However the code causes an infinit recursion since we are calling 
addContainment on the same containment again
+
+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
+--- a/components/shellprivate/widgetexplorer/widgetexplorer.cpp
 b/components/shellprivate/widgetexplorer/widgetexplorer.cpp
+@@ -280,10 +280,6 @@ void WidgetExplorerPrivate::addContainment(Containment 
*containment)
+ 
+ foreach (Applet *applet, containment->applets()) {
+ if (applet->pluginMetaData().isValid()) {
+-Containment *childContainment = 
applet->property("containment").value();
+-if (childContainment) {
+-addContainment(childContainment);
+-}
+ runningApplets[applet->pluginMetaData().pluginId()]++;
+ } else {
+ qDebug() << "Invalid plugin metadata. :(";
+GitLab

diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.25.5-r1.ebuild 
b/kde-plasma/plasma-workspace/plasma-workspace-5.25.5-r1.ebuild
new file mode 100644
index ..2fac44d7b28b
--- /dev/null
+++ b/kde-plasma/plasma-workspace/plasma-workspace-5.25.5-r1.ebuild
@@ -0,0 +1,219 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_HANDBOOK="optional"
+ECM_TEST="forceoptional"
+KFMIN=5.95.0
+PVCUT=$(ver_cut 1-3)
+QTMIN=5.15.5
+VIRTUALX_REQUIRED="test"
+inherit ecm plasma.kde.org
+
+DESCRIPTION="KDE Plasma workspace"
+
+LICENSE="GPL-2" # TODO: CHECK
+SLOT="5"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
+IUSE="appstream +calendar +fontconfig geolocation gps +policykit
+screencast +semantic-desktop telemetry"
+
+REQUIRED_USE="gps? ( geolocation )"
+RESTRICT="test"
+
+# slot op: various private QtWaylandClient headers
+COMMON_DEPEND="
+   >=dev-libs/wayland-1.15
+   >=dev-qt/qtdbus-${QTMIN}:5
+   >=dev-qt/qtdeclarative-${QTMIN}:5[widgets]
+   >=dev-qt/qtgui-${QTMIN}:5=[jpeg,libinput]
+   >=dev-qt/qtnetwork-${QTMIN}:5
+   >=dev-qt/qtsql-${QTMIN}:5
+   >=dev-qt/qtsvg-${QTMIN}:5
+   >=dev-qt/qtwayland-${QTMIN}:5=
+   >=dev-qt/qtwidgets-${QTMIN}:5
+   >=dev-qt/qtx11extras-${QTMIN}:5
+   >=dev-qt/qtxml-${QTMIN}:5
+   >=kde-frameworks/kactivities-${KFMIN}:5
+   >=kde-frameworks/kactivities-stats-${KFMIN}:5
+   >=kde-frameworks/karchive-${KFMIN}:5
+   >=kde-frameworks/kauth-${KFMIN}:5
+   >=kde-frameworks/kbookmarks-${KFMIN}:5
+   >=kde-frameworks/kcompletion-${KFMIN}:5
+   >=kde-frameworks/kconfig-${KFMIN}:5
+   >=kde-frameworks/kconfigwidgets-${KFMIN}:5
+   >=kde-frameworks/kcoreaddons-${KFMIN}:5
+   >=kde-frameworks/kcrash-${KFMIN}:5
+   >=kde-frameworks/kdbusaddons-${KFMIN}:5
+   >=kde-frameworks/kdeclarative-${KFMIN}:5
+   >=kde-frameworks/kded-${KFMIN}:5
+   >=kde-frameworks/kglobalaccel-${KFMIN}:5
+   >=kde-frameworks/kguiaddons-${KFMIN}:5
+   >=kde-frameworks/ki18n-${KFMIN}:5
+   >=kde-frameworks/kiconthemes-${KFMIN}:5
+   >=kde-frameworks/kidletime-${KFMIN}:5
+   >=kde-frameworks/kinit-${KFMIN}:5
+   >=kde-frameworks/kio-${KFMIN}:5
+   >=kde-frameworks/kitemmodels-${KFMIN}:5
+   >=kde-frameworks/kitemviews-${KFMIN}:5
+   >=kde-frameworks/kjobwidgets-${KFMIN}:5
+   >=kde-frameworks/knewstuff-${KFMIN}:5
+   >=kde-

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2022-06-14 Thread Andreas Sturmlechner
commit: 3e0106251755e61c56d3ce814af84d97121f2e08
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Tue Jun 14 08:24:01 2022 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Tue Jun 14 12:43:11 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e010625

kde-plasma/plasma-workspace: 5.25.0 version bump

Signed-off-by: Andreas Sturmlechner  gentoo.org>

 kde-plasma/plasma-workspace/Manifest   |   1 +
 ...sma-workspace-5.24.80-split-libkworkspace.patch |  37 
 .../plasma-workspace-5.25.0.ebuild | 218 +
 3 files changed, 256 insertions(+)

diff --git a/kde-plasma/plasma-workspace/Manifest 
b/kde-plasma/plasma-workspace/Manifest
index 1ba2f05fc00f..f8a5f3c03a33 100644
--- a/kde-plasma/plasma-workspace/Manifest
+++ b/kde-plasma/plasma-workspace/Manifest
@@ -1 +1,2 @@
 DIST plasma-workspace-5.24.5.tar.xz 18490588 BLAKE2B 
5a9681620f40604f631cd7ef0c9d6256cc490436dc5e29ef9434d0f129324c2d405c5647da12778c208976c0cb0b4da698a90a22b70c1cb2723cbc58f69bda1d
 SHA512 
ae40fe545b03e42e9f8fe2e8885d3853f4b52d4fd2ed3ecf7d24fa59b4924b8f8b389e8713ec6a3a875bc66df3952de9157d4a5631b283105a9329a1a1825996
+DIST plasma-workspace-5.25.0.tar.xz 18568884 BLAKE2B 
5390a62d336a6cfc6179bc20b546966a11ce583e0737d4a131a993056d0e9987648046e8d5f6664a38689525b61be73deb55dac1fb2b22c36cbac3c50a097800
 SHA512 
0d52ab01752421e8056db40e4c8fc31070a6a7704f78e8087f6b32fe22290da54ff830bb59870dcd7e007bd6798859358e163e4ed334d4f31041a3b743c8

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.24.80-split-libkworkspace.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.24.80-split-libkworkspace.patch
new file mode 100644
index ..e605473e3546
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.24.80-split-libkworkspace.patch
@@ -0,0 +1,37 @@
+From 19bbdcf391ea51c4798c770e87c7eada24f252b8 Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner 
+Date: Mon, 21 Feb 2022 12:24:56 +0100
+Subject: [PATCH] libkworkspace: Allow standalone build
+
+Signed-off-by: Andreas Sturmlechner 
+---
+ CMakeLists.txt | 6 +-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 3ec5f0893..b022a20b3 100644
+--- a/CMakeLists.txt
 b/CMakeLists.txt
+@@ -78,6 +78,7 @@ set_package_properties(Qalculate PROPERTIES DESCRIPTION 
"Qalculate Library"
+   )
+ 
+ find_package(KWinDBusInterface CONFIG REQUIRED)
++find_package(LibKWorkspace 5.21.5)
+ 
+ find_package(KF5Screen CONFIG REQUIRED)
+ find_package(KScreenLocker 5.13.80 REQUIRED)
+@@ -233,7 +234,10 @@ option(PLASMA_WAYLAND_DEFAULT_SESSION "Use Wayland 
session by default for Plasma
+ if(KF5DocTools_FOUND)
+   add_subdirectory(doc)
+ endif()
+-add_subdirectory(libkworkspace)
++if(NOT LibKWorkspace_FOUND)
++message(STATUS "System LibKWorkspace not found, using bundled.")
++add_subdirectory(libkworkspace)
++endif()
+ add_subdirectory(libdbusmenuqt)
+ add_subdirectory(appmenu)
+ 
+-- 
+2.35.1
+

diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.25.0.ebuild 
b/kde-plasma/plasma-workspace/plasma-workspace-5.25.0.ebuild
new file mode 100644
index ..1852deaa7514
--- /dev/null
+++ b/kde-plasma/plasma-workspace/plasma-workspace-5.25.0.ebuild
@@ -0,0 +1,218 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_HANDBOOK="optional"
+ECM_TEST="forceoptional"
+KFMIN=5.94.0
+PVCUT=$(ver_cut 1-3)
+QTMIN=5.15.3
+VIRTUALX_REQUIRED="test"
+inherit ecm kde.org
+
+DESCRIPTION="KDE Plasma workspace"
+
+LICENSE="GPL-2" # TODO: CHECK
+SLOT="5"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
+IUSE="appstream +calendar +fontconfig geolocation gps +policykit
+screencast +semantic-desktop telemetry"
+
+REQUIRED_USE="gps? ( geolocation )"
+RESTRICT="test"
+
+# slot op: various private QtWaylandClient headers
+COMMON_DEPEND="
+   >=dev-libs/wayland-1.15
+   >=dev-qt/qtdbus-${QTMIN}:5
+   >=dev-qt/qtdeclarative-${QTMIN}:5[widgets]
+   >=dev-qt/qtgui-${QTMIN}:5=[jpeg,libinput]
+   >=dev-qt/qtnetwork-${QTMIN}:5
+   >=dev-qt/qtsql-${QTMIN}:5
+   >=dev-qt/qtsvg-${QTMIN}:5
+   >=dev-qt/qtwayland-${QTMIN}:5=
+   >=dev-qt/qtwidgets-${QTMIN}:5
+   >=dev-qt/qtx11extras-${QTMIN}:5
+   >=dev-qt/qtxml-${QTMIN}:5
+   >=kde-frameworks/kactivities-${KFMIN}:5
+   >=kde-frameworks/kactivities-stats-${KFMIN}:5
+   >=kde-frameworks/karchive-${KFMIN}:5
+   >=kde-frameworks/kauth-${KFMIN}:5
+   >=kde-frameworks/kbookmarks-${KFMIN}:5
+   >=kde-frameworks/kcompletion-${KFMIN}:5
+   >=kde-frameworks/kconfig-${KFMIN}:5
+   >=kde-frameworks/kconfigwidgets-${KFMIN}:5
+   >=kde-frameworks/kcoreaddons-${KFMIN}:5
+   >=kde-frameworks/kcrash-${KFMIN}:5
+   >=kde-frameworks/kdbusaddons-${KFMIN}:5
+   >=kde-frameworks/kdeclarative-${KFMIN}:5
+   >=kde-frameworks/k

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2022-05-17 Thread Andreas Sturmlechner
commit: 4a9df068d846b2e6c60ccef203a71a92eb6fd9e5
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Tue May 17 18:36:47 2022 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Tue May 17 19:01:49 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a9df068

kde-plasma/plasma-workspace: Backport several 5.24.6 fixes

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 ...ppmenu-fix-top-level-menu-text-coloration.patch |  40 
 ...cker-refresh-RootModel-on-session-backend.patch |  92 +
 ...ystemtray-prefer-IconName-over-IconPixmap.patch | 137 +
 ...asmashell-crash-on-panel-w-systray-remove.patch |  34 
 ...ms-desktoptheme-detect-installed-styles-1.patch |  41 
 ...ms-desktoptheme-detect-installed-styles-2.patch |  72 +++
 ...sddm-theme-KeyboardButton-fix-layout-name.patch |  39 
 ...s-image-fix-missing-folder-action-buttons.patch |  30 +++
 .../plasma-workspace-5.24.5-r1.ebuild  | 226 +
 9 files changed, 711 insertions(+)

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.24.5-applets-appmenu-fix-top-level-menu-text-coloration.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.24.5-applets-appmenu-fix-top-level-menu-text-coloration.patch
new file mode 100644
index ..d61877300d27
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.24.5-applets-appmenu-fix-top-level-menu-text-coloration.patch
@@ -0,0 +1,40 @@
+From 4d3f99558cff95259590e70dfbf854a479f772ce Mon Sep 17 00:00:00 2001
+From: Nate Graham 
+Date: Wed, 4 May 2022 10:45:52 -0600
+Subject: [PATCH 2/8] applets/appmenu: fix top-level menu text coloration
+
+28537cf3ff3cd9210f7568f40334ac3a2c9bed18 made the color dynamic, but
+neglected to respect the Plasma color scheme, if any. This causes
+problems with Plasma themes that have their own colors and don't
+respect the systemwide color scheme, such as Breeze Twilight.
+
+Fix it by using the appropriate colors from the PlasmaCore color scheme
+object, not the systemwide object provided by Qt.
+
+BUG: 453348
+FIXED-IN: 5.24.6
+
+
+(cherry picked from commit 19d9bc7e395d8c6e007afdc3b3b5c11a7d02190e)
+---
+ applets/appmenu/package/contents/ui/MenuDelegate.qml | 5 +
+ 1 file changed, 1 insertion(+), 4 deletions(-)
+
+diff --git a/applets/appmenu/package/contents/ui/MenuDelegate.qml 
b/applets/appmenu/package/contents/ui/MenuDelegate.qml
+index 441e99016..afb37589a 100644
+--- a/applets/appmenu/package/contents/ui/MenuDelegate.qml
 b/applets/appmenu/package/contents/ui/MenuDelegate.qml
+@@ -66,9 +66,6 @@ AbstractButton {
+ 
+ contentItem: PC3.Label {
+ text: controlRoot.Kirigami.MnemonicData.richTextLabel
+-// Kirigami.Theme.highlightedTextColor returns different colors
+-// depending on window focus, which does not apply to this applet
+-// instead, we use palette.highlightedText here, which returns 
consistent result
+-color: background.state == MenuDelegate.State.Rest ? 
palette.windowText : palette.highlightedText
++color: background.state == MenuDelegate.State.Rest ? 
PlasmaCore.Theme.textColor : PlasmaCore.Theme.highlightedTextColor
+ }
+ }
+-- 
+2.35.1
+

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.24.5-applets-kicker-refresh-RootModel-on-session-backend.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.24.5-applets-kicker-refresh-RootModel-on-session-backend.patch
new file mode 100644
index ..8cffd8d372ed
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.24.5-applets-kicker-refresh-RootModel-on-session-backend.patch
@@ -0,0 +1,92 @@
+From d0340868619c26de5892f8bd095456dc5a32d0ce Mon Sep 17 00:00:00 2001
+From: Amy Rose 
+Date: Tue, 17 May 2022 07:38:03 +
+Subject: [PATCH 8/8] applets/kicker: refresh RootModel on session backend
+ state change
+
+BUG: 427530
+
+Hunting this one down since mid-March...
+
+In "native" Plasma containments like the panel, desktop, and plasmawindowed, 
the `LogindSessionBackend` in `libkworkspace` enters the "Ready" state nearly 
instantly, before any signals can even be attached. In other containments like 
Latte Dock and plasmoidviewer, however, the initialization takes some time to 
complete (unsure why). RootModel was not watching or waiting to check what the 
session backend's state was, resulting in validity checks being done too soon 
and never checked again.
+
+
+(cherry picked from commit 2cc819f39bcce9ca83ab3767c42beb1e500e55b1)
+---
+ applets/kicker/plugin/rootmodel.cpp   | 1 +
+ applets/kicker/plugin/systementry.cpp | 1 +
+ applets/kicker/plugin/systementry.h   | 1 +
+ applets/kicker/plugin/systemmodel.cpp | 2 ++
+ applets/kicker/plugin/systemmodel.h   | 3 +++
+ 5 files changed, 8 insertions(+)
+
+diff --git a/applets/kicker/plugin/rootmodel.cpp 
b/applets/kicker/plugin/rootmodel.cpp
+index 4ec323683..

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2022-02-06 Thread Andreas Sturmlechner
commit: c23324df98b0e94a198c2fad530c3a470dcb39f7
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Sun Feb  6 20:14:07 2022 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Sun Feb  6 21:16:35 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c23324df

kde-plasma/plasma-workspace: Fix kcmfontinst/wallpaperplugin ProvidersUrl

See also:
https://mail.kde.org/pipermail/distributions/2022-February/001124.html
https://mail.kde.org/pipermail/distributions/2022-February/001129.html
https://mail.kde.org/pipermail/distributions/2022-February/001133.html

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 ...space-5.23.5-fix-kcmfontinst-ProvidersUrl.patch | 28 +
 ...e-5.23.5-fix-wallpaperplugin-ProvidersUrl.patch | 29 ++
 5.ebuild => plasma-workspace-5.23.5-r1.ebuild} |  4 +++
 ...0.ebuild => plasma-workspace-5.23.90-r1.ebuild} |  4 +++
 4 files changed, 65 insertions(+)

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.23.5-fix-kcmfontinst-ProvidersUrl.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.23.5-fix-kcmfontinst-ProvidersUrl.patch
new file mode 100644
index ..e546f46d6b7f
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.23.5-fix-kcmfontinst-ProvidersUrl.patch
@@ -0,0 +1,28 @@
+From 8c11f207e2bbf0f98488de7066bd3698705f20e1 Mon Sep 17 00:00:00 2001
+From: Ben Cooksley 
+Date: Mon, 7 Feb 2022 06:44:47 +1300
+Subject: [PATCH] Use the correct endpoint for this - hosted by a CDN and
+ therefore capable of handling much greater volumes of traffic.
+
+CCMAIL: plasma-de...@kde.org
+CCMAIL: distributi...@kde.org
+---
+ kcms/kfontinst/kcmfontinst/kfontinst.knsrc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/kcms/kfontinst/kcmfontinst/kfontinst.knsrc 
b/kcms/kfontinst/kcmfontinst/kfontinst.knsrc
+index deaf1e08f..932bc8802 100644
+--- a/kcms/kfontinst/kcmfontinst/kfontinst.knsrc
 b/kcms/kfontinst/kcmfontinst/kfontinst.knsrc
+@@ -41,7 +41,7 @@ Name[vi]=Phông chữ
+ Name[x-test]=xxFontsxx
+ Name[zh_CN]=字体
+ 
+-ProvidersUrl=https://distribute.kde.org/khotnewstuff/fonts-providers.xml
++ProvidersUrl=https://cdn.kde.org/khotnewstuff/v1/fonts-providers.xml
+ Categories=KDE-Look.org Fonts
+ TargetDir=kfontinst
+ Uncompress=archive
+-- 
+GitLab
+

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.23.5-fix-wallpaperplugin-ProvidersUrl.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.23.5-fix-wallpaperplugin-ProvidersUrl.patch
new file mode 100644
index ..3bf9315facfc
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.23.5-fix-wallpaperplugin-ProvidersUrl.patch
@@ -0,0 +1,29 @@
+From b49a102074087e6680f330fcf61cebdeeac306b7 Mon Sep 17 00:00:00 2001
+From: Ben Cooksley 
+Date: Mon, 7 Feb 2022 06:25:33 +1300
+Subject: [PATCH] Purge all references to download.kde.org, replacing them with
+ the correct endpoint of autoconfig.kde.org.
+
+CCMAIL: plasma-de...@kde.org
+CCMAIL: distributi...@kde.org
+(cherry picked from commit 1ab87dbf43bb51f21e2cd9e0188cb482a541734b)
+---
+ components/shellprivate/wallpaperplugin.knsrc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/components/shellprivate/wallpaperplugin.knsrc 
b/components/shellprivate/wallpaperplugin.knsrc
+index 1495b6e27..3ed59f75d 100644
+--- a/components/shellprivate/wallpaperplugin.knsrc
 b/components/shellprivate/wallpaperplugin.knsrc
+@@ -42,7 +42,7 @@ Name[x-test]=xxWallpaper Pluginsxx
+ Name[zh_CN]=壁纸插件
+ Name[zh_TW]=桌布外掛程式
+ 
+-ProvidersUrl=https://download.kde.org/ocs/providers.xml
++ProvidersUrl=https://autoconfig.kde.org/ocs/providers.xml
+ Categories=Plasma Wallpaper Plugin
+ StandardResource=tmp
+ Uncompress=kpackage
+-- 
+GitLab
+

diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.23.5.ebuild 
b/kde-plasma/plasma-workspace/plasma-workspace-5.23.5-r1.ebuild
similarity index 96%
rename from kde-plasma/plasma-workspace/plasma-workspace-5.23.5.ebuild
rename to kde-plasma/plasma-workspace/plasma-workspace-5.23.5-r1.ebuild
index 204a23153bd8..ad412dd4223b 100644
--- a/kde-plasma/plasma-workspace/plasma-workspace-5.23.5.ebuild
+++ b/kde-plasma/plasma-workspace/plasma-workspace-5.23.5-r1.ebuild
@@ -150,6 +150,10 @@ PDEPEND=">=kde-plasma/kde-cli-tools-${PVCUT}:5"
 PATCHES=(
"${FILESDIR}/${PN}-5.21.5-split-libkworkspace.patch" # downstream
"${FILESDIR}/${PN}-5.22.5-krunner-cwd-at-home.patch" # TODO upstream: 
KDE-bug 432975, bug 767478
+   # https://mail.kde.org/pipermail/distributions/2022-February/001129.html
+   "${FILESDIR}/${P}-fix-wallpaperplugin-ProvidersUrl.patch"
+   # https://mail.kde.org/pipermail/distributions/2022-February/001133.html
+   "${FILESDIR}/${P}-fix-kcmfontinst-ProvidersUrl.patch"
 )
 
 src_prepare() {

diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.23.90.ebuild 
b/kde-

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2021-12-14 Thread Andreas Sturmlechner
commit: ac85383c329f008b1ab5695b419c909f698d882c
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Mon Dec 13 13:57:40 2021 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Tue Dec 14 09:23:00 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac85383c

kde-plasma/plasma-workspace: drop 5.22.5*

Signed-off-by: Andreas Sturmlechner  gentoo.org>

 kde-plasma/plasma-workspace/Manifest   |   1 -
 ...orkspace-5.22.5-fix-hotplug-notifications.patch |  33 
 ...ace-5.22.5-fix-powermanagement-inhibition.patch |  35 
 .../plasma-workspace-5.22.5-gpsd-3.23.1.patch  |  30 ---
 ...asma-workspace-5.22.5-krunner-cwd-at-home.patch |  30 ---
 .../plasma-workspace-5.22.5-r3.ebuild  | 210 -
 6 files changed, 339 deletions(-)

diff --git a/kde-plasma/plasma-workspace/Manifest 
b/kde-plasma/plasma-workspace/Manifest
index b47676d433af..c2bc7f7d3791 100644
--- a/kde-plasma/plasma-workspace/Manifest
+++ b/kde-plasma/plasma-workspace/Manifest
@@ -1,2 +1 @@
-DIST plasma-workspace-5.22.5.tar.xz 8401412 BLAKE2B 
3479549ffb302f8beca8f37853540bd71cc03a02183826435ec47ded0df69f4b19e103d8b6e2cd16af001a9c04a34e2f37a98a461f40fb8837ed7e7128a6fcba
 SHA512 
753ba35c3f0c3a5affe10d3a6149f1ebca7ed51b0710c079606e33ceada94a50eee1c1bafbb465fcc194038915c33edef1d79e0865e5702aab7a334d6d508c47
 DIST plasma-workspace-5.23.4.tar.xz 9012468 BLAKE2B 
491c211bbfdecb1a4e7adb15647c6f9d7d2ded3314ddef855b79b4a222e1bedb4ac88b8a380d66ea296b6696248d67d0ce4757853d01300abdfbe85394936abe
 SHA512 
730e8a69e5dc2e22db1356832aa2adc9255de179ed139c0abe06ad6b44dd0cffb8f214b32eb1f882eb73c337f44e16f64873789130939e25b2b8bab23d2dcfc2

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.22.5-fix-hotplug-notifications.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.22.5-fix-hotplug-notifications.patch
deleted file mode 100644
index e7cd0627a269..
--- 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.22.5-fix-hotplug-notifications.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-From 61e2ea2323ae63c5805c87353701ba6fb722205a Mon Sep 17 00:00:00 2001
-From: Fabio Bas 
-Date: Fri, 3 Sep 2021 19:23:12 +0200
-Subject: [PATCH] Update solid connectedSources when a new source gets added by
- hotplug BUG: 438874
-

- applets/devicenotifier/package/contents/ui/devicenotifier.qml | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/applets/devicenotifier/package/contents/ui/devicenotifier.qml 
b/applets/devicenotifier/package/contents/ui/devicenotifier.qml
-index a1dc20b83..404ae95e6 100644
 a/applets/devicenotifier/package/contents/ui/devicenotifier.qml
-+++ b/applets/devicenotifier/package/contents/ui/devicenotifier.qml
-@@ -75,6 +75,7 @@ Item {
- onSourceAdded: {
- disconnectSource(source);
- connectSource(source);
-+sdSource.connectedSources = sources
- }
- onSourceRemoved: {
- disconnectSource(source);
-@@ -98,7 +99,6 @@ Item {
- PlasmaCore.DataSource {
- id: sdSource
- engine: "soliddevice"
--connectedSources: hpSource.sources
- interval: 0
- property string last
- onSourceAdded: {
--- 
-GitLab
-

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.22.5-fix-powermanagement-inhibition.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.22.5-fix-powermanagement-inhibition.patch
deleted file mode 100644
index 13e4bf256d3e..
--- 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.22.5-fix-powermanagement-inhibition.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-From 6379d1ec8d4a1fce141280eead930a6cdd9282d1 Mon Sep 17 00:00:00 2001
-From: Peifeng Yu <7437...@gmail.com>
-Date: Mon, 6 Sep 2021 05:24:15 +
-Subject: [PATCH] Call UnInhibit with correct signature in powermanagement
- dataengine
-

- dataengines/powermanagement/powermanagementjob.cpp | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/dataengines/powermanagement/powermanagementjob.cpp 
b/dataengines/powermanagement/powermanagementjob.cpp
-index 90051cf33..dc7883d10 100644
 a/dataengines/powermanagement/powermanagementjob.cpp
-+++ b/dataengines/powermanagement/powermanagementjob.cpp
-@@ -104,7 +104,7 @@ void PowerManagementJob::start()
-   
QStringLiteral("/org/freedesktop/PowerManagement/Inhibit"),
-   
QStringLiteral("org.freedesktop.PowerManagement.Inhibit"),
-   
QStringLiteral("UnInhibit"));
--msg << parameters().value(QStringLiteral("cookie")).toInt();
-+msg << parameters().value(QStringLiteral("cookie")).toUInt();
- QDBusReply reply = QDBusConnection::sessionBus().call(msg);
- setResult(reply.isValid());
- return;
-@@ -122,7 +122,7 @@ void PowerManagementJob::sta

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2021-12-10 Thread Andreas Sturmlechner
commit: 772507bcfc6fe0a19f039491f52f9e028cfbb776
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Fri Dec 10 14:26:33 2021 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Fri Dec 10 14:58:21 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=772507bc

kde-plasma/plasma-workspace: Fix klipper bugs, systemsettings crash

Upstream commit c8b8c8dd389ae381831fdd23f354617f48f3edd4
KDE-bug: https://bugs.kde.org/show_bug.cgi?id=446441

Upstream commit beb34e3d9781c7728260d486a835c52be21a6d83
KDE-bug: https://bugs.kde.org/show_bug.cgi?id=444365

Upstream commit a8b613505e326dd047707e0a0e4d6f5ecc4a9baa
KDE-bug: https://bugs.kde.org/show_bug.cgi?id=439797
Package-Manager: Portage-3.0.29, Repoman-3.0.3
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 4-fix-klipper-actions-content-truncation.patch |  33 
 ...orkspace-5.23.4-fix-klipper-use-full-text.patch |  34 
 ...workspace-5.23.4-fix-systemsettings-crash.patch |  31 +++
 .../plasma-workspace-5.23.4-r1.ebuild  | 213 +
 4 files changed, 311 insertions(+)

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.23.4-fix-klipper-actions-content-truncation.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.23.4-fix-klipper-actions-content-truncation.patch
new file mode 100644
index ..1153c9f006f1
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.23.4-fix-klipper-actions-content-truncation.patch
@@ -0,0 +1,33 @@
+From beb34e3d9781c7728260d486a835c52be21a6d83 Mon Sep 17 00:00:00 2001
+From: ValdikSS ValdikSS 
+Date: Sun, 5 Dec 2021 15:46:00 +0300
+Subject: [PATCH] Fix Klipper Actions content truncation
+
+Commit f9669af2 introduced a regression with Klipper Actions: it used
+truncated text as a source for the action, which resulted in truncated
+output.
+
+BUG: 444365
+
+
+(cherry picked from commit 49365857623f7e986013bee7d3160594d2272fe2)
+---
+ klipper/urlgrabber.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/klipper/urlgrabber.cpp b/klipper/urlgrabber.cpp
+index fb7c0d0a2..185a6a5d6 100644
+--- a/klipper/urlgrabber.cpp
 b/klipper/urlgrabber.cpp
+@@ -245,7 +245,7 @@ void URLGrabber::execute(const ClipAction *action, int 
cmdIdx) const
+ ClipCommand command = action->command(cmdIdx);
+ 
+ if (command.isEnabled) {
+-QString text(m_myClipItem->text());
++QString text(m_myClipItem->mimeData()->text());
+ if (m_stripWhiteSpace) {
+ text = text.trimmed();
+ }
+-- 
+GitLab
+

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.23.4-fix-klipper-use-full-text.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.23.4-fix-klipper-use-full-text.patch
new file mode 100644
index ..29640f8262e6
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.23.4-fix-klipper-use-full-text.patch
@@ -0,0 +1,34 @@
+From c8b8c8dd389ae381831fdd23f354617f48f3edd4 Mon Sep 17 00:00:00 2001
+From: David Edmundson 
+Date: Sun, 5 Dec 2021 08:26:45 +
+Subject: [PATCH] [klipper] Use full text for DBus return values
+
+In a recent commit HistoryItem::text() became the visual representation
+of the mimedata; often a truncated string.
+
+mimeData()->text() always returns the full value.
+
+BUG: 446441
+
+
+(cherry picked from commit 2db375f6a71cb730e1e099f9ff17ef7092850d9d)
+---
+ klipper/klipper.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/klipper/klipper.cpp b/klipper/klipper.cpp
+index b090a2409..3b12d1f95 100644
+--- a/klipper/klipper.cpp
 b/klipper/klipper.cpp
+@@ -838,7 +838,7 @@ QString Klipper::getClipboardHistoryItem(int i)
+ if (item) {
+ do {
+ if (i-- == 0) {
+-return item->text();
++return item->mimeData()->text();
+ }
+ item = history()->find(item->next_uuid());
+ } while (item != history()->first());
+-- 
+GitLab
+

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.23.4-fix-systemsettings-crash.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.23.4-fix-systemsettings-crash.patch
new file mode 100644
index ..d46f33486785
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.23.4-fix-systemsettings-crash.patch
@@ -0,0 +1,31 @@
+From a8b613505e326dd047707e0a0e4d6f5ecc4a9baa Mon Sep 17 00:00:00 2001
+From: Alexander Lohnau 
+Date: Wed, 8 Dec 2021 18:25:36 +0100
+Subject: [PATCH] lookandfeel: Add missing check if list of files is empty
+
+BUG: 439797
+
+
+(cherry picked from commit d168d2a50366c528dab65415cd4f6e82afdfb645)
+---
+ kcms/lookandfeel/kcm.cpp | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/kcms/lookandfeel/kcm.cpp b/kcms/lookandfeel/kcm.cpp
+index 75ce19197..349761aad 100644
+--- a/kcms/lookandfeel/kcm.cpp
 b/kcms/lookandfeel/kcm.cpp
+@@ -123,7 +123,9 @@ void KCMLookandFeel::knsE

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2021-11-30 Thread Andreas Sturmlechner
commit: e049a8de6a38f3027fbcf0b84bd5be53c840c1a3
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Tue Nov 30 14:20:21 2021 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Tue Nov 30 14:32:18 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e049a8de

kde-plasma/plasma-workspace: drop 5.23.3*

Signed-off-by: Andreas Sturmlechner  gentoo.org>

 kde-plasma/plasma-workspace/Manifest   |   1 -
 ...earchrunner-emit-DBus-error-when-disabled.patch |  75 
 ...systemtray-check-if-service-already-added.patch |  41 
 ...pace-5.23.3-systemtray-fix-race-condition.patch |  54 --
 .../plasma-workspace-5.23.3-r2.ebuild  | 212 -
 5 files changed, 383 deletions(-)

diff --git a/kde-plasma/plasma-workspace/Manifest 
b/kde-plasma/plasma-workspace/Manifest
index d16cc13a2fe9..b47676d433af 100644
--- a/kde-plasma/plasma-workspace/Manifest
+++ b/kde-plasma/plasma-workspace/Manifest
@@ -1,3 +1,2 @@
 DIST plasma-workspace-5.22.5.tar.xz 8401412 BLAKE2B 
3479549ffb302f8beca8f37853540bd71cc03a02183826435ec47ded0df69f4b19e103d8b6e2cd16af001a9c04a34e2f37a98a461f40fb8837ed7e7128a6fcba
 SHA512 
753ba35c3f0c3a5affe10d3a6149f1ebca7ed51b0710c079606e33ceada94a50eee1c1bafbb465fcc194038915c33edef1d79e0865e5702aab7a334d6d508c47
-DIST plasma-workspace-5.23.3.tar.xz 9006500 BLAKE2B 
651780480736ae0478b059e8dcff40d5411310693d3b0b24b9a8a5c442c45c555e69a99c3e0f20d82a4e0dc3a099537c172589e17afa2b34c68d314164913e73
 SHA512 
34f8835d35063b582b12b343475474b2c7b338ecef148871f28348fe73f2b1ea36d938553c8e97fd108ce441cbb7c97b450590b186c788608c9cf29c82d8c786
 DIST plasma-workspace-5.23.4.tar.xz 9012468 BLAKE2B 
491c211bbfdecb1a4e7adb15647c6f9d7d2ded3314ddef855b79b4a222e1bedb4ac88b8a380d66ea296b6696248d67d0ce4757853d01300abdfbe85394936abe
 SHA512 
730e8a69e5dc2e22db1356832aa2adc9255de179ed139c0abe06ad6b44dd0cffb8f214b32eb1f882eb73c337f44e16f64873789130939e25b2b8bab23d2dcfc2

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.23.3-baloosearchrunner-emit-DBus-error-when-disabled.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.23.3-baloosearchrunner-emit-DBus-error-when-disabled.patch
deleted file mode 100644
index be4b6e51b3e2..
--- 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.23.3-baloosearchrunner-emit-DBus-error-when-disabled.patch
+++ /dev/null
@@ -1,75 +0,0 @@
-From afff43effadd78ab682ecf4c6c9919bdcbbedbcd Mon Sep 17 00:00:00 2001
-From: Alexander Lohnau 
-Date: Fri, 12 Nov 2021 11:10:15 +0100
-Subject: [PATCH] baloosearchruner: Emit DBus error when baloo is disabled
-
-Otherwise we exit and KRunner runner into a long timeout.
-
-By making this a dedicated DBus error KRunner can also know, that this
-runner can not be started. Consequently making new attempts to query
-this runner can be prevented.
-
-Because the runner is DBus-Activated, we can not exit the process, otherwise 
other
-processes (like the search in the app launcher) will have the same issue with 
the timeout.
-BUG: 445342
-
-
-(cherry picked from commit fa5ac3fe3421a0077d9d80f52b89536daa732afa)

- runners/baloo/baloosearchrunner.cpp | 14 ++
- runners/baloo/baloosearchrunner.h   |  2 +-
- 2 files changed, 11 insertions(+), 5 deletions(-)
-
-diff --git a/runners/baloo/baloosearchrunner.cpp 
b/runners/baloo/baloosearchrunner.cpp
-index 08f24b362..768709cee 100644
 a/runners/baloo/baloosearchrunner.cpp
-+++ b/runners/baloo/baloosearchrunner.cpp
-@@ -31,10 +31,6 @@ static const QString s_openParentDirId = 
QStringLiteral("openParentDir");
- 
- int main(int argc, char **argv)
- {
--Baloo::IndexerConfig config;
--if (!config.fileIndexingEnabled()) {
--return -1;
--}
- QCoreApplication::setAttribute(Qt::AA_DisableSessionManager);
- QApplication::setQuitOnLastWindowClosed(false);
- QApplication app(argc, argv); // KRun needs widgets for error message 
boxes
-@@ -60,11 +56,21 @@ SearchRunner::~SearchRunner()
- 
- RemoteActions SearchRunner::Actions()
- {
-+Baloo::IndexerConfig config;
-+if (!config.fileIndexingEnabled()) {
-+sendErrorReply(QDBusError::ErrorType::NotSupported);
-+}
- return RemoteActions({RemoteAction{s_openParentDirId, i18n("Open 
Containing Folder"), QStringLiteral("document-open-folder")}});
- }
- 
- RemoteMatches SearchRunner::Match(const QString &searchTerm)
- {
-+Baloo::IndexerConfig config;
-+if (!config.fileIndexingEnabled()) {
-+sendErrorReply(QDBusError::ErrorType::NotSupported);
-+return {};
-+}
-+
- // Do not try to show results for queries starting with =
- // this should trigger the calculator, but the AdvancedQueryParser::parse 
method
- // in baloo interpreted it as an operator, BUG 345134
-diff --git a/runners/baloo/baloosearchrunner.h 
b/runners/baloo/baloosearchrunner.h
-index 5006c9ae3..4836769c9 100644
 a/runners/baloo/baloosearchrunner.h
-+++ b/runners/baloo/baloosearchrunner.h
-@

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2021-11-23 Thread Andreas Sturmlechner
commit: 4f6eef277f8cb6faac8f0c75e7f8260599ed453f
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Mon Nov 22 17:11:27 2021 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Tue Nov 23 14:59:14 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f6eef27

kde-plasma/plasma-workspace: baloosearchruner: Emit DBus error

...when baloo is disabled
KDE-bug: https://bugs.kde.org/show_bug.cgi?id=445342
Upstream commit afff43effadd78ab682ecf4c6c9919bdcbbedbcd

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 ...earchrunner-emit-DBus-error-when-disabled.patch |  75 
 .../plasma-workspace-5.23.3-r2.ebuild  | 210 +
 2 files changed, 285 insertions(+)

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.23.3-baloosearchrunner-emit-DBus-error-when-disabled.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.23.3-baloosearchrunner-emit-DBus-error-when-disabled.patch
new file mode 100644
index ..be4b6e51b3e2
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.23.3-baloosearchrunner-emit-DBus-error-when-disabled.patch
@@ -0,0 +1,75 @@
+From afff43effadd78ab682ecf4c6c9919bdcbbedbcd Mon Sep 17 00:00:00 2001
+From: Alexander Lohnau 
+Date: Fri, 12 Nov 2021 11:10:15 +0100
+Subject: [PATCH] baloosearchruner: Emit DBus error when baloo is disabled
+
+Otherwise we exit and KRunner runner into a long timeout.
+
+By making this a dedicated DBus error KRunner can also know, that this
+runner can not be started. Consequently making new attempts to query
+this runner can be prevented.
+
+Because the runner is DBus-Activated, we can not exit the process, otherwise 
other
+processes (like the search in the app launcher) will have the same issue with 
the timeout.
+BUG: 445342
+
+
+(cherry picked from commit fa5ac3fe3421a0077d9d80f52b89536daa732afa)
+---
+ runners/baloo/baloosearchrunner.cpp | 14 ++
+ runners/baloo/baloosearchrunner.h   |  2 +-
+ 2 files changed, 11 insertions(+), 5 deletions(-)
+
+diff --git a/runners/baloo/baloosearchrunner.cpp 
b/runners/baloo/baloosearchrunner.cpp
+index 08f24b362..768709cee 100644
+--- a/runners/baloo/baloosearchrunner.cpp
 b/runners/baloo/baloosearchrunner.cpp
+@@ -31,10 +31,6 @@ static const QString s_openParentDirId = 
QStringLiteral("openParentDir");
+ 
+ int main(int argc, char **argv)
+ {
+-Baloo::IndexerConfig config;
+-if (!config.fileIndexingEnabled()) {
+-return -1;
+-}
+ QCoreApplication::setAttribute(Qt::AA_DisableSessionManager);
+ QApplication::setQuitOnLastWindowClosed(false);
+ QApplication app(argc, argv); // KRun needs widgets for error message 
boxes
+@@ -60,11 +56,21 @@ SearchRunner::~SearchRunner()
+ 
+ RemoteActions SearchRunner::Actions()
+ {
++Baloo::IndexerConfig config;
++if (!config.fileIndexingEnabled()) {
++sendErrorReply(QDBusError::ErrorType::NotSupported);
++}
+ return RemoteActions({RemoteAction{s_openParentDirId, i18n("Open 
Containing Folder"), QStringLiteral("document-open-folder")}});
+ }
+ 
+ RemoteMatches SearchRunner::Match(const QString &searchTerm)
+ {
++Baloo::IndexerConfig config;
++if (!config.fileIndexingEnabled()) {
++sendErrorReply(QDBusError::ErrorType::NotSupported);
++return {};
++}
++
+ // Do not try to show results for queries starting with =
+ // this should trigger the calculator, but the AdvancedQueryParser::parse 
method
+ // in baloo interpreted it as an operator, BUG 345134
+diff --git a/runners/baloo/baloosearchrunner.h 
b/runners/baloo/baloosearchrunner.h
+index 5006c9ae3..4836769c9 100644
+--- a/runners/baloo/baloosearchrunner.h
 b/runners/baloo/baloosearchrunner.h
+@@ -14,7 +14,7 @@
+ #include "dbusutils_p.h"
+ #include 
+ 
+-class SearchRunner : public QObject
++class SearchRunner : public QObject, protected QDBusContext
+ {
+ Q_OBJECT
+ 
+-- 
+GitLab
+

diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.23.3-r2.ebuild 
b/kde-plasma/plasma-workspace/plasma-workspace-5.23.3-r2.ebuild
new file mode 100644
index ..5bc9e1a28269
--- /dev/null
+++ b/kde-plasma/plasma-workspace/plasma-workspace-5.23.3-r2.ebuild
@@ -0,0 +1,210 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_HANDBOOK="forceoptional"
+ECM_TEST="forceoptional"
+KFMIN=5.86.0
+PVCUT=$(ver_cut 1-3)
+QTMIN=5.15.2
+VIRTUALX_REQUIRED="test"
+inherit ecm kde.org
+
+DESCRIPTION="KDE Plasma workspace"
+
+LICENSE="GPL-2" # TODO: CHECK
+SLOT="5"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
+IUSE="appstream +calculator +calendar +fontconfig geolocation gps screencast
++semantic-desktop telemetry"
+
+REQUIRED_USE="gps? ( geolocation )"
+RESTRICT="test"
+
+# slot op: various private QtWaylandClient headers
+COMMON_DEPEND="
+   >=dev-libs/wayland-1.15
+   >=dev-qt/qtdbu

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2021-09-22 Thread Andreas Sturmlechner
commit: 61988d92de81544b00167a289258360b61c7261e
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Wed Sep 22 20:53:47 2021 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Wed Sep 22 21:59:09 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61988d92

kde-plasma/plasma-workspace: Fix krunner cwd, device notifications

krunner starts applications with cwd "/" with init system other than systemd
KDE-bug: https://bugs.kde.org/show_bug.cgi?id=432975

Disk & Devices applet doesn't show removable devices after eject and reconnect
Upstream commit 61e2ea2323ae63c5805c87353701ba6fb722205a
KDE-bug: https://bugs.kde.org/show_bug.cgi?id=438874

Thanks-to: Eric F. Garioud  wanadoo.fr>
Thanks-to: Andrea Arcangeli  redhat.com>
Bug: https://bugs.gentoo.org/767478
Bug: https://bugs.gentoo.org/814284
Package-Manager: Portage-3.0.23, Repoman-3.0.3
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 ...orkspace-5.22.5-fix-hotplug-notifications.patch |  33 
 ...asma-workspace-5.22.5-krunner-cwd-at-home.patch |  30 +++
 .../plasma-workspace-5.22.5-r2.ebuild  | 210 +
 3 files changed, 273 insertions(+)

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.22.5-fix-hotplug-notifications.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.22.5-fix-hotplug-notifications.patch
new file mode 100644
index 000..e7cd0627a26
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.22.5-fix-hotplug-notifications.patch
@@ -0,0 +1,33 @@
+From 61e2ea2323ae63c5805c87353701ba6fb722205a Mon Sep 17 00:00:00 2001
+From: Fabio Bas 
+Date: Fri, 3 Sep 2021 19:23:12 +0200
+Subject: [PATCH] Update solid connectedSources when a new source gets added by
+ hotplug BUG: 438874
+
+---
+ applets/devicenotifier/package/contents/ui/devicenotifier.qml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/applets/devicenotifier/package/contents/ui/devicenotifier.qml 
b/applets/devicenotifier/package/contents/ui/devicenotifier.qml
+index a1dc20b83..404ae95e6 100644
+--- a/applets/devicenotifier/package/contents/ui/devicenotifier.qml
 b/applets/devicenotifier/package/contents/ui/devicenotifier.qml
+@@ -75,6 +75,7 @@ Item {
+ onSourceAdded: {
+ disconnectSource(source);
+ connectSource(source);
++sdSource.connectedSources = sources
+ }
+ onSourceRemoved: {
+ disconnectSource(source);
+@@ -98,7 +99,6 @@ Item {
+ PlasmaCore.DataSource {
+ id: sdSource
+ engine: "soliddevice"
+-connectedSources: hpSource.sources
+ interval: 0
+ property string last
+ onSourceAdded: {
+-- 
+GitLab
+

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.22.5-krunner-cwd-at-home.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.22.5-krunner-cwd-at-home.patch
new file mode 100644
index 000..27db136c294
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.22.5-krunner-cwd-at-home.patch
@@ -0,0 +1,30 @@
+Commit 7ca34e0baa7fa65efc929eee5b6b0c3d2104db8e already reverted one
+change that caused the cwd of all apps spawned by krunner to
+erroneously be set to the root dir.
+
+That regressions is back so it's more robust to fix in within krunner.
+
+Signed-off-by: Andrea Arcangeli 
+---
+ krunner/main.cpp | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/krunner/main.cpp b/krunner/main.cpp
+index 4593687ca..fa4a62ac4 100644
+--- a/krunner/main.cpp
 b/krunner/main.cpp
+@@ -12,6 +12,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 
+@@ -112,5 +113,6 @@ int main(int argc, char **argv)
+ }
+ });
+ 
++QDir::setCurrent(QDir::homePath());
+ return app.exec();
+ }

diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.22.5-r2.ebuild 
b/kde-plasma/plasma-workspace/plasma-workspace-5.22.5-r2.ebuild
new file mode 100644
index 000..2a5454791b8
--- /dev/null
+++ b/kde-plasma/plasma-workspace/plasma-workspace-5.22.5-r2.ebuild
@@ -0,0 +1,210 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_HANDBOOK="forceoptional"
+ECM_TEST="forceoptional"
+KFMIN=5.82.0
+PVCUT=$(ver_cut 1-3)
+QTMIN=5.15.2
+VIRTUALX_REQUIRED="test"
+inherit ecm kde.org
+
+DESCRIPTION="KDE Plasma workspace"
+
+LICENSE="GPL-2" # TODO: CHECK
+SLOT="5"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
+IUSE="appstream +calculator +calendar +fontconfig geolocation gps screencast
++semantic-desktop systemd telemetry"
+
+REQUIRED_USE="gps? ( geolocation )"
+RESTRICT="test"
+
+COMMON_DEPEND="
+   >=dev-libs/wayland-1.15
+   >=dev-qt/qtdbus-${QTMIN}:5
+   >=dev-qt/qtdeclarative-${QTMIN}:5[widgets]
+   >=dev-qt/qtgui-${QTMIN}:5=[jpeg,libinput]
+   >=dev-qt/qtnetwork-${QTMIN}:5
+   >=dev-qt/qtsql-${QTMIN}:5
+   >=dev-qt/qtsvg-${QTMIN

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2021-09-16 Thread Andreas Sturmlechner
commit: 16e3445cf4f8d159317df5a3abfb6c489af2c5b7
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Wed Sep 15 11:59:38 2021 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Thu Sep 16 11:09:46 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16e3445c

kde-plasma/plasma-workspace: drop 5.21.5*

Signed-off-by: Andreas Sturmlechner  gentoo.org>

 kde-plasma/plasma-workspace/Manifest   |   1 -
 .../plasma-workspace-5.21.5-FindFontconfig.cmake   |  96 --
 ...asma-workspace-5.21.5-dangerous-shortcuts.patch |  45 ---
 ...-workspace-5.21.5-revert-activate-krunner.patch |  56 ---
 ...workspace-5.21.5-transparency-panelConfig.patch |  27 --
 .../plasma-workspace-5.21.5-transparency.patch | 376 -
 .../plasma-workspace-5.21.5.ebuild | 214 
 7 files changed, 815 deletions(-)

diff --git a/kde-plasma/plasma-workspace/Manifest 
b/kde-plasma/plasma-workspace/Manifest
index 013d9857393..0039ae12111 100644
--- a/kde-plasma/plasma-workspace/Manifest
+++ b/kde-plasma/plasma-workspace/Manifest
@@ -1,2 +1 @@
-DIST plasma-workspace-5.21.5.tar.xz 9724000 BLAKE2B 
2688c8aacd4e5584bb2660a287563aa683af4d469aad45f3521d31ec569d403204cceeb167062a9d8dfe591972db3758d5f46c21ca7c30453cd6740f3e3b470a
 SHA512 
6918c1a29e977ac7f3ebf6ac7308f20f20712db96bf10599f3372987509630aa2ca8bc6adf0b1af4e543ccd2a2001e38ce02d759d25f09588c7c1aaa358af1b4
 DIST plasma-workspace-5.22.5.tar.xz 8401412 BLAKE2B 
3479549ffb302f8beca8f37853540bd71cc03a02183826435ec47ded0df69f4b19e103d8b6e2cd16af001a9c04a34e2f37a98a461f40fb8837ed7e7128a6fcba
 SHA512 
753ba35c3f0c3a5affe10d3a6149f1ebca7ed51b0710c079606e33ceada94a50eee1c1bafbb465fcc194038915c33edef1d79e0865e5702aab7a334d6d508c47

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.21.5-FindFontconfig.cmake
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.21.5-FindFontconfig.cmake
deleted file mode 100644
index db5f18300ed..000
--- 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.21.5-FindFontconfig.cmake
+++ /dev/null
@@ -1,96 +0,0 @@
-# SPDX-FileCopyrightText: 2006, 2007 Laurent Montel 
-# SPDX-FileCopyrightText: 2018 Volker Krause 
-#
-# SPDX-License-Identifier: BSD-3-Clause
-
-#[===[.rst:
-FindFontconfig
---
-
-Try to find Fontconfig.
-Once done this will define the following variables:
-
-``Fontconfig_FOUND``
-True if Fontconfig is available
-``Fontconfig_INCLUDE_DIRS``
-The include directory to use for the Fontconfig headers
-``Fontconfig_LIBRARIES``
-The Fontconfig libraries for linking
-``Fontconfig_DEFINITIONS``
-Compiler switches required for using Fontconfig
-``Fontconfig_VERSION``
-The version of Fontconfig that has been found
-
-If ``Fontconfig_FOUND`` is TRUE, it will also define the following
-imported target:
-
-``Fontconfig::Fontconfig``
-
-Since 5.57.0.
-#]===]
-
-# use pkg-config to get the directories and then use these values
-# in the FIND_PATH() and FIND_LIBRARY() calls
-find_package(PkgConfig QUIET)
-pkg_check_modules(PC_FONTCONFIG QUIET fontconfig)
-
-set(Fontconfig_DEFINITIONS ${PC_FONTCONFIG_CFLAGS_OTHER})
-
-find_path(Fontconfig_INCLUDE_DIRS fontconfig/fontconfig.h
-PATHS
-${PC_FONTCONFIG_INCLUDE_DIRS}
-/usr/X11/include
-)
-
-find_library(Fontconfig_LIBRARIES NAMES fontconfig
-PATHS
-${PC_FONTCONFIG_LIBRARY_DIRS}
-)
-
-set(Fontconfig_VERSION ${PC_FONTCONFIG_VERSION})
-if (NOT Fontconfig_VERSION)
-find_file(Fontconfig_VERSION_HEADER
-NAMES "fontconfig/fontconfig.h"
-HINTS ${Fontconfig_INCLUDE_DIRS}
-)
-mark_as_advanced(Fontconfig_VERSION_HEADER)
-if (Fontconfig_VERSION_HEADER)
-file(READ ${Fontconfig_VERSION_HEADER} 
_fontconfig_version_header_content)
-string(REGEX MATCH "#define FC_MAJOR[ \t]+[0-9]+" 
Fontconfig_MAJOR_VERSION_MATCH ${_fontconfig_version_header_content})
-string(REGEX MATCH "#define FC_MINOR[ \t]+[0-9]+" 
Fontconfig_MINOR_VERSION_MATCH ${_fontconfig_version_header_content})
-string(REGEX MATCH "#define FC_REVISION[ \t]+[0-9]+" 
Fontconfig_PATCH_VERSION_MATCH ${_fontconfig_version_header_content})
-string(REGEX REPLACE ".*FC_MAJOR[ \t]+(.*)" "\\1" 
Fontconfig_MAJOR_VERSION ${Fontconfig_MAJOR_VERSION_MATCH})
-string(REGEX REPLACE ".*FC_MINOR[ \t]+(.*)" "\\1" 
Fontconfig_MINOR_VERSION ${Fontconfig_MINOR_VERSION_MATCH})
-string(REGEX REPLACE ".*FC_REVISION[ \t]+(.*)" "\\1" 
Fontconfig_PATCH_VERSION ${Fontconfig_PATCH_VERSION_MATCH})
-set(Fontconfig_VERSION 
"${Fontconfig_MAJOR_VERSION}.${Fontconfig_MINOR_VERSION}.${Fontconfig_PATCH_VERSION}")
-endif()
-endif()
-
-include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(Fontconfig
-FOUND_VAR Fontconfig_FOUND
-REQUIRED_VARS Fontconfig_LIBRARIES Fontconfig_INCLUDE_DI

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2021-05-29 Thread Andreas Sturmlechner
commit: 1a411a00178fe8cc700103aa860003d099acc14c
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Sat May 29 20:49:39 2021 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Sat May 29 21:16:21 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a411a00

kde-plasma/plasma-workspace: Rebase split-libkworkspace.patch

Package-Manager: Portage-3.0.19, Repoman-3.0.3
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 ...asma-workspace-5.21.5-split-libkworkspace.patch | 33 ++
 .../plasma-workspace-5.21.5.ebuild |  2 +-
 2 files changed, 34 insertions(+), 1 deletion(-)

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.21.5-split-libkworkspace.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.21.5-split-libkworkspace.patch
new file mode 100644
index 000..c96c0ba623d
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.21.5-split-libkworkspace.patch
@@ -0,0 +1,33 @@
+From 4717089b68c386446be240f463f2f13e7024468b Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner 
+Date: Mon, 22 Oct 2018 10:35:10 +0200
+Subject: [PATCH] libkworkspace: Allow standalone build
+
+---
+ CMakeLists.txt   |  6 +++-
+ 1 file changed, 5 insertions(+), 1 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 67f82cfb7..88a8c09b4 100644
+--- a/CMakeLists.txt
 b/CMakeLists.txt
+@@ -73,6 +73,7 @@ set_package_properties(KF5Baloo PROPERTIES DESCRIPTION "File 
Searching"
+ 
+ find_package(KF5TextEditor)
+ find_package(KWinDBusInterface CONFIG REQUIRED)
++find_package(LibKWorkspace 5.21.5)
+ 
+ find_package(KF5Screen CONFIG REQUIRED)
+ find_package(KScreenLocker 5.13.80 REQUIRED)
+@@ -214,7 +215,10 @@ query_qmake(QtBinariesDir QT_INSTALL_BINS)
+ option(PLASMA_WAYLAND_DEFAULT_SESSION "Use Wayland session by default for 
Plasma" FALSE)
+ 
+ add_subdirectory(doc)
+-add_subdirectory(libkworkspace)
++if(NOT LibKWorkspace_FOUND)
++message(STATUS "System LibKWorkspace not found, using bundled.")
++add_subdirectory(libkworkspace)
++endif()
+ add_subdirectory(libdbusmenuqt)
+ add_subdirectory(appmenu)
+ 

diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.21.5.ebuild 
b/kde-plasma/plasma-workspace/plasma-workspace-5.21.5.ebuild
index 35b280c763a..6e92371027f 100644
--- a/kde-plasma/plasma-workspace/plasma-workspace-5.21.5.ebuild
+++ b/kde-plasma/plasma-workspace/plasma-workspace-5.21.5.ebuild
@@ -144,7 +144,7 @@ PDEPEND="
 "
 
 PATCHES=(
-   "${FILESDIR}/${PN}-5.14.2-split-libkworkspace.patch"
+   "${FILESDIR}/${P}-split-libkworkspace.patch" # downstream patch
"${FILESDIR}/${P}-revert-activate-krunner.patch" # bug 767478
"${FILESDIR}/${P}-transparency.patch" # KDE-bug 434202
"${FILESDIR}/${P}-transparency-panelConfig.patch" # KDE-bug 434285



[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2021-02-05 Thread Andreas Sturmlechner
commit: 57de3a3d0b6ba43351d08ea5a83e8d9203477a49
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Fri Feb  5 10:05:23 2021 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Fri Feb  5 10:12:03 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57de3a3d

kde-plasma/plasma-workspace: Fix krunner regression to use cwd "~"

Reported-by: Andrea  cpushare.com>
Tested-by: Marquel (in #plasma), but also myself
Closes: https://bugs.gentoo.org/767478
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 ...-workspace-5.20.5-revert-activate-krunner.patch |  56 ++
 .../plasma-workspace-5.20.5-r4.ebuild  | 209 +
 2 files changed, 265 insertions(+)

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.20.5-revert-activate-krunner.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.20.5-revert-activate-krunner.patch
new file mode 100644
index 000..37f3ae7ece4
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.20.5-revert-activate-krunner.patch
@@ -0,0 +1,56 @@
+From e350342bfc42f7803c58dafea0c0ad190507430b Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner 
+Date: Tue, 2 Feb 2021 13:28:06 +0100
+Subject: [PATCH] Revert "Activate KRunner instead of running the binary"
+
+Causes applications to be started with cwd "/".
+
+See also: https://bugs.gentoo.org/767478
+
+This reverts commit 0e575a20ef36532b5b40a40ea30f915976942477.
+---
+ krunner/CMakeLists.txt | 3 ++-
+ krunner/{krunner.desktop => krunner.desktop.cmake} | 4 ++--
+ 2 files changed, 4 insertions(+), 3 deletions(-)
+ rename krunner/{krunner.desktop => krunner.desktop.cmake} (94%)
+
+diff --git a/krunner/CMakeLists.txt b/krunner/CMakeLists.txt
+index 59d50e464..02b2c5731 100644
+--- a/krunner/CMakeLists.txt
 b/krunner/CMakeLists.txt
+@@ -31,7 +31,8 @@ target_compile_definitions(krunner PRIVATE 
-DPROJECT_VERSION="${PROJECT_VERSION}
+ install(TARGETS krunner ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
+ install(FILES ${krunner_dbusAppXML} DESTINATION 
${KDE_INSTALL_DBUSINTERFACEDIR} )
+ 
+-install(FILES krunner.desktop DESTINATION ${DATA_INSTALL_DIR}/kglobalaccel)
++configure_file(krunner.desktop.cmake 
${CMAKE_CURRENT_BINARY_DIR}/krunner.desktop @ONLY)
++install(FILES ${CMAKE_CURRENT_BINARY_DIR}/krunner.desktop DESTINATION 
${DATA_INSTALL_DIR}/kglobalaccel)
+ 
+ set(CMAKECONFIG_INSTALL_DIR 
"${KDE_INSTALL_CMAKEPACKAGEDIR}/KRunnerAppDBusInterface")
+ configure_package_config_file(KRunnerAppDBusInterfaceConfig.cmake.in
+diff --git a/krunner/krunner.desktop b/krunner/krunner.desktop.cmake
+similarity index 94%
+rename from krunner/krunner.desktop
+rename to krunner/krunner.desktop.cmake
+index 85c91dbad..457d7 100644
+--- a/krunner/krunner.desktop
 b/krunner/krunner.desktop.cmake
+@@ -1,5 +1,5 @@
+ [Desktop Entry]
+-Exec=dbus-send --type=method_call --dest=org.kde.krunner /App 
org.kde.krunner.App.display
++Exec=@CMAKE_INSTALL_PREFIX@/bin/krunner
+ Name=KRunner
+ Name[ar]=مشغّل.ك
+ Name[ast]=KRunner
+@@ -59,7 +59,7 @@ Actions=RunClipboard
+ X-KDE-Wayland-Interfaces=org_kde_plasma_window_management
+ 
+ [Desktop Action RunClipboard]
+-Exec=dbus-send --type=method_call --dest=org.kde.krunner /App 
org.kde.krunner.App.displayWithClipboardContents
++Exec=krunner -c
+ Name=Run command on clipboard contents
+ Name[az]=Əmri, mübadilə buferindən başlatmaq
+ Name[ca]=Executa una ordre al contingut del porta-retalls
+-- 
+2.30.0
+

diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.20.5-r4.ebuild 
b/kde-plasma/plasma-workspace/plasma-workspace-5.20.5-r4.ebuild
new file mode 100644
index 000..7c9a6156b56
--- /dev/null
+++ b/kde-plasma/plasma-workspace/plasma-workspace-5.20.5-r4.ebuild
@@ -0,0 +1,209 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+ECM_HANDBOOK="forceoptional"
+ECM_TEST="forceoptional"
+KFMIN=5.74.0
+PVCUT=$(ver_cut 1-3)
+QTMIN=5.15.1
+VIRTUALX_REQUIRED="test"
+inherit ecm kde.org
+
+DESCRIPTION="KDE Plasma workspace"
+
+LICENSE="GPL-2" # TODO: CHECK
+SLOT="5"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+IUSE="appstream +calendar +fontconfig geolocation gps qalculate screencast 
+semantic-desktop systemd telemetry"
+
+REQUIRED_USE="gps? ( geolocation )"
+RESTRICT+=" test"
+
+BDEPEND="virtual/pkgconfig"
+COMMON_DEPEND="
+   >=dev-libs/wayland-1.15
+   >=dev-qt/qtdbus-${QTMIN}:5
+   >=dev-qt/qtdeclarative-${QTMIN}:5[widgets]
+   >=dev-qt/qtgui-${QTMIN}:5=[jpeg]
+   >=dev-qt/qtnetwork-${QTMIN}:5
+   >=dev-qt/qtsql-${QTMIN}:5
+   >=dev-qt/qtsvg-${QTMIN}:5
+   >=dev-qt/qtwayland-${QTMIN}:5
+   >=dev-qt/qtwidgets-${QTMIN}:5
+   >=dev-qt/qtx11extras-${QTMIN}:5
+   >=dev-qt/qtxml-${QTMIN}:5
+   >=kde-frameworks/kactivities-${KFMIN}:5
+   >=kde-frameworks/kactivities-stats-${KFMIN}:5
+   >=kde-frameworks/kaut

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2021-01-23 Thread Andreas Sturmlechner
commit: 22a2e16852a80b3a9a4a633fc0dbb853e41bdb9c
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Sat Jan 23 22:34:11 2021 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Sat Jan 23 22:45:36 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22a2e168

kde-plasma/plasma-workspace: Fix wake existing screensaver w/ keypress

Upstream commit 13057013d55ae19e76d29b9edc96510e52da2a7a

KDE-Bug: https://bugs.kde.org/show_bug.cgi?id=431286
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 ...20.5-fix-wake-screensaver-mode-w-keypress.patch |  67 +++
 .../plasma-workspace-5.20.5-r3.ebuild  | 208 +
 2 files changed, 275 insertions(+)

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.20.5-fix-wake-screensaver-mode-w-keypress.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.20.5-fix-wake-screensaver-mode-w-keypress.patch
new file mode 100644
index 000..8d2c0ddfbdb
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.20.5-fix-wake-screensaver-mode-w-keypress.patch
@@ -0,0 +1,67 @@
+From 13057013d55ae19e76d29b9edc96510e52da2a7a Mon Sep 17 00:00:00 2001
+From: David Edmundson 
+Date: Fri, 8 Jan 2021 12:40:07 +
+Subject: [PATCH] [lookandfeel] Fix wake existing screensaver mode with key
+ presses
+
+In commit 45e0a722fb85bb5d1ab8bef92080e934254b13aa we changed the focus
+on the textfield with the intention of fixing the cusor blinking.
+
+This had the unfortunate side effect of breaking waking out of the
+screensaver mode with just the keyboard.
+
+That screensaver mode was bound to:
+```
+property bool blockUI: mainBlock.mainPasswordBox.text.length > 0
+```
+for that to change, we need to have focus.
+
+Instead this patches cursor blinking more explicity.
+
+Doing it only in the lock screen (as opposed to the toolkit) makes sense
+as this only happens due to somewhat unusual usage inside the
+lockscreen.
+
+BUG: 431286
+
+
+(cherry picked from commit 2cbd7e4c70d0592d16cdaf58ed43effe4a716aa4)
+---
+ lookandfeel/contents/lockscreen/LockScreenUi.qml | 3 ---
+ lookandfeel/contents/lockscreen/MainBlock.qml| 6 ++
+ 2 files changed, 6 insertions(+), 3 deletions(-)
+
+diff --git a/lookandfeel/contents/lockscreen/LockScreenUi.qml 
b/lookandfeel/contents/lockscreen/LockScreenUi.qml
+index d2f8a2b7d..c4f9e8a45 100644
+--- a/lookandfeel/contents/lockscreen/LockScreenUi.qml
 b/lookandfeel/contents/lockscreen/LockScreenUi.qml
+@@ -229,9 +229,6 @@ PlasmaCore.ColorScope {
+ 
+ // this isn't implicit, otherwise items still get processed for 
the scenegraph
+ visible: opacity > 0
+-// changing enabled will toggle if an item can have activeFocus, 
which otherwise
+-//keeps the text cursor blinking even when invisble
+-enabled: visible
+ 
+ initialItem: MainBlock {
+ id: mainBlock
+diff --git a/lookandfeel/contents/lockscreen/MainBlock.qml 
b/lookandfeel/contents/lockscreen/MainBlock.qml
+index 4bd5df0e5..e8f5ced47 100644
+--- a/lookandfeel/contents/lockscreen/MainBlock.qml
 b/lookandfeel/contents/lockscreen/MainBlock.qml
+@@ -66,6 +66,12 @@ SessionManagementScreen {
+ enabled: !authenticator.graceLocked
+ revealPasswordButtonShown: true
+ 
++// In Qt this is implicitly active based on focus rather than 
visibility
++// in any other application having a focussed invisible object 
would be weird
++// but here we are using to wake out of screensaver mode
++// We need to explicitly disable cursor flashing to avoid 
unnecessary renders
++cursorVisible: visible
++
+ onAccepted: {
+ if (lockScreenUiVisible) {
+ startLogin();
+-- 
+GitLab
+

diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.20.5-r3.ebuild 
b/kde-plasma/plasma-workspace/plasma-workspace-5.20.5-r3.ebuild
new file mode 100644
index 000..09b187567c3
--- /dev/null
+++ b/kde-plasma/plasma-workspace/plasma-workspace-5.20.5-r3.ebuild
@@ -0,0 +1,208 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+ECM_HANDBOOK="forceoptional"
+ECM_TEST="forceoptional"
+KFMIN=5.74.0
+PVCUT=$(ver_cut 1-3)
+QTMIN=5.15.1
+VIRTUALX_REQUIRED="test"
+inherit ecm kde.org
+
+DESCRIPTION="KDE Plasma workspace"
+
+LICENSE="GPL-2" # TODO: CHECK
+SLOT="5"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+IUSE="appstream +calendar +fontconfig geolocation gps qalculate screencast 
+semantic-desktop systemd telemetry"
+
+REQUIRED_USE="gps? ( geolocation )"
+RESTRICT+=" test"
+
+BDEPEND="virtual/pkgconfig"
+COMMON_DEPEND="
+   >=dev-libs/wayland-1.15
+   >=dev-qt/qtdbus-${QTMIN}:5
+   >=dev-qt/qtdeclarative-${QTMIN}:5[widgets]
+   >=dev-qt/qtgui-${QTMIN}:5=[jpeg]
+   >=dev-qt/qtnetwork-${QT

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2021-01-15 Thread Andreas Sturmlechner
commit: dde7b805506c71a7e86e08ce4303b9764f5c1f87
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Fri Jan 15 18:24:47 2021 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Fri Jan 15 18:32:03 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dde7b805

kde-plasma/plasma-workspace: Fix runtime crashes and runaway process

KDE-Bug: https://bugs.kde.org/show_bug.cgi?id=347772
KDE-Bug: https://bugs.kde.org/show_bug.cgi?id=425711
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 ...ce-5.20.5-avoid-render-invisible-contents.patch |  38 
 ...kspace-5.20.5-fix-crash-on-screen-changes.patch |  63 +++
 .../plasma-workspace-5.20.5-r1.ebuild  | 206 +
 3 files changed, 307 insertions(+)

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.20.5-avoid-render-invisible-contents.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.20.5-avoid-render-invisible-contents.patch
new file mode 100644
index 000..effea7fdc8e
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.20.5-avoid-render-invisible-contents.patch
@@ -0,0 +1,38 @@
+From 45e0a722fb85bb5d1ab8bef92080e934254b13aa Mon Sep 17 00:00:00 2001
+From: David Edmundson 
+Date: Thu, 7 Jan 2021 13:36:29 +
+Subject: [PATCH] [lookandfeel] Avoid rendering invisible contents
+
+An opacity of 0 but still visible still results in nodes in the
+scenegraph, which is wasteful.  This is shown in gammaray with some
+warnings.
+
+Enabled is also bound to visible as if a text field has focus it still
+animates the cursor icon even if inivisble, producing wakeups.
+
+BUG: 347772
+FIXED-IN: 5.21
+---
+ lookandfeel/contents/lockscreen/LockScreenUi.qml | 6 ++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/lookandfeel/contents/lockscreen/LockScreenUi.qml 
b/lookandfeel/contents/lockscreen/LockScreenUi.qml
+index a2eba8e6d..83564fc0a 100644
+--- a/lookandfeel/contents/lockscreen/LockScreenUi.qml
 b/lookandfeel/contents/lockscreen/LockScreenUi.qml
+@@ -228,6 +228,12 @@ PlasmaCore.ColorScope {
+ height: lockScreenRoot.height + units.gridUnit * 3
+ focus: true //StackView is an implicit focus scope, so we need to 
give this focus so the item inside will have it
+ 
++// this isn't implicit, otherwise items still get processed for 
the scenegraph
++visible: opacity > 0
++// changing enabled will toggle if an item can have activeFocus, 
which otherwise
++//keeps the text cursor blinking even when invisble
++enabled: visible
++
+ initialItem: MainBlock {
+ id: mainBlock
+ lockScreenUiVisible: lockScreenRoot.uiVisible
+-- 
+GitLab
+

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.20.5-fix-crash-on-screen-changes.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.20.5-fix-crash-on-screen-changes.patch
new file mode 100644
index 000..58f3a50c491
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.20.5-fix-crash-on-screen-changes.patch
@@ -0,0 +1,63 @@
+From fa2bafea8f0cd9fac0864ac23f23c955d5f15b73 Mon Sep 17 00:00:00 2001
+From: David Edmundson 
+Date: Tue, 5 Jan 2021 23:57:19 +
+Subject: [PATCH] [panel] Fix crash on screen changes
+
+There is an error handling path when we fetch the relevant config()
+
+```
+KConfigGroup PanelView::panelConfig(...
+{
+if (!containment || !screen) {
+return KConfigGroup();
+}
+```
+
+which we indiscrimiately call parent() on.
+
+This patch guards that case, which is presumably screen being
+temporarily null.
+
+This code is also Plasma 5.8 compatibility fallback, so arguably we
+could get rid of it.
+
+BUG: 425711
+---
+ shell/panelview.cpp | 7 ---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
+diff --git a/shell/panelview.cpp b/shell/panelview.cpp
+index 28e86d2d3..991364e97 100644
+--- a/shell/panelview.cpp
 b/shell/panelview.cpp
+@@ -561,7 +561,8 @@ void PanelView::resizePanel()
+ 
+ void PanelView::restore()
+ {
+-if (!containment()) {
++KConfigGroup panelConfig = config();
++if (!panelConfig.isValid()) {
+ return;
+ }
+ 
+@@ -572,7 +573,7 @@ void PanelView::restore()
+ //but if fails read it from the resolution dependent one as
+ //the place for this config key is changed in Plasma 5.9
+ //Do NOT use readConfigValueWithFallBack
+-setAlignment((Qt::Alignment)config().parent().readEntry("alignment", 
config().readEntry("alignment", m_alignment)));
++
setAlignment((Qt::Alignment)panelConfig.parent().readEntry("alignment", 
panelConfig.readEntry("alignment", m_alignment)));
+ 
+ // All the other values are read from screen independent values,
+ // but fallback on the screen independent section, as is the only place
+@@ -599,7 +600,7 @@ void PanelView::restore()
+ //but if fails read it

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2020-10-04 Thread Andreas Sturmlechner
commit: e3bb321ee05ee82cfdb08e27c6c59240d38d2ef6
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Sun Oct  4 12:32:32 2020 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Sun Oct  4 15:54:08 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3bb321e

kde-plasma/plasma-workspace: Fix crash when scrolling on wallpaper

KDE-Bug: https://bugs.kde.org/show_bug.cgi?id=427106
Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 ...-5.19.5-guard-against-no-virtual-desktops.patch |  46 +
 .../plasma-workspace-5.19.5-r2.ebuild  | 224 +
 2 files changed, 270 insertions(+)

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.19.5-guard-against-no-virtual-desktops.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.19.5-guard-against-no-virtual-desktops.patch
new file mode 100644
index 000..21e33531590
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.19.5-guard-against-no-virtual-desktops.patch
@@ -0,0 +1,46 @@
+From 5cb38daedbfa5ef26a47d82d197c96230a004b0f Mon Sep 17 00:00:00 2001
+From: David Edmundson 
+Date: Wed, 30 Sep 2020 08:56:16 +
+Subject: [PATCH] [containmentactions] Guard against having no virtual desktops
+
+It can apparently happen that virtual desktops is empty at a given point
+in time. Potentially due to other bugs on the system.
+
+Calls to desktopIds.at(N) will fail.
+
+BUG: 427106
+
+
+(cherry picked from commit 2441c82a2a92535ccc0a9643715427eb362c98e8)
+---
+ containmentactions/switchdesktop/desktop.cpp | 7 +++
+ 1 file changed, 7 insertions(+)
+
+diff --git a/containmentactions/switchdesktop/desktop.cpp 
b/containmentactions/switchdesktop/desktop.cpp
+index 809543a49..dda78c584 100644
+--- a/containmentactions/switchdesktop/desktop.cpp
 b/containmentactions/switchdesktop/desktop.cpp
+@@ -85,6 +85,10 @@ void SwitchDesktop::switchTo()
+ void SwitchDesktop::performNextAction()
+ {
+ const QVariantList &desktopIds = m_virtualDesktopInfo->desktopIds();
++if (desktopIds.isEmpty()) {
++return;
++}
++
+ const QVariant ¤tDesktop = m_virtualDesktopInfo->currentDesktop();
+ const int currentDesktopIndex = desktopIds.indexOf(currentDesktop);
+ 
+@@ -100,6 +104,9 @@ void SwitchDesktop::performNextAction()
+ void SwitchDesktop::performPreviousAction()
+ {
+ const QVariantList &desktopIds = m_virtualDesktopInfo->desktopIds();
++if (desktopIds.isEmpty()) {
++return;
++}
+ const QVariant ¤tDesktop = m_virtualDesktopInfo->currentDesktop();
+ const int currentDesktopIndex = desktopIds.indexOf(currentDesktop);
+ 
+-- 
+GitLab
+

diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.19.5-r2.ebuild 
b/kde-plasma/plasma-workspace/plasma-workspace-5.19.5-r2.ebuild
new file mode 100644
index 000..54a55759142
--- /dev/null
+++ b/kde-plasma/plasma-workspace/plasma-workspace-5.19.5-r2.ebuild
@@ -0,0 +1,224 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+ECM_HANDBOOK="forceoptional"
+ECM_TEST="forceoptional"
+KFMIN=5.71.0
+PVCUT=$(ver_cut 1-3)
+QTMIN=5.14.2
+VIRTUALX_REQUIRED="test"
+inherit ecm kde.org
+
+DESCRIPTION="KDE Plasma workspace"
+
+LICENSE="GPL-2" # TODO: CHECK
+SLOT="5"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+IUSE="appstream +calendar geolocation gps qalculate qrcode +semantic-desktop 
systemd telemetry"
+
+REQUIRED_USE="gps? ( geolocation )"
+
+COMMON_DEPEND="
+   >=dev-qt/qtdbus-${QTMIN}:5
+   >=dev-qt/qtdeclarative-${QTMIN}:5[widgets]
+   >=dev-qt/qtgui-${QTMIN}:5[jpeg]
+   >=dev-qt/qtnetwork-${QTMIN}:5
+   >=dev-qt/qtsql-${QTMIN}:5
+   >=dev-qt/qtwidgets-${QTMIN}:5
+   >=dev-qt/qtx11extras-${QTMIN}:5
+   >=dev-qt/qtxml-${QTMIN}:5
+   >=kde-frameworks/kactivities-${KFMIN}:5
+   >=kde-frameworks/kactivities-stats-${KFMIN}:5
+   >=kde-frameworks/kauth-${KFMIN}:5
+   >=kde-frameworks/kbookmarks-${KFMIN}:5
+   >=kde-frameworks/kcompletion-${KFMIN}:5
+   >=kde-frameworks/kconfig-${KFMIN}:5
+   >=kde-frameworks/kconfigwidgets-${KFMIN}:5
+   >=kde-frameworks/kcoreaddons-${KFMIN}:5
+   >=kde-frameworks/kcrash-${KFMIN}:5
+   >=kde-frameworks/kdbusaddons-${KFMIN}:5
+   >=kde-frameworks/kdeclarative-${KFMIN}:5
+   >=kde-frameworks/kded-${KFMIN}:5
+   >=kde-frameworks/kdelibs4support-${KFMIN}:5
+   >=kde-frameworks/kglobalaccel-${KFMIN}:5
+   >=kde-frameworks/kguiaddons-${KFMIN}:5
+   >=kde-frameworks/ki18n-${KFMIN}:5
+   >=kde-frameworks/kiconthemes-${KFMIN}:5
+   >=kde-frameworks/kidletime-${KFMIN}:5
+   >=kde-frameworks/kio-${KFMIN}:5
+   >=kde-frameworks/kitemmodels-${KFMIN}:5
+   >=kde-frameworks/kitemviews-${KFMIN}:5
+   >=kde-frameworks/kjobwidgets-${KFMIN}:5
+   >=kde-frameworks/knewstuff-${KFMIN}:5
+   >=kde-frameworks/knotifications-${KF

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2020-07-28 Thread Andreas Sturmlechner
commit: 4aafa6d0e1b8ae09efdfa7a93129e3ce668948d7
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Tue Jul 28 15:30:14 2020 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Tue Jul 28 15:37:35 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4aafa6d0

kde-plasma/plasma-workspace: drop 5.19.3*

Signed-off-by: Andreas Sturmlechner  gentoo.org>

 kde-plasma/plasma-workspace/Manifest   |   1 -
 ...fix-broken-env-vars-for-detailed-settings.patch |  62 --
 .../plasma-workspace-5.19.3-r1.ebuild  | 222 -
 3 files changed, 285 deletions(-)

diff --git a/kde-plasma/plasma-workspace/Manifest 
b/kde-plasma/plasma-workspace/Manifest
index 0331710b8bd..514c4868ea7 100644
--- a/kde-plasma/plasma-workspace/Manifest
+++ b/kde-plasma/plasma-workspace/Manifest
@@ -1,3 +1,2 @@
 DIST plasma-workspace-5.18.5.tar.xz 5696256 BLAKE2B 
7aaf19ff75eb796bbd687e6c63b9703431ecc567bc52c2c173718d45b3946b22572b3a097f7fb7e9726cedcb98cfbb2f20c580efefa4d9cb9d4f2473abeac636
 SHA512 
870cf89649d9498831f4ef9b21d3c07504b7fc7b09b95dd7e0a1d356b41fbfceed1c4f27aa258bcf1e23cfe915d31701c155325fcd4944f9cc957a287ebc1ee2
-DIST plasma-workspace-5.19.3.tar.xz 5676896 BLAKE2B 
1ccd0f5be74056ed04eb368958847e9fa4bed92a295db62f6d48f2c0d0750fb3ced1f71c27be0052c0732e8aada7e6a2212cce20da500d5de8a4e8df78c9442a
 SHA512 
c29d3c674d197b25644200c11c602ac5b3ec2289d12e09139a404225c224a4da039db645b42ba0692588bd03c85fa7b11c2ff3c3cd4a07485cdac19a4dca0754
 DIST plasma-workspace-5.19.4.tar.xz 5677192 BLAKE2B 
5a336a85aaacc63965de4e63ad827363ba7f6aa1ec0ca84fa4cc1ed225ff577b9806c69ed683d05f4d1d10b890ddd45ea9692568aab4be5cfe93706d0a4a3428
 SHA512 
ee17e3fe80a643cbfecea9b0d261cc8dcdf263f87c4d4926703f20089ae9e937f9fe54fe1e9d6a5fe19bc1d564aa00090296c87be3dae68ee3edd5f0e75a3d0a

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.19.3-revert-fix-broken-env-vars-for-detailed-settings.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.19.3-revert-fix-broken-env-vars-for-detailed-settings.patch
deleted file mode 100644
index 44c29a2f091..000
--- 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.19.3-revert-fix-broken-env-vars-for-detailed-settings.patch
+++ /dev/null
@@ -1,62 +0,0 @@
-From 76028ecdbd9a060b375c1cc53c6ae9ab9276cb28 Mon Sep 17 00:00:00 2001
-From: Andreas Sturmlechner 
-Date: Thu, 9 Jul 2020 19:46:02 +0200
-Subject: [PATCH] Revert "Fix broken ENV variables for detailed settings"
-
-This reverts commit edc64d04a1e569d7032c41e6ee0ebf59833c26f2.

- startkde/startplasma.cpp | 31 ++-
- 1 file changed, 10 insertions(+), 21 deletions(-)
-
-diff --git a/startkde/startplasma.cpp b/startkde/startplasma.cpp
-index b2dba900d..a055d5635 100644
 a/startkde/startplasma.cpp
-+++ b/startkde/startplasma.cpp
-@@ -128,27 +128,11 @@ void runStartupConfig()
- KConfig config(QStringLiteral("plasma-localerc"));
- KConfigGroup formatsConfig = KConfigGroup(&config, "Formats");
- 
--// In case we don't have a value in the config file, but in the ENV 
variables, write it
--if (!formatsConfig.hasKey("LANG") && 
!qEnvironmentVariableIsEmpty("LANG")) {
--formatsConfig.writeEntry("LANG", qgetenv("LANG"));
--formatsConfig.sync();
--}
--
--const auto explicitLCValues = { "LANG", "LC_COLLATE", "LC_CTYPE" };
--const auto detailedLCValues = { "LC_NUMERIC", "LC_TIME", "LC_MONETARY", 
"LC_MEASUREMENT" };
--const QString lcLang =  formatsConfig.readEntry("LANG");
--const bool useDetailed = formatsConfig.readEntry("useDetailed", false);
--
--// These values have to explicitly set
--for (auto lc : explicitLCValues) {
--const QString value = formatsConfig.readEntry(lc);
--if (!value.isEmpty()) {
--qputenv(lc, value.toUtf8());
--}
--}
--// If we have the "Detailed Settings" checkbox unchecked we want to use 
the value from the LANG entry
--for (auto lc : detailedLCValues) {
--const QString value = useDetailed ? formatsConfig.readEntry(lc) : 
lcLang;
-+const auto lcValues = {
-+"LANG", "LC_NUMERIC", "LC_TIME", "LC_MONETARY", "LC_MEASUREMENT", 
"LC_COLLATE", "LC_CTYPE"
-+};
-+for (auto lc : lcValues) {
-+const QString value = formatsConfig.readEntry(lc, QString());
- if (!value.isEmpty()) {
- qputenv(lc, value.toUtf8());
- }
-@@ -159,6 +143,11 @@ void runStartupConfig()
- if (!value.isEmpty()) {
- qputenv("LANGUAGE", value.toUtf8());
- }
-+
-+if (!formatsConfig.hasKey("LANG") && 
!qEnvironmentVariableIsEmpty("LANG")) {
-+formatsConfig.writeEntry("LANG", qgetenv("LANG"));
-+formatsConfig.sync();
-+}
- }
- 
- void setupCursor(bool wayland)
--- 
-2.27.0
-

diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.19.3-r1.ebuild 
b/kde-plasma/plasma-workspace/plasma-workspace-5.19.3-r1.ebuild
deleted file mode 100644
index ca003e21c4

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2020-07-09 Thread Andreas Sturmlechner
commit: bcd69d48c62d56c48c5ac42d3c6026305b52f988
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Thu Jul  9 17:50:12 2020 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Thu Jul  9 17:51:30 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bcd69d48

kde-plasma/plasma-workspace: Fix Plasma overriding system locales

KDE-Bug: https://bugs.kde.org/show_bug.cgi?id=423995
See also: https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/100

Reported-by: Till Schäfer  uni-dortmund.de>
Closes: https://bugs.gentoo.org/731738
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 ...fix-broken-env-vars-for-detailed-settings.patch |  62 ++
 .../plasma-workspace-5.19.3-r1.ebuild  | 222 +
 2 files changed, 284 insertions(+)

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.19.3-revert-fix-broken-env-vars-for-detailed-settings.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.19.3-revert-fix-broken-env-vars-for-detailed-settings.patch
new file mode 100644
index 000..44c29a2f091
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.19.3-revert-fix-broken-env-vars-for-detailed-settings.patch
@@ -0,0 +1,62 @@
+From 76028ecdbd9a060b375c1cc53c6ae9ab9276cb28 Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner 
+Date: Thu, 9 Jul 2020 19:46:02 +0200
+Subject: [PATCH] Revert "Fix broken ENV variables for detailed settings"
+
+This reverts commit edc64d04a1e569d7032c41e6ee0ebf59833c26f2.
+---
+ startkde/startplasma.cpp | 31 ++-
+ 1 file changed, 10 insertions(+), 21 deletions(-)
+
+diff --git a/startkde/startplasma.cpp b/startkde/startplasma.cpp
+index b2dba900d..a055d5635 100644
+--- a/startkde/startplasma.cpp
 b/startkde/startplasma.cpp
+@@ -128,27 +128,11 @@ void runStartupConfig()
+ KConfig config(QStringLiteral("plasma-localerc"));
+ KConfigGroup formatsConfig = KConfigGroup(&config, "Formats");
+ 
+-// In case we don't have a value in the config file, but in the ENV 
variables, write it
+-if (!formatsConfig.hasKey("LANG") && 
!qEnvironmentVariableIsEmpty("LANG")) {
+-formatsConfig.writeEntry("LANG", qgetenv("LANG"));
+-formatsConfig.sync();
+-}
+-
+-const auto explicitLCValues = { "LANG", "LC_COLLATE", "LC_CTYPE" };
+-const auto detailedLCValues = { "LC_NUMERIC", "LC_TIME", "LC_MONETARY", 
"LC_MEASUREMENT" };
+-const QString lcLang =  formatsConfig.readEntry("LANG");
+-const bool useDetailed = formatsConfig.readEntry("useDetailed", false);
+-
+-// These values have to explicitly set
+-for (auto lc : explicitLCValues) {
+-const QString value = formatsConfig.readEntry(lc);
+-if (!value.isEmpty()) {
+-qputenv(lc, value.toUtf8());
+-}
+-}
+-// If we have the "Detailed Settings" checkbox unchecked we want to use 
the value from the LANG entry
+-for (auto lc : detailedLCValues) {
+-const QString value = useDetailed ? formatsConfig.readEntry(lc) : 
lcLang;
++const auto lcValues = {
++"LANG", "LC_NUMERIC", "LC_TIME", "LC_MONETARY", "LC_MEASUREMENT", 
"LC_COLLATE", "LC_CTYPE"
++};
++for (auto lc : lcValues) {
++const QString value = formatsConfig.readEntry(lc, QString());
+ if (!value.isEmpty()) {
+ qputenv(lc, value.toUtf8());
+ }
+@@ -159,6 +143,11 @@ void runStartupConfig()
+ if (!value.isEmpty()) {
+ qputenv("LANGUAGE", value.toUtf8());
+ }
++
++if (!formatsConfig.hasKey("LANG") && 
!qEnvironmentVariableIsEmpty("LANG")) {
++formatsConfig.writeEntry("LANG", qgetenv("LANG"));
++formatsConfig.sync();
++}
+ }
+ 
+ void setupCursor(bool wayland)
+-- 
+2.27.0
+

diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.19.3-r1.ebuild 
b/kde-plasma/plasma-workspace/plasma-workspace-5.19.3-r1.ebuild
new file mode 100644
index 000..2ffe458b17b
--- /dev/null
+++ b/kde-plasma/plasma-workspace/plasma-workspace-5.19.3-r1.ebuild
@@ -0,0 +1,222 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+ECM_HANDBOOK="forceoptional"
+ECM_TEST="forceoptional"
+KFMIN=5.71.0
+PVCUT=$(ver_cut 1-3)
+QTMIN=5.14.2
+VIRTUALX_REQUIRED="test"
+inherit ecm kde.org
+
+DESCRIPTION="KDE Plasma workspace"
+
+LICENSE="GPL-2" # TODO: CHECK
+SLOT="5"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+IUSE="appstream +calendar geolocation gps qalculate qrcode +semantic-desktop 
systemd telemetry"
+
+REQUIRED_USE="gps? ( geolocation )"
+
+COMMON_DEPEND="
+   >=dev-qt/qtdbus-${QTMIN}:5
+   >=dev-qt/qtdeclarative-${QTMIN}:5[widgets]
+   >=dev-qt/qtgui-${QTMIN}:5[jpeg]
+   >=dev-qt/qtnetwork-${QTMIN}:5
+   >=dev-qt/qtsql-${QTMIN}:5
+   >=dev-qt/qtwidgets-${QTMIN}:5
+   >=dev-qt/qtx11extras-${QTMIN}:5
+   >=dev-qt/qtxml-${QTMIN}:5
+ 

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2020-06-23 Thread Andreas Sturmlechner
commit: ea5a3c2e6e5933a8fbf6e0ad5212a78d69aca65f
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Sun Jun 21 21:09:08 2020 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Tue Jun 23 13:48:43 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea5a3c2e

kde-plasma/plasma-workspace: systray [2/4]: Fix unreadable text w/ Breeze Dark

See also: https://mail.kde.org/pipermail/distributions/2020-June/000368.html
KDE-Bug: https://bugs.kde.org/show_bug.cgi?id=422684

Upstream commit faef126255222f727219bf69ac2b89857dc61ab2
"Port applets to use PlasmaExtras.PlaceholderMessage"

Package-Manager: Portage-2.3.101, Repoman-2.3.22
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 19.2-use-PlasmaExtras.PlaceholderMessage.patch | 44 ++
 .../plasma-workspace-5.19.2.ebuild |  5 ++-
 2 files changed, 48 insertions(+), 1 deletion(-)

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.19.2-use-PlasmaExtras.PlaceholderMessage.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.19.2-use-PlasmaExtras.PlaceholderMessage.patch
new file mode 100644
index 000..527e199cc66
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.19.2-use-PlasmaExtras.PlaceholderMessage.patch
@@ -0,0 +1,44 @@
+From faef126255222f727219bf69ac2b89857dc61ab2 Mon Sep 17 00:00:00 2001
+From: Nate Graham 
+Date: Sun, 14 Jun 2020 09:08:21 -0600
+Subject: [PATCH] Port applets to use PlasmaExtras.PlaceholderMessage
+
+The Kirigami version uses QQC2 elements which don't respect the plasma
+theme and color scheme, leading to thing slooking out of place
+especially when using a dark color theme or scheme.
+
+Depends on 
https://invent.kde.org/frameworks/plasma-framework/-/merge_requests/13
+---
+ applets/clipboard/contents/ui/Menu.qml  | 2 +-
+ .../notifications/package/contents/ui/FullRepresentation.qml| 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/applets/clipboard/contents/ui/Menu.qml 
b/applets/clipboard/contents/ui/Menu.qml
+index 0bd6064a5..cac8380db 100644
+--- a/applets/clipboard/contents/ui/Menu.qml
 b/applets/clipboard/contents/ui/Menu.qml
+@@ -55,7 +55,7 @@ PlasmaExtras.ScrollArea {
+ onAction: menu.action(uuid)
+ }
+ 
+-Kirigami.PlaceholderMessage {
++PlasmaExtras.PlaceholderMessage {
+ id: emptyHint
+ 
+ anchors.centerIn: parent
+diff --git a/applets/notifications/package/contents/ui/FullRepresentation.qml 
b/applets/notifications/package/contents/ui/FullRepresentation.qml
+index b34dee7af..989cb4341 100644
+--- a/applets/notifications/package/contents/ui/FullRepresentation.qml
 b/applets/notifications/package/contents/ui/FullRepresentation.qml
+@@ -585,7 +585,7 @@ PlasmaComponents3.Page {
+ }
+ }
+ 
+-Kirigami.PlaceholderMessage {
++PlasmaExtras.PlaceholderMessage {
+ anchors.centerIn: parent
+ width: parent.width - (units.largeSpacing * 4)
+ 
+-- 
+2.27.0
+

diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.19.2.ebuild 
b/kde-plasma/plasma-workspace/plasma-workspace-5.19.2.ebuild
index c14dfc3f196..f7116713959 100644
--- a/kde-plasma/plasma-workspace/plasma-workspace-5.19.2.ebuild
+++ b/kde-plasma/plasma-workspace/plasma-workspace-5.19.2.ebuild
@@ -123,7 +123,10 @@ PDEPEND="
>=kde-plasma/kde-cli-tools-${PVCUT}:5
 "
 
-PATCHES=( "${FILESDIR}/${PN}-5.14.2-split-libkworkspace.patch" )
+PATCHES=(
+   "${FILESDIR}/${PN}-5.14.2-split-libkworkspace.patch"
+   "${FILESDIR}/${PN}-5.19.2-use-PlasmaExtras.PlaceholderMessage.patch" # 
KDE-Bug #422684
+)
 
 RESTRICT+=" test"
 



[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2020-05-16 Thread Andreas Sturmlechner
commit: 0d9c0dab16aff448056e4f3d7ec914ded2d0a6ca
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Sat May 16 19:43:30 2020 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Sat May 16 22:38:07 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d9c0dab

kde-plasma/plasma-workspace: Fix animation duration w/ KF-5.70

See also:
https://mail.kde.org/pipermail/distributions/2020-May/000361.html
https://pointieststick.com/2020/05/10/why-the-animations-in-your-plasma-5-18-feel-slow-now-and-when-it-will-be-fixed/

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 ...e-5.18.5-stop-multiplying-duration-values.patch |  93 +
 .../plasma-workspace-5.18.5-r1.ebuild  | 225 +
 2 files changed, 318 insertions(+)

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.18.5-stop-multiplying-duration-values.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.18.5-stop-multiplying-duration-values.patch
new file mode 100644
index 000..83539c14c04
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.18.5-stop-multiplying-duration-values.patch
@@ -0,0 +1,93 @@
+From 2958702524348e9e4fcbdf490be731e92b353dad Mon Sep 17 00:00:00 2001
+From: Nate Graham 
+Date: Tue, 24 Mar 2020 08:10:54 -0600
+Subject: Stop multiplying duration values
+
+Summary:
+After D28144, some animations are now too long because they were 
inappropriately
+multiplying a duration value. That's no longer necessary, so let's remove the
+multiplication.
+
+Depends on D28144
+
+Test Plan: Various things that were a bit too slow before feel just right now
+
+Reviewers: #vdg, #plasma, cblack
+
+Reviewed By: #vdg, #plasma, cblack
+
+Subscribers: cblack, plasma-devel
+
+Tags: #plasma
+
+Differential Revision: https://phabricator.kde.org/D28238
+---
+ applets/devicenotifier/package/contents/ui/FullRepresentation.qml | 2 +-
+ applets/systemtray/package/contents/ui/ExpanderArrow.qml  | 2 +-
+ lookandfeel/contents/components/ActionButton.qml  | 4 ++--
+ lookandfeel/contents/components/UserDelegate.qml  | 2 +-
+ 4 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/applets/devicenotifier/package/contents/ui/FullRepresentation.qml 
b/applets/devicenotifier/package/contents/ui/FullRepresentation.qml
+index d15e47c..80b9c73 100644
+--- a/applets/devicenotifier/package/contents/ui/FullRepresentation.qml
 b/applets/devicenotifier/package/contents/ui/FullRepresentation.qml
+@@ -225,7 +225,7 @@ MouseArea {
+ popupIconTimer.restart()
+ }
+ }
+-Behavior on height { NumberAnimation { duration: 
units.shortDuration * 3 } }
++Behavior on height { NumberAnimation { duration: 
units.shortDuration } }
+ }
+ }
+ }
+diff --git a/applets/systemtray/package/contents/ui/ExpanderArrow.qml 
b/applets/systemtray/package/contents/ui/ExpanderArrow.qml
+index 9baf654..729f56b 100644
+--- a/applets/systemtray/package/contents/ui/ExpanderArrow.qml
 b/applets/systemtray/package/contents/ui/ExpanderArrow.qml
+@@ -37,7 +37,7 @@ PlasmaCore.ToolTipArea {
+ anchors.fill: parent
+ onClicked: root.expanded = !root.expanded
+ 
+-readonly property int arrowAnimationDuration: units.shortDuration * 3
++readonly property int arrowAnimationDuration: units.shortDuration
+ 
+ PlasmaCore.Svg {
+ id: arrowSvg
+diff --git a/lookandfeel/contents/components/ActionButton.qml 
b/lookandfeel/contents/components/ActionButton.qml
+index 9fbd2a8..7a66c56 100644
+--- a/lookandfeel/contents/components/ActionButton.qml
 b/lookandfeel/contents/components/ActionButton.qml
+@@ -44,7 +44,7 @@ Item {
+ opacity: activeFocus || containsMouse ? 1 : 0.85
+ Behavior on opacity {
+ PropertyAnimation { // OpacityAnimator makes it turn black at 
random intervals
+-duration: units.longDuration * 2
++duration: units.longDuration
+ easing.type: Easing.InOutQuad
+ }
+ }
+@@ -59,7 +59,7 @@ Item {
+ opacity: activeFocus || containsMouse ? (softwareRendering ? 0.8 : 
0.15) : (softwareRendering ? 0.6 : 0)
+ Behavior on opacity {
+ PropertyAnimation { // OpacityAnimator makes it turn black at 
random intervals
+-duration: units.longDuration * 3
++duration: units.longDuration
+ easing.type: Easing.InOutQuad
+ }
+ }
+diff --git a/lookandfeel/contents/components/UserDelegate.qml 
b/lookandfeel/contents/components/UserDelegate.qml
+index 8882e39..cdb55f1 100644
+--- a/lookandfeel/contents/components/UserDelegate.qml
 b/lookandfeel/contents/components/UserDelegate.qml
+@@ -72,7 +72,7 @@ Item {
+ Behavior on width { 
+ PropertyAnimation {
+

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2020-05-16 Thread Andreas Sturmlechner
commit: 6692de0e20892106db8051807d05ab6168bd17f3
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Sat May 16 19:50:45 2020 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Sat May 16 22:38:07 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6692de0e

kde-plasma/plasma-workspace: sddm-theme: Prevent logo from leaking in

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 ...ce-5.18.5-sddm-theme-prevent-logo-leaking.patch | 94 ++
 .../plasma-workspace-5.18.5-r1.ebuild  |  2 +
 2 files changed, 96 insertions(+)

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.18.5-sddm-theme-prevent-logo-leaking.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.18.5-sddm-theme-prevent-logo-leaking.patch
new file mode 100644
index 000..7cbe139a166
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.18.5-sddm-theme-prevent-logo-leaking.patch
@@ -0,0 +1,94 @@
+From 68601675d13bdf44248991a56e888093e58c56c3 Mon Sep 17 00:00:00 2001
+From: Filip Fila 
+Date: Wed, 13 May 2020 18:08:27 +0200
+Subject: [sddm-theme] Prevent the logo from leaking in after a fadeout
+
+Summary:
+Even when the vendor logo is turned off it can be briefly seen when the login 
screen changes from the fadeout state back into normal.
+
+Comments in other code say that "OpacityAnimator when starting from 0 is buggy 
(it shows one frame with opacity 1)" so this patch replaces it with 
NumberAnimation.
+
+There's also a minor fix included - placing the drop shadow sooner in the 
hierarchy because it should be drawn underneath an object, not in front of it.
+
+Test Plan:
+Reduce the fadeout time to something small and then:
+
+`sddm-greeter --test-mode --theme /usr/share/sddm/themes/breeze`
+
+Reviewers: ngraham, cblack, #plasma, mart
+
+Reviewed By: ngraham, #plasma, mart
+
+Subscribers: mart, plasma-devel
+
+Tags: #plasma
+
+Differential Revision: https://phabricator.kde.org/D29351
+---
+ sddm-theme/Main.qml | 44 +++-
+ 1 file changed, 23 insertions(+), 21 deletions(-)
+
+diff --git a/sddm-theme/Main.qml b/sddm-theme/Main.qml
+index 6746238..9910e7f 100644
+--- a/sddm-theme/Main.qml
 b/sddm-theme/Main.qml
+@@ -411,26 +411,6 @@ PlasmaCore.ColorScope {
+ }
+ }
+ 
+-Image {
+-id: logo
+-visible: config.showlogo == "shown"
+-source: config.logo
+-anchors.horizontalCenter: parent.horizontalCenter
+-anchors.bottom: footer.top
+-anchors.bottomMargin: units.largeSpacing
+-asynchronous: true
+-sourceSize.height: height
+-opacity: loginScreenRoot.uiVisible ? 0 : 1
+-fillMode: Image.PreserveAspectFit
+-height: Math.round(units.gridUnit * 3.5)
+-Behavior on opacity {
+-OpacityAnimator {
+-duration: units.longDuration
+-easing.type: Easing.InOutQuad
+-}
+-}
+-}
+-
+ DropShadow {
+ id: logoShadow
+ anchors.fill: logo
+@@ -444,7 +424,29 @@ PlasmaCore.ColorScope {
+ color: "black" // matches Breeze window decoration and 
desktopcontainment
+ opacity: loginScreenRoot.uiVisible ? 0 : 1
+ Behavior on opacity {
+-OpacityAnimator {
++//OpacityAnimator when starting from 0 is buggy (it shows one 
frame with opacity 1)"
++NumberAnimation {
++duration: units.longDuration
++easing.type: Easing.InOutQuad
++}
++}
++}
++
++Image {
++id: logo
++visible: config.showlogo == "shown"
++source: config.logo
++anchors.horizontalCenter: parent.horizontalCenter
++anchors.bottom: footer.top
++anchors.bottomMargin: units.largeSpacing
++asynchronous: true
++sourceSize.height: height
++opacity: loginScreenRoot.uiVisible ? 0 : 1
++fillMode: Image.PreserveAspectFit
++height: Math.round(units.gridUnit * 3.5)
++Behavior on opacity {
++// OpacityAnimator when starting from 0 is buggy (it shows 
one frame with opacity 1)"
++NumberAnimation {
+ duration: units.longDuration
+ easing.type: Easing.InOutQuad
+ }
+-- 
+cgit v1.1

diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.18.5-r1.ebuild 
b/kde-plasma/plasma-workspace/plasma-workspace-5.18.5-r1.ebuild
index 269e6a9c564..4662a7858bf 100644
--- a/kde-plasma/plasma-workspace/plasma-workspace-5.18.5-r1.ebuild
+++ b/kde-plasma/plasma-workspace/plasma-workspace-5.18.5-r1.ebuild
@@ -127,6 +127,8 @@ PDEPEND="
 PATCHES=(
"${FILES

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2020-01-21 Thread Andreas Sturmlechner
commit: 3c5f2ec718dce2b835077dd5782548cc489c62f5
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Tue Jan 21 15:40:04 2020 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Tue Jan 21 15:50:17 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c5f2ec7

kde-plasma/plasma-workspace: Also disable automatic scaling on Qt>=5.14

KDE-Bug: https://bugs.kde.org/show_bug.cgi?id=415421
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 ...ace-5.17.5-disable-autoscaling-on-qt-5.14.patch |  47 +
 .../plasma-workspace-5.17.5-r1.ebuild  | 220 +
 2 files changed, 267 insertions(+)

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.17.5-disable-autoscaling-on-qt-5.14.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.17.5-disable-autoscaling-on-qt-5.14.patch
new file mode 100644
index 000..114e653df8e
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.17.5-disable-autoscaling-on-qt-5.14.patch
@@ -0,0 +1,47 @@
+From ea66bff2af8466f2bb5acafcc43ac8f79b1f447f Mon Sep 17 00:00:00 2001
+From: Fabian Vogt 
+Date: Tue, 21 Jan 2020 11:55:49 +0100
+Subject: Also disable automatic scaling on Qt >= 5.14
+
+Summary:
+Applications which set `Qt::AA_EnableHighDpiScaling` use the DPI of the 
monitor the window is on to calculate an additional scaling factor.
+Plasma sets `QT_SCREEN_SCALE_FACTORS` in the environment for manual 
specification of per-monitor scale, which combined with the automatic scaling 
may result in double scaling.
+To disable the automatic scaling, `QT_AUTO_SCREEN_SCALE_FACTOR=0` has to be 
set, even on Qt 5.14.
+
+As a side effect, this works around QTBUG-80967 as well.
+
+BUG: 415421
+
+Test Plan: On X11, with a >144dpi monitor and a scaling factor of 2 set 
manually, scaling was doubled previously. Now it works as expected.
+
+Reviewers: #plasma, apol, davidedmundson, fvogt
+
+Reviewed By: #plasma, davidedmundson, fvogt
+
+Subscribers: acooligan, fvogt, asturmlechner, dfaure, davidedmundson, 
anthonyfieroni, plasma-devel
+
+Tags: #plasma
+
+Differential Revision: https://phabricator.kde.org/D26185
+---
+ startkde/startplasma.cpp | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/startkde/startplasma.cpp b/startkde/startplasma.cpp
+index 8d88587..4a89878 100644
+--- a/startkde/startplasma.cpp
 b/startkde/startplasma.cpp
+@@ -222,11 +222,9 @@ void runEnvironmentScripts()
+ 
+ void setupPlasmaEnvironment()
+ {
+-#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
+ //Manually disable auto scaling because we are scaling above
+ //otherwise apps that manually opt in for high DPI get auto scaled by the 
developer AND manually scaled by us
+ qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "0");
+-#endif
+ 
+ qputenv("KDE_FULL_SESSION", "true");
+ qputenv("KDE_SESSION_VERSION", "5");
+-- 
+cgit v1.1

diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.17.5-r1.ebuild 
b/kde-plasma/plasma-workspace/plasma-workspace-5.17.5-r1.ebuild
new file mode 100644
index 000..157832caae9
--- /dev/null
+++ b/kde-plasma/plasma-workspace/plasma-workspace-5.17.5-r1.ebuild
@@ -0,0 +1,220 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+ECM_HANDBOOK="forceoptional"
+ECM_TEST="forceoptional"
+KFMIN=5.64.0
+PVCUT=$(ver_cut 1-3)
+QTMIN=5.12.3
+VIRTUALX_REQUIRED="test"
+inherit ecm kde.org
+
+DESCRIPTION="KDE Plasma workspace"
+
+LICENSE="GPL-2" # TODO: CHECK
+SLOT="5"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE="appstream +calendar geolocation gps qalculate qrcode +semantic-desktop 
systemd"
+
+REQUIRED_USE="gps? ( geolocation )"
+
+# drop qtgui subslot operator when QT_MINIMAL >= 5.14.0
+COMMON_DEPEND="
+   >=dev-qt/qtdbus-${QTMIN}:5
+   >=dev-qt/qtdeclarative-${QTMIN}:5[widgets]
+   >=dev-qt/qtgui-${QTMIN}:5=[jpeg]
+   >=dev-qt/qtnetwork-${QTMIN}:5
+   >=dev-qt/qtsql-${QTMIN}:5
+   >=dev-qt/qtwidgets-${QTMIN}:5
+   >=dev-qt/qtx11extras-${QTMIN}:5
+   >=dev-qt/qtxml-${QTMIN}:5
+   >=kde-frameworks/kactivities-${KFMIN}:5
+   >=kde-frameworks/kactivities-stats-${KFMIN}:5
+   >=kde-frameworks/kauth-${KFMIN}:5
+   >=kde-frameworks/kbookmarks-${KFMIN}:5
+   >=kde-frameworks/kcompletion-${KFMIN}:5
+   >=kde-frameworks/kconfig-${KFMIN}:5
+   >=kde-frameworks/kconfigwidgets-${KFMIN}:5
+   >=kde-frameworks/kcoreaddons-${KFMIN}:5
+   >=kde-frameworks/kcrash-${KFMIN}:5
+   >=kde-frameworks/kdbusaddons-${KFMIN}:5
+   >=kde-frameworks/kdeclarative-${KFMIN}:5
+   >=kde-frameworks/kded-${KFMIN}:5
+   >=kde-frameworks/kdelibs4support-${KFMIN}:5
+   >=kde-frameworks/kglobalaccel-${KFMIN}:5
+   >=kde-frameworks/kguiaddons-${KFMIN}:5
+   >=kde-frameworks/ki18n-${KFMIN}:5
+   >=kde-frameworks/kiconthemes-${KFMIN}:5
+   >=kde-frameworks/kidletime-${KFMIN}:5
+   >=kde-

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2019-07-20 Thread Andreas Sturmlechner
commit: 7fa0e743a95e1816d766dceb9430d13c7d70bcd6
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Sat Jul 20 20:07:13 2019 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Sat Jul 20 22:05:46 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7fa0e743

kde-plasma/plasma-workspace: Rename Xorg session

To make it distinguishable from Wayland session regardless of DM hacks.
SDDM hack can be dropped any time, both changes are still pending upstreams.

Closes: https://bugs.gentoo.org/689120
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 .../plasma-workspace-5.16.3-x11sessionrename.patch | 91 ++
 .../plasma-workspace-5.16.3.ebuild |  1 +
 2 files changed, 92 insertions(+)

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.16.3-x11sessionrename.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.16.3-x11sessionrename.patch
new file mode 100644
index 000..a851f5f54b8
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.16.3-x11sessionrename.patch
@@ -0,0 +1,91 @@
+From bcabb38b1f07a52847752fb54eb61696a1312a61 Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner 
+Date: Tue, 2 Jul 2019 10:13:54 +0200
+Subject: [PATCH] Fix Name conflict between plasma.desktop and
+ plasmawayland.desktop
+
+Summary:
+SDDM as of 0.18.1 appends " (Wayland)" to the Name of any session file it
+finds in wayland-sessions dir, and Plasma is relying on that behaviour to
+distinguish between its X11 and Wayland sessions. This leads to duplicate
+"Plasma" entries on any other DM not applying the same hack, e.g. lightdm,
+and users are lost without downstream patching.
+
+Instead of waiting for which of (SDDM, Plasma) is doing something about
+it first, renaming X11 session to "Plasma on Xorg" appears to be the most
+elegant solution out of the deadlock. SDDM can be fixed any time later.
+
+CCBUG: https://bugs.kde.org/show_bug.cgi?id=368409
+See also: https://github.com/sddm/sddm/pull/997
+
+Reviewers: #plasma
+
+Subscribers: plasma-devel
+
+Tags: #plasma
+
+Differential Revision: https://phabricator.kde.org/D22210
+---
+ plasma.desktop.cmake | 46 +
+ 1 file changed, 1 insertion(+), 45 deletions(-)
+
+diff --git a/plasma.desktop.cmake b/plasma.desktop.cmake
+index 4d361606d..099de2908 100644
+--- a/plasma.desktop.cmake
 b/plasma.desktop.cmake
+@@ -3,51 +3,7 @@ Type=XSession
+ Exec=${CMAKE_INSTALL_FULL_BINDIR}/startplasma-x11
+ TryExec=${CMAKE_INSTALL_FULL_BINDIR}/startplasma-x11
+ DesktopNames=KDE
+-Name=Plasma
+-Name[ar]=بلازما
+-Name[bs]=Plazma
+-Name[ca]=Plasma
+-Name[ca@valencia]=Plasma
+-Name[cs]=Plasma
+-Name[da]=Plasma
+-Name[de]=Plasma
+-Name[el]=Plasma
+-Name[en_GB]=Plasma
+-Name[es]=Plasma
+-Name[et]=Plasma
+-Name[eu]=Plasma
+-Name[fi]=Plasma
+-Name[fr]=Plasma
+-Name[gl]=Plasma
+-Name[he]=פלזמה
+-Name[hu]=Plasma
+-Name[id]=Plasma
+-Name[is]=Plasma
+-Name[it]=Plasma
+-Name[ja]=プラズマ
+-Name[ko]=Plasma
+-Name[lt]=Plasma
+-Name[nb]=Plasma
+-Name[nds]=Plasma
+-Name[nl]=Plasma
+-Name[nn]=Plasma
+-Name[pa]=ਪਲਾਜ਼ਮਾ
+-Name[pl]=Plazma
+-Name[pt]=Plasma
+-Name[pt_BR]=Plasma
+-Name[ru]=Plasma
+-Name[sk]=Plasma
+-Name[sl]=Plasma
+-Name[sr]=Плазма
+-Name[sr@ijekavian]=Плазма
+-Name[sr@ijekavianlatin]=Plasma
+-Name[sr@latin]=Plasma
+-Name[sv]=Plasma
+-Name[tr]=Plama
+-Name[uk]=Плазма
+-Name[x-test]=xxPlasmaxx
+-Name[zh_CN]=Plasma
+-Name[zh_TW]=Plasma
++Name=Plasma on Xorg
+ Comment=Plasma by KDE
+ Comment[ar]=بلازما كدي
+ Comment[bs]=Plazma od strane KDe
+-- 
+2.22.0
+

diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.16.3.ebuild 
b/kde-plasma/plasma-workspace/plasma-workspace-5.16.3.ebuild
index 5fbd5a4e8ad..80931e5994e 100644
--- a/kde-plasma/plasma-workspace/plasma-workspace-5.16.3.ebuild
+++ b/kde-plasma/plasma-workspace/plasma-workspace-5.16.3.ebuild
@@ -118,6 +118,7 @@ PATCHES=(
"${FILESDIR}/${PN}-5.14.80-startkde-script.patch"
"${FILESDIR}/${PN}-5.10-startplasmacompositor-script.patch"
"${FILESDIR}/${PN}-5.14.2-split-libkworkspace.patch"
+   "${FILESDIR}/${PN}-5.16.3-x11sessionrename.patch"
 )
 
 RESTRICT+=" test"



[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2018-09-11 Thread Andreas Sturmlechner
commit: 1e10a827bb558a47393dc8d4f7b36b925e3a1c10
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Tue Sep 11 17:31:07 2018 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Tue Sep 11 17:31:32 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e10a827

kde-plasma/plasma-workspace: MPRIS - change int to double for positions

Package-Manager: Portage-2.3.49, Repoman-2.3.10

 .../plasma-workspace-5.13.5-double-positions.patch |  31 
 .../plasma-workspace-5.13.5-r1.ebuild  | 174 +
 2 files changed, 205 insertions(+)

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.13.5-double-positions.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.13.5-double-positions.patch
new file mode 100644
index 000..0c294af670a
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.13.5-double-positions.patch
@@ -0,0 +1,31 @@
+From 1bb02b98cfedfd6b51ac8de0c34a5778659433f7 Mon Sep 17 00:00:00 2001
+From: Arsen Arsen 
+Date: Thu, 6 Sep 2018 10:29:09 +0200
+Subject: [Media Player] Change int to double for positions
+
+In previous versions of Plasma, media player had an overflow bug in positions, 
leading to the player resetting to 00:00.
+This only affects files longer than around 33 minutes 20 seconds.
+
+BUG: 397591
+FIXED-IN: 5.12.7
+
+Differential Revision: https://phabricator.kde.org/D15311
+---
+ applets/mediacontroller/contents/ui/ExpandedRepresentation.qml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/applets/mediacontroller/contents/ui/ExpandedRepresentation.qml 
b/applets/mediacontroller/contents/ui/ExpandedRepresentation.qml
+index 2922f99..904fe49 100644
+--- a/applets/mediacontroller/contents/ui/ExpandedRepresentation.qml
 b/applets/mediacontroller/contents/ui/ExpandedRepresentation.qml
+@@ -35,7 +35,7 @@ Item {
+ 
+ readonly property int controlSize: Math.min(height, width) / 4
+ 
+-property int position: mpris2Source.currentData.Position || 0
++property double position: mpris2Source.currentData.Position || 0
+ readonly property real rate: mpris2Source.currentData.Rate || 1
+ readonly property double length: currentMetadata ? 
currentMetadata["mpris:length"] || 0 : 0
+ 
+-- 
+cgit v0.11.2

diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.13.5-r1.ebuild 
b/kde-plasma/plasma-workspace/plasma-workspace-5.13.5-r1.ebuild
new file mode 100644
index 000..eed111285bb
--- /dev/null
+++ b/kde-plasma/plasma-workspace/plasma-workspace-5.13.5-r1.ebuild
@@ -0,0 +1,174 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KDE_HANDBOOK="forceoptional"
+KDE_TEST="forceoptional"
+VIRTUALX_REQUIRED="test"
+inherit kde5 qmake-utils
+
+DESCRIPTION="KDE Plasma workspace"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE="appstream +calendar geolocation gps prison qalculate +semantic-desktop 
systemd"
+
+REQUIRED_USE="gps? ( geolocation )"
+
+COMMON_DEPEND="
+   $(add_frameworks_dep kactivities)
+   $(add_frameworks_dep kauth)
+   $(add_frameworks_dep kbookmarks)
+   $(add_frameworks_dep kcompletion)
+   $(add_frameworks_dep kconfig)
+   $(add_frameworks_dep kconfigwidgets)
+   $(add_frameworks_dep kcoreaddons)
+   $(add_frameworks_dep kcrash)
+   $(add_frameworks_dep kdbusaddons)
+   $(add_frameworks_dep kdeclarative)
+   $(add_frameworks_dep kdelibs4support)
+   $(add_frameworks_dep kglobalaccel)
+   $(add_frameworks_dep kguiaddons)
+   $(add_frameworks_dep ki18n)
+   $(add_frameworks_dep kiconthemes)
+   $(add_frameworks_dep kidletime)
+   $(add_frameworks_dep kio)
+   $(add_frameworks_dep kitemmodels)
+   $(add_frameworks_dep kitemviews)
+   $(add_frameworks_dep kjobwidgets)
+   $(add_frameworks_dep kjs)
+   $(add_frameworks_dep kjsembed)
+   $(add_frameworks_dep knewstuff)
+   $(add_frameworks_dep knotifications)
+   $(add_frameworks_dep knotifyconfig)
+   $(add_frameworks_dep kpackage)
+   $(add_frameworks_dep krunner)
+   $(add_frameworks_dep kservice)
+   $(add_frameworks_dep ktexteditor)
+   $(add_frameworks_dep ktextwidgets)
+   $(add_frameworks_dep kwallet)
+   $(add_frameworks_dep kwayland)
+   $(add_frameworks_dep kwidgetsaddons)
+   $(add_frameworks_dep kwindowsystem)
+   $(add_frameworks_dep kxmlgui)
+   $(add_frameworks_dep plasma)
+   $(add_frameworks_dep solid)
+   $(add_plasma_dep kscreenlocker)
+   $(add_plasma_dep kwin)
+   $(add_plasma_dep libksysguard)
+   $(add_qt_dep qtdbus)
+   $(add_qt_dep qtdeclarative 'widgets')
+   $(add_qt_dep qtgui 'jpeg')
+   $(add_qt_dep qtnetwork)
+   $(add_qt_dep qtscript)
+   $(add_qt_dep qtsql)
+   $(add_qt_dep qtwidgets)
+   $(add_qt_dep qtx11extras)
+   $(add_qt_dep qtxml)
+   media-libs/phonon[qt5(+)]
+   sys-li

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2018-04-11 Thread Andreas Sturmlechner
commit: f1b097e71432eeacb0d7b38a0e65c8f7da3b4227
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Wed Apr 11 19:57:21 2018 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Wed Apr 11 20:04:17 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1b097e7

kde-plasma/plasma-workspace: Fix bbc weather dataengine

See also:
https://mail.kde.org/pipermail/kde-distro-packagers/2018-March/000311.html

Package-Manager: Portage-2.3.28, Repoman-2.3.9

 .../plasma-workspace-5.12.4-bbc-weather.patch  | 174 +
 .../plasma-workspace-5.12.4-r1.ebuild  | 174 +
 2 files changed, 348 insertions(+)

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.12.4-bbc-weather.patch 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.12.4-bbc-weather.patch
new file mode 100644
index 000..829a50477d8
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.12.4-bbc-weather.patch
@@ -0,0 +1,174 @@
+From 558a29efc4c9f055799d23ee6c75464e24489e5a Mon Sep 17 00:00:00 2001
+From: "Friedrich W. H. Kossebau" 
+Date: Fri, 30 Mar 2018 17:10:32 +0200
+Subject: [weather dataengine] Fix BBC provider to adapt to change RSS feed
+
+Summary:
+The urls of the BBC weather feeds seem to have changed, resulting in the
+dataengine to use no longer existing urls.
+
+I could not find the change documented somewhere and also do not know about
+a contact person with BBC, so done based on examples on website, trial &
+error.
+There are some data issues visible in the new data feeds, so chance is the
+feeds might see more rework and might break things again. But without any
+contract or formal agreement we can just play catch-up.
+
+BUG: 392510
+
+Test Plan:
+Existing configured weather applets using a location from a BBC weather
+service work again.
+Newly configured weather applets using a BBC weather service also work.
+
+Reviewers: #plasma, jriddell, cfeck
+
+Reviewed By: cfeck
+
+Subscribers: cfeck, plasma-devel
+
+Tags: #plasma
+
+Differential Revision: https://phabricator.kde.org/D11808
+---
+ dataengines/weather/ions/bbcukmet/ion_bbcukmet.cpp | 47 +-
+ dataengines/weather/ions/bbcukmet/ion_bbcukmet.h   |  4 +-
+ 2 files changed, 31 insertions(+), 20 deletions(-)
+
+diff --git a/dataengines/weather/ions/bbcukmet/ion_bbcukmet.cpp 
b/dataengines/weather/ions/bbcukmet/ion_bbcukmet.cpp
+index 6acaa9b..fcf0bae 100644
+--- a/dataengines/weather/ions/bbcukmet/ion_bbcukmet.cpp
 b/dataengines/weather/ions/bbcukmet/ion_bbcukmet.cpp
+@@ -266,7 +266,19 @@ bool UKMETIon::updateIonSource(const QString& source)
+ setData(source, QStringLiteral("validate"), 
QStringLiteral("bbcukmet|malformed"));
+ return true;
+ }
+-m_place[QStringLiteral("bbcukmet|") +sourceAction[2]].XMLurl = 
sourceAction[3];
++
++XMLMapInfo& place = m_place[QStringLiteral("bbcukmet|") + 
sourceAction[2]];
++
++// backward compatibility after rss feed url change in 2018/03
++place.sourceExtraArg = sourceAction[3];
++if 
(place.sourceExtraArg.startsWith(QLatin1String("http://open.live.bbc.co.uk/";))) 
{
++// Old data source id stored the full (now outdated) 
observation feed url
++// 
http://open.live.bbc.co.uk/weather/feeds/en/STATIOID/observations.rss
++// as extra argument, so extract the id from that
++place.stationId = 
place.sourceExtraArg.section(QLatin1Char('/'), -2, -2);
++} else {
++place.stationId = place.sourceExtraArg;
++}
+ getXMLData(sourceAction[0] + QLatin1Char('|') + sourceAction[2]);
+ return true;
+ }
+@@ -288,7 +300,7 @@ void UKMETIon::getXMLData(const QString& source)
+ }
+ }
+ 
+-const QUrl url(m_place[source].XMLurl);
++const QUrl 
url(QStringLiteral("https://weather-broker-cdn.api.bbci.co.uk/en/observation/rss/";)
 + m_place[source].stationId);
+ 
+ KIO::TransferJob* getJob = KIO::get(url, KIO::Reload, 
KIO::HideProgressInfo);
+ getJob->addMetaData(QStringLiteral("cookies"), QStringLiteral("none")); 
// Disable displaying cookies
+@@ -328,13 +340,8 @@ void UKMETIon::findPlace(const QString& place, const 
QString& source)
+ void UKMETIon::getFiveDayForecast(const QString& source)
+ {
+ XMLMapInfo& place = m_place[source];
+-QUrl xmlMap(place.forecastHTMLUrl);
+-
+-const QString stationID = xmlMap.path().section(QLatin1Char('/'), -1);
+-
+-place.XMLforecastURL = 
QStringLiteral("http://open.live.bbc.co.uk/weather/feeds/en/";) + stationID + 
QStringLiteral("/3dayforecast.rss") + xmlMap.query();
+ 
+-const QUrl url(place.XMLforecastURL);
++const QUrl 
url(QStringLiteral("https://weather-broker-cdn.api.bbci.co.uk/en/forecast/rss/3day/";)
 + place.stationId);
+ 
+ KIO::TransferJob* getJob = KIO::get(url, KIO::Reload, 
K

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2018-02-09 Thread Michael Palimaka
commit: c006f861f27d664944c9cbbd8653aa5a5fdc1a75
Author: Michael Palimaka  gentoo  org>
AuthorDate: Fri Feb  9 13:55:21 2018 +
Commit: Michael Palimaka  gentoo  org>
CommitDate: Fri Feb  9 13:57:32 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c006f861

kde-plasma/plasma-workspace: revision bump fixes CVE-2018-6790 and CVE-2018-6791

Bug: https://bugs.gentoo.org/647106
Package-Manager: Portage-2.3.19, Repoman-2.3.6

 .../plasma-workspace-5.11.5-CVE-2018-6790.patch| 409 +
 .../plasma-workspace-5.11.5-CVE-2018-6791.patch|  31 ++
 .../plasma-workspace-5.11.5-r1.ebuild  | 175 +
 3 files changed, 615 insertions(+)

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.11.5-CVE-2018-6790.patch 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.11.5-CVE-2018-6790.patch
new file mode 100644
index 000..b424e397a80
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.11.5-CVE-2018-6790.patch
@@ -0,0 +1,409 @@
+From f1e9a1c458ea44e9169c7e79b90a57fb7c65135f Mon Sep 17 00:00:00 2001
+From: David Edmundson 
+Date: Wed, 31 Jan 2018 14:28:17 +
+Subject: [PATCH 1/2] Sanitise notification HTML
+
+Summary:
+Qt labels support a HTML subset, using a completely internal parser in
+QTextDocument.
+
+The Notification spec support an even smaller subset of notification
+elements.
+
+It's important to strip out irrelevant tags that could potentially load
+remote information without user interaction, such as img
+src or even https://phabricator.kde.org/D10188
+---
+ dataengines/notifications/CMakeLists.txt   |   8 ++
+ dataengines/notifications/notifications_test.cpp   |  68 +
+ .../notifications/notificationsanitizer.cpp| 106 +
+ dataengines/notifications/notificationsanitizer.h  |  35 +++
+ dataengines/notifications/notificationsengine.cpp  |  19 +---
+ 5 files changed, 219 insertions(+), 17 deletions(-)
+ create mode 100644 dataengines/notifications/notifications_test.cpp
+ create mode 100644 dataengines/notifications/notificationsanitizer.cpp
+ create mode 100644 dataengines/notifications/notificationsanitizer.h
+
+diff --git a/dataengines/notifications/CMakeLists.txt 
b/dataengines/notifications/CMakeLists.txt
+index 4fd3ee76..ad6e2120 100644
+--- a/dataengines/notifications/CMakeLists.txt
 b/dataengines/notifications/CMakeLists.txt
+@@ -4,6 +4,7 @@ set(notifications_engine_SRCS
+ notificationsengine.cpp
+ notificationservice.cpp
+ notificationaction.cpp
++notificationsanitizer.cpp
+ )
+ 
+ qt5_add_dbus_adaptor( notifications_engine_SRCS 
org.freedesktop.Notifications.xml notificationsengine.h  NotificationsEngine )
+@@ -26,3 +27,10 @@ kcoreaddons_desktop_to_json(plasma_engine_notifications 
plasma-dataengine-notifi
+ install(TARGETS plasma_engine_notifications DESTINATION 
${KDE_INSTALL_PLUGINDIR}/plasma/dataengine)
+ install(FILES plasma-dataengine-notifications.desktop DESTINATION 
${KDE_INSTALL_KSERVICES5DIR} )
+ install(FILES notifications.operations DESTINATION 
${PLASMA_DATA_INSTALL_DIR}/services)
++
++
++#unit test
++
++add_executable(notification_test  notificationsanitizer.cpp 
notifications_test.cpp)
++target_link_libraries(notification_test Qt5::Test Qt5::Core)
++ecm_mark_as_test(notification_test)
+diff --git a/dataengines/notifications/notifications_test.cpp 
b/dataengines/notifications/notifications_test.cpp
+new file mode 100644
+index ..58399746
+--- /dev/null
 b/dataengines/notifications/notifications_test.cpp
+@@ -0,0 +1,68 @@
++#include 
++#include 
++#include 
++#include "notificationsanitizer.h"
++
++class NotificationTest : public QObject
++{
++Q_OBJECT
++public:
++NotificationTest() {}
++private Q_SLOTS:
++void parse_data();
++void parse();
++};
++
++void NotificationTest::parse_data()
++{
++QTest::addColumn("messageIn");
++QTest::addColumn("expectedOut");
++
++QTest::newRow("basic no HTML") << "I am a notification" << "I am a 
notification";
++QTest::newRow("whitespace") << "  I am a   notification  " << "I am a 
notification";
++
++QTest::newRow("basic html") << "I am the notification" << "I am 
the notification";
++QTest::newRow("nested html") << "I am the notification" << 
"I am the notification";
++
++QTest::newRow("no extra tags") << "I am the notification" 
<< "I am the notification";
++QTest::newRow("no extra attrs") << "I am the notification" << "I am the 
notification";
++
++QTest::newRow("newlines") << "I am\nthe\nnotification" << "I 
amthenotification";
++QTest::newRow("multinewlines") << "I am\n\nthe\n\n\nnotification" << "I 
amthenotification";
++
++QTest::newRow("amp") << "me&you" << "me&you";
++QTest::newRow("double escape") << "foo & " << "foo & 
";
++
++QTest::newRow("quotes") << "'foo'" << "'foo'";//as label can't 
handle this normally valid entity
++
++QTest::newRow("image no

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2017-08-31 Thread Andreas Sturmlechner
commit: 20d6b0ac776026c2da57b4a8669bda248c5bacef
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Thu Aug 31 19:48:10 2017 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Thu Aug 31 20:53:51 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20d6b0ac

kde-plasma/plasma-workspace: Fix device notifier size, add USE=appstream

Upstream commit a59b9e61897887ea93cf736aff99243facdc45d9

Package-Manager: Portage-2.3.8, Repoman-2.3.3

 .../plasma-workspace-5.10.5-devicenotifier.patch   |  32 
 kde-plasma/plasma-workspace/metadata.xml   |   1 +
 .../plasma-workspace-5.10.5-r1.ebuild  | 173 +
 3 files changed, 206 insertions(+)

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.10.5-devicenotifier.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.10.5-devicenotifier.patch
new file mode 100644
index 000..978f326e620
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.10.5-devicenotifier.patch
@@ -0,0 +1,32 @@
+From b8f263cd9939530a6634a1ddb9533bf473a67805 Mon Sep 17 00:00:00 2001
+From: Kai Uwe Broulik 
+Date: Wed, 23 Aug 2017 11:10:34 +0200
+Subject: [Device Notifier] Set preferred size for ActionItem
+
+In QtQuick Layouts implicit size (set by IconItem to the SVG's natural size) 
takes
+precedence over width/height. This was fixed in DeviceItem but forgotten here.
+
+BUG: 382541
+FIXED-IN: 5.8.8
+---
+ applets/devicenotifier/package/contents/ui/ActionItem.qml | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/applets/devicenotifier/package/contents/ui/ActionItem.qml 
b/applets/devicenotifier/package/contents/ui/ActionItem.qml
+index 5e54866..df28365 100644
+--- a/applets/devicenotifier/package/contents/ui/ActionItem.qml
 b/applets/devicenotifier/package/contents/ui/ActionItem.qml
+@@ -56,8 +56,8 @@ MouseArea {
+ 
+ PlasmaCore.IconItem {
+ source: area.icon
+-width: units.iconSizes.smallMedium
+-height: width
++Layout.preferredWidth: units.iconSizes.smallMedium
++Layout.preferredHeight: width
+ }
+ 
+ PlasmaComponents.Label {
+-- 
+cgit v0.11.2
+

diff --git a/kde-plasma/plasma-workspace/metadata.xml 
b/kde-plasma/plasma-workspace/metadata.xml
index bc65a860b67..7c6938f31a7 100644
--- a/kde-plasma/plasma-workspace/metadata.xml
+++ b/kde-plasma/plasma-workspace/metadata.xml
@@ -6,6 +6,7 @@
Gentoo KDE Project


+   Enable AppStream software metadata 
support
Enables dataengine providing location 
information
Enable support for barcodes/QRcodes
Enable Qalculate runner using 
sci-libs/libqalculate

diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.10.5-r1.ebuild 
b/kde-plasma/plasma-workspace/plasma-workspace-5.10.5-r1.ebuild
new file mode 100644
index 000..eff5dff8c70
--- /dev/null
+++ b/kde-plasma/plasma-workspace/plasma-workspace-5.10.5-r1.ebuild
@@ -0,0 +1,173 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KDE_HANDBOOK="forceoptional"
+KDE_TEST="forceoptional"
+VIRTUALX_REQUIRED="test"
+inherit kde5 qmake-utils
+
+DESCRIPTION="KDE Plasma workspace"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE="appstream +calendar geolocation gps prison qalculate +semantic-desktop"
+
+REQUIRED_USE="gps? ( geolocation )"
+
+COMMON_DEPEND="
+   $(add_frameworks_dep kactivities)
+   $(add_frameworks_dep kauth)
+   $(add_frameworks_dep kbookmarks)
+   $(add_frameworks_dep kcompletion)
+   $(add_frameworks_dep kconfig)
+   $(add_frameworks_dep kconfigwidgets)
+   $(add_frameworks_dep kcoreaddons)
+   $(add_frameworks_dep kcrash)
+   $(add_frameworks_dep kdbusaddons)
+   $(add_frameworks_dep kdeclarative)
+   $(add_frameworks_dep kdelibs4support)
+   $(add_frameworks_dep kglobalaccel)
+   $(add_frameworks_dep kguiaddons)
+   $(add_frameworks_dep ki18n)
+   $(add_frameworks_dep kiconthemes)
+   $(add_frameworks_dep kidletime)
+   $(add_frameworks_dep kio)
+   $(add_frameworks_dep kitemmodels)
+   $(add_frameworks_dep kitemviews)
+   $(add_frameworks_dep kjobwidgets)
+   $(add_frameworks_dep kjs)
+   $(add_frameworks_dep kjsembed)
+   $(add_frameworks_dep knewstuff)
+   $(add_frameworks_dep knotifications)
+   $(add_frameworks_dep knotifyconfig)
+   $(add_frameworks_dep kpackage)
+   $(add_frameworks_dep krunner)
+   $(add_frameworks_dep kservice)
+   $(add_frameworks_dep ktexteditor)
+   $(add_frameworks_dep ktextwidgets)
+   $(add_frameworks_dep kwallet)
+   $(add_frameworks_dep kwayland)
+   $(add_frameworks_dep kwidgetsaddons)
+   $(add_frameworks_dep kwindowsystem)
+   $(add_frameworks_dep kxmlgui)
+   $(add_frameworks_dep kxmlrpcclient)
+   $

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2017-08-02 Thread Andreas Sturmlechner
commit: 69d39a82485753c7cfc90ce55438148076a3bfa3
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Wed Aug  2 22:07:26 2017 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Wed Aug  2 23:17:15 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69d39a82

kde-plasma/plasma-workspace: Backport upstream fixes

Package-Manager: Portage-2.3.6, Repoman-2.3.1

 .../files/plasma-workspace-5.10.4-ghns-https.patch | 34 +++
 .../plasma-workspace-5.10.4-notifications.patch| 69 ++
 .../plasma-workspace-5.10.4-r2.ebuild  |  2 +
 3 files changed, 105 insertions(+)

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.10.4-ghns-https.patch 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.10.4-ghns-https.patch
new file mode 100644
index 000..2a805e32f0f
--- /dev/null
+++ b/kde-plasma/plasma-workspace/files/plasma-workspace-5.10.4-ghns-https.patch
@@ -0,0 +1,34 @@
+commit ae943198bf74d563adcb1f3d36ee4ba1b7b274a9
+Author: Aleix Pol 
+Date:   Fri Jul 28 13:21:38 2017 +0200
+
+Prefer using https for kns providers
+
+CCBUG: 382820
+
+diff --git a/components/shellprivate/widgetexplorer/plasmoids.knsrc 
b/components/shellprivate/widgetexplorer/plasmoids.knsrc
+index c683a257..03c7de0e 100644
+--- a/components/shellprivate/widgetexplorer/plasmoids.knsrc
 b/components/shellprivate/widgetexplorer/plasmoids.knsrc
+@@ -36,7 +36,7 @@ Name[x-test]=xxPlasma Widgetsxx
+ Name[zh_CN]=Plasma 部件
+ Name[zh_TW]=Plasma 元件
+ 
+-ProvidersUrl=http://download.kde.org/ocs/providers.xml
++ProvidersUrl=https://download.kde.org/ocs/providers.xml
+ Categories=Plasma 5 Plasmoid
+ StandardResource=tmp
+ InstallationCommand=kpackagetool5 --install %f --type Plasma/Applet
+diff --git a/wallpapers/image/wallpaper.knsrc 
b/wallpapers/image/wallpaper.knsrc
+index 4a0cf2d6..2decc7e7 100644
+--- a/wallpapers/image/wallpaper.knsrc
 b/wallpapers/image/wallpaper.knsrc
+@@ -36,7 +36,7 @@ Name[x-test]=xxWallpapersxx
+ Name[zh_CN]=壁纸
+ Name[zh_TW]=桌布
+ 
+-ProvidersUrl=http://download.kde.org/ocs/providers.xml
++ProvidersUrl=https://download.kde.org/ocs/providers.xml
+ Categories=KDE Wallpaper 800x600,KDE Wallpaper 1024x768,KDE Wallpaper 
1280x1024,KDE Wallpaper 1440x900,KDE Wallpaper 1600x1200,KDE Wallpaper (other)
+ StandardResource=wallpaper
+ Uncompress=archive

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.10.4-notifications.patch 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.10.4-notifications.patch
new file mode 100644
index 000..e964eeb8beb
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.10.4-notifications.patch
@@ -0,0 +1,69 @@
+commit 7e2a29b0b18abe31df68c2f176124acfbc15c438
+Author: Kai Uwe Broulik 
+Date:   Tue Aug 1 12:53:38 2017 +0200
+
+[Notifications] Improve mouse handling
+
+* Make links clickable again
+* Don't pass visualParent to context menu as we already give it a 
position, fixes it being positioned incorrectly
+* Open context menu on press already like is done everywhere else
+* Give "Copy" the edit-copy icon
+* Deselect text after copying again, otherwise it stays selected but the 
user cannot unselect it.
+
+BUG: 382263
+FIXED-IN: 5.10.5
+
+Differential Revision: https://phabricator.kde.org/D7029
+
+diff --git a/applets/notifications/package/contents/ui/NotificationItem.qml 
b/applets/notifications/package/contents/ui/NotificationItem.qml
+index dabf1b90..c260d588 100644
+--- a/applets/notifications/package/contents/ui/NotificationItem.qml
 b/applets/notifications/package/contents/ui/NotificationItem.qml
+@@ -282,8 +282,6 @@ MouseArea {
+ wrapMode: Text.Wrap
+ textFormat: TextEdit.RichText
+ 
+-onLinkActivated: Qt.openUrlExternally(link)
+-
+ // ensure selecting text scrolls the view as needed...
+ onCursorRectangleChanged: {
+ var flick = bodyTextScrollArea.flickableItem
+@@ -297,23 +295,33 @@ MouseArea {
+ anchors.fill: parent
+ acceptedButtons: Qt.RightButton | Qt.LeftButton
+ 
+-onClicked: {
+-if (mouse.button == Qt.RightButton)
++onPressed: {
++if (mouse.button === Qt.RightButton) {
+ contextMenu.open(mouse.x, mouse.y)
+-else {
+-notificationItem.clicked(mouse)
++}
++}
++
++onClicked: {
++if (mouse.button === Qt.LeftButton) {
++var link = bodyText.linkAt(mouse.x, mouse.y)
++if (link) {
++Qt.openUrlExternally(link)
++   

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2017-07-27 Thread Andreas Sturmlechner
commit: 479b6c9e6c960ed177190ad107c8b4aab98e6c48
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Thu Jul 27 16:10:41 2017 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Thu Jul 27 16:24:33 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=479b6c9e

kde-plasma/plasma-workspace: Fix DEPENDs, fix cmake warning

Upstream commits
7df184afa19f148c1cd09ae9588645bb2b4556fc
a2202472aa4d488da7562fe8b150c42dddc2d7f2

Reported-by: Michael Mair-Keimberger (iamnr3)  gmail.com>
Gentoo-bug: 626040

Package-Manager: Portage-2.3.6, Repoman-2.3.1

 .../files/plasma-workspace-5.10.4-unused-dep.patch |  19 +++
 .../plasma-workspace-5.10.4-r1.ebuild  | 169 +
 2 files changed, 188 insertions(+)

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.10.4-unused-dep.patch 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.10.4-unused-dep.patch
new file mode 100644
index 000..fa0f3850965
--- /dev/null
+++ b/kde-plasma/plasma-workspace/files/plasma-workspace-5.10.4-unused-dep.patch
@@ -0,0 +1,19 @@
+commit 5a7d251cfbed417a2617945a94427a93cdd2e82d
+Author: Andreas Sturmlechner 
+Date:   Thu Jul 27 17:50:17 2017 +0200
+
+Drop unused dependency
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index ba61d1cc..ab5536ff 100644
+--- a/CMakeLists.txt
 b/CMakeLists.txt
+@@ -25,7 +25,7 @@ include(ECMQtDeclareLoggingCategory)
+ include(KDEPackageAppTemplates)
+ 
+ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
+-Plasma DocTools Runner JsEmbed NotifyConfig Su NewStuff 
Wallet KCMUtils
++Plasma DocTools Runner JsEmbed NotifyConfig Su NewStuff 
Wallet
+ IdleTime Declarative TextWidgets KDELibs4Support Crash 
GlobalAccel
+ DBusAddons Wayland)
+ find_package(KF5NetworkManagerQt ${KF5_MIN_VERSION})

diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.10.4-r1.ebuild 
b/kde-plasma/plasma-workspace/plasma-workspace-5.10.4-r1.ebuild
new file mode 100644
index 000..aff99b2e38b
--- /dev/null
+++ b/kde-plasma/plasma-workspace/plasma-workspace-5.10.4-r1.ebuild
@@ -0,0 +1,169 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KDE_HANDBOOK="forceoptional"
+KDE_TEST="forceoptional"
+VIRTUALX_REQUIRED="test"
+inherit kde5 qmake-utils
+
+DESCRIPTION="KDE Plasma workspace"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE="+calendar geolocation gps prison qalculate +semantic-desktop"
+
+REQUIRED_USE="gps? ( geolocation )"
+
+COMMON_DEPEND="
+   $(add_frameworks_dep kactivities)
+   $(add_frameworks_dep kauth)
+   $(add_frameworks_dep kbookmarks)
+   $(add_frameworks_dep kcompletion)
+   $(add_frameworks_dep kconfig)
+   $(add_frameworks_dep kconfigwidgets)
+   $(add_frameworks_dep kcoreaddons)
+   $(add_frameworks_dep kcrash)
+   $(add_frameworks_dep kdbusaddons)
+   $(add_frameworks_dep kdeclarative)
+   $(add_frameworks_dep kdelibs4support)
+   $(add_frameworks_dep kglobalaccel)
+   $(add_frameworks_dep kguiaddons)
+   $(add_frameworks_dep ki18n)
+   $(add_frameworks_dep kiconthemes)
+   $(add_frameworks_dep kidletime)
+   $(add_frameworks_dep kio)
+   $(add_frameworks_dep kitemmodels)
+   $(add_frameworks_dep kitemviews)
+   $(add_frameworks_dep kjobwidgets)
+   $(add_frameworks_dep kjs)
+   $(add_frameworks_dep kjsembed)
+   $(add_frameworks_dep knewstuff)
+   $(add_frameworks_dep knotifications)
+   $(add_frameworks_dep knotifyconfig)
+   $(add_frameworks_dep kpackage)
+   $(add_frameworks_dep krunner)
+   $(add_frameworks_dep kservice)
+   $(add_frameworks_dep ktexteditor)
+   $(add_frameworks_dep ktextwidgets)
+   $(add_frameworks_dep kwallet)
+   $(add_frameworks_dep kwayland)
+   $(add_frameworks_dep kwidgetsaddons)
+   $(add_frameworks_dep kwindowsystem)
+   $(add_frameworks_dep kxmlgui)
+   $(add_frameworks_dep kxmlrpcclient)
+   $(add_frameworks_dep plasma)
+   $(add_frameworks_dep solid)
+   $(add_plasma_dep kscreenlocker)
+   $(add_plasma_dep kwin)
+   $(add_plasma_dep libksysguard)
+   $(add_qt_dep qtdbus)
+   $(add_qt_dep qtdeclarative 'widgets')
+   $(add_qt_dep qtgui 'jpeg')
+   $(add_qt_dep qtnetwork)
+   $(add_qt_dep qtscript)
+   $(add_qt_dep qtsql)
+   $(add_qt_dep qtwidgets)
+   $(add_qt_dep qtx11extras)
+   $(add_qt_dep qtxml)
+   media-libs/phonon[qt5]
+   sys-libs/zlib
+   x11-libs/libICE
+   x11-libs/libSM
+   x11-libs/libX11
+   x11-libs/libXau
+   x11-libs/libxcb
+   x11-libs/libXfixes
+   x11-libs/libXrender
+   x11-libs/libXtst
+   x11-libs/xcb-util
+   x11-libs/xcb-util-image
+   calendar? ( $(add_kdeapps_dep kholidays) )
+   geolocation? ( $(add_frameworks_dep networkmanager-qt) )
+   

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2016-11-16 Thread Michael Palimaka
commit: 7bc55c6cfd54f8989f8d7a7e5cdd49c29fb43c83
Author: Michael Palimaka  gentoo  org>
AuthorDate: Wed Nov 16 18:37:49 2016 +
Commit: Michael Palimaka  gentoo  org>
CommitDate: Wed Nov 16 18:38:30 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7bc55c6c

kde-plasma/plasma-workspace: backport patch from upstream resolving krunner 
crash

Package-Manager: portage-2.3.2

 .../plasma-workspace-5.8.3-krunner-crash.patch | 441 +
 .../plasma-workspace-5.8.3-r2.ebuild   | 176 
 2 files changed, 617 insertions(+)

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.8.3-krunner-crash.patch 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.8.3-krunner-crash.patch
new file mode 100644
index ..9b238b6
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.8.3-krunner-crash.patch
@@ -0,0 +1,441 @@
+From 3f859c3dbdded68cc96d4c695ff27d15c387da09 Mon Sep 17 00:00:00 2001
+From: Aleix Pol 
+Date: Mon, 10 Oct 2016 16:30:24 +0200
+Subject: [PATCH] Port to new plasma-framework API
+
+Reduces unnecessary castings.
+Ports away the WindowedWidgets runner from KService
+
+REVIEW: 129101
+---
+ applets/systemtray/systemtray.cpp  | 30 +++---
+ .../shellprivate/widgetexplorer/widgetexplorer.cpp | 14 +++
+ plasma-windowed/plasmawindowedcorona.cpp   |  2 +-
+ runners/windowedwidgets/windowedwidgetsrunner.cpp  | 46 ++
+ runners/windowedwidgets/windowedwidgetsrunner.h|  2 +-
+ shell/alternativeshelper.cpp   |  6 +--
+ shell/containmentconfigview.cpp|  2 +-
+ shell/scripting/containment.cpp|  4 +-
+ shell/scripting/widget.cpp |  2 +-
+ shell/shellcorona.cpp  | 15 +++
+ 10 files changed, 60 insertions(+), 63 deletions(-)
+
+diff --git a/applets/systemtray/systemtray.cpp 
b/applets/systemtray/systemtray.cpp
+index e1cd610..ecc23a4 100644
+--- a/applets/systemtray/systemtray.cpp
 b/applets/systemtray/systemtray.cpp
+@@ -99,19 +99,19 @@ void SystemTray::init()
+ {
+ Containment::init();
+ 
+-for (const auto &info: 
Plasma::PluginLoader::self()->listAppletInfo(QString())) {
+-if (!info.isValid() || 
info.property(QStringLiteral("X-Plasma-NotificationArea")) != "true") {
++for (const auto &info: 
Plasma::PluginLoader::self()->listAppletMetaData(QString())) {
++if (!info.isValid() || 
info.value(QStringLiteral("X-Plasma-NotificationArea")) != "true") {
+ continue;
+ }
+-m_systrayApplets[info.pluginName()] = info;
++m_systrayApplets[info.pluginId()] = KPluginInfo(info);
+ 
+-if (info.isPluginEnabledByDefault()) {
+-m_defaultPlasmoids += info.pluginName();
++if (info.isEnabledByDefault()) {
++m_defaultPlasmoids += info.pluginId();
+ }
+-const QString dbusactivation = 
info.property(QStringLiteral("X-Plasma-DBusActivationService")).toString();
++const QString dbusactivation = 
info.value(QStringLiteral("X-Plasma-DBusActivationService"));
+ if (!dbusactivation.isEmpty()) {
+-qCDebug(SYSTEM_TRAY) << "ST Found DBus-able Applet: " << 
info.pluginName() << dbusactivation;
+-m_dbusActivatableTasks[info.pluginName()] = dbusactivation;
++qCDebug(SYSTEM_TRAY) << "ST Found DBus-able Applet: " << 
info.pluginId() << dbusactivation;
++m_dbusActivatableTasks[info.pluginId()] = dbusactivation;
+ }
+ }
+ }
+@@ -119,12 +119,12 @@ void SystemTray::init()
+ void SystemTray::newTask(const QString &task)
+ {
+ foreach (Plasma::Applet *applet, applets()) {
+-if (!applet->pluginInfo().isValid()) {
++if (!applet->pluginMetaData().isValid()) {
+ continue;
+ }
+ 
+ //only allow one instance per applet
+-if (task == applet->pluginInfo().pluginName()) {
++if (task == applet->pluginMetaData().pluginId()) {
+ //Applet::destroy doesn't delete the applet from 
Containment::applets in the same event
+ //potentially a dbus activated service being restarted can be 
added in this time.
+ if (!applet->destroyed()) {
+@@ -156,7 +156,7 @@ void SystemTray::newTask(const QString &task)
+ void SystemTray::cleanupTask(const QString &task)
+ {
+ foreach (Plasma::Applet *applet, applets()) {
+-if (!applet->pluginInfo().isValid() || task == 
applet->pluginInfo().pluginName()) {
++if (!applet->pluginMetaData().isValid() || task == 
applet->pluginMetaData().pluginId()) {
+ //we are *not* cleaning the config here, because since is one
+ //of those automatically loaded/unloaded by dbus, we want to 
recycle
+ //the config the next time it's loaded, in case the user 
configured something here
+@@ -255,11 +255,11 @@ Q_INVOKABLE QString 
System

[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2016-09-28 Thread Michael Palimaka
commit: ca18c48c16c6ee4afd70655c543838a5a301e135
Author: Andreas Sturmlechner  gmail  com>
AuthorDate: Sat Aug 13 12:25:03 2016 +
Commit: Michael Palimaka  gentoo  org>
CommitDate: Wed Sep 28 21:46:57 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca18c48c

kde-plasma/plasma-workspace: Drop unused libXcomposite DEPEND

Reported-by: awilfox (irc)

Package-Manager: portage-2.2.28

 .../files/plasma-workspace-5.6.5.1-unused-dep.patch  | 20 
 .../files/plasma-workspace-5.7.3-unused-dep.patch| 20 
 .../plasma-workspace-5.6.5.1-r2.ebuild   |  1 +
 .../plasma-workspace/plasma-workspace-5.7.5.ebuild   |  1 +
 4 files changed, 42 insertions(+)

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.6.5.1-unused-dep.patch 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.6.5.1-unused-dep.patch
new file mode 100644
index ..e288a97
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.6.5.1-unused-dep.patch
@@ -0,0 +1,20 @@
+commit a29bcad4fe0af53c0d8661cbd17eeb57b004342d
+Author: Andreas Sturmlechner 
+Date:   Wed Aug 17 18:02:19 2016 +0200
+
+libtaskmanager: Drop unused X11_Xcomposite
+
+diff --git a/libtaskmanager/CMakeLists.txt b/libtaskmanager/CMakeLists.txt
+index 4f81330..8333d61 100644
+--- a/libtaskmanager/CMakeLists.txt
 b/libtaskmanager/CMakeLists.txt
+@@ -65,9 +65,6 @@ if (X11_FOUND)
+ if (X11_Xrender_FOUND)
+ target_link_libraries(taskmanager PRIVATE ${X11_Xrender_LIB})
+ endif ()
+-if (X11_Xcomposite_FOUND)
+-target_link_libraries(taskmanager PRIVATE ${X11_Xcomposite_LIB})
+-endif ()
+ endif()
+ 
+ set_target_properties(taskmanager PROPERTIES 

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.7.3-unused-dep.patch 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.7.3-unused-dep.patch
new file mode 100644
index ..27eebf1
--- /dev/null
+++ b/kde-plasma/plasma-workspace/files/plasma-workspace-5.7.3-unused-dep.patch
@@ -0,0 +1,20 @@
+commit 1cc82e71749a907f9345a9b969d3d1e124ed9753
+Author: Andreas Sturmlechner 
+Date:   Wed Aug 17 17:58:17 2016 +0200
+
+liblegacytaskmanager: Drop unused X11_Xcomposite
+
+diff --git a/liblegacytaskmanager/CMakeLists.txt 
b/liblegacytaskmanager/CMakeLists.txt
+index dab11b3..f13880b 100644
+--- a/liblegacytaskmanager/CMakeLists.txt
 b/liblegacytaskmanager/CMakeLists.txt
+@@ -65,9 +65,6 @@ if (X11_FOUND)
+ if (X11_Xrender_FOUND)
+ target_link_libraries(legacytaskmanager PRIVATE ${X11_Xrender_LIB})
+ endif ()
+-if (X11_Xcomposite_FOUND)
+-target_link_libraries(legacytaskmanager PRIVATE ${X11_Xcomposite_LIB})
+-endif ()
+ endif()
+ 
+ set_target_properties(legacytaskmanager PROPERTIES

diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.6.5.1-r2.ebuild 
b/kde-plasma/plasma-workspace/plasma-workspace-5.6.5.1-r2.ebuild
index 3ab4ada..94c93b7 100644
--- a/kde-plasma/plasma-workspace/plasma-workspace-5.6.5.1-r2.ebuild
+++ b/kde-plasma/plasma-workspace/plasma-workspace-5.6.5.1-r2.ebuild
@@ -123,6 +123,7 @@ PATCHES=(
"${FILESDIR}/${PN}-5.6.5-drop-kscreen-dep.patch"
"${FILESDIR}/${PN}-5.6.5.1-struts.patch"
"${FILESDIR}/${PN}-5.6.5.1-legacy-session-mgmt.patch" # backport in 5.6 
after release
+   "${FILESDIR}/${PN}-5.6.5.1-unused-dep.patch"
 )
 
 RESTRICT="test"

diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.7.5.ebuild 
b/kde-plasma/plasma-workspace/plasma-workspace-5.7.5.ebuild
index c94e5f6..76a7913 100644
--- a/kde-plasma/plasma-workspace/plasma-workspace-5.7.5.ebuild
+++ b/kde-plasma/plasma-workspace/plasma-workspace-5.7.5.ebuild
@@ -122,6 +122,7 @@ DEPEND="${COMMON_DEPEND}
 
 PATCHES=(
"${FILESDIR}/${PN}-5.4-startkde-script.patch"
+   "${FILESDIR}/${PN}-5.7.3-unused-dep.patch"
"${FILESDIR}/${PN}-5.7.5-klipper-autostart.patch"
 )
 



[gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-workspace/, kde-plasma/plasma-workspace/files/

2016-02-09 Thread Michael Palimaka
commit: 0be8df1b52ad6ee0dbfe86ca22ec19fb47e88797
Author: Michael Palimaka  gentoo  org>
AuthorDate: Tue Feb  9 16:13:10 2016 +
Commit: Michael Palimaka  gentoo  org>
CommitDate: Tue Feb  9 16:25:14 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0be8df1b

kde-plasma/plasma-workspace: backport patch from upstream solving lock screen 
bypass

Gentoo-bug: 574270

Package-Manager: portage-2.2.27

 .../plasma-workspace-5.4.3-lockscreen-bypass.patch | 38 ++
 ...-r1.ebuild => plasma-workspace-5.4.3-r2.ebuild} |  1 +
 2 files changed, 39 insertions(+)

diff --git 
a/kde-plasma/plasma-workspace/files/plasma-workspace-5.4.3-lockscreen-bypass.patch
 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.4.3-lockscreen-bypass.patch
new file mode 100644
index 000..977251e
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/plasma-workspace-5.4.3-lockscreen-bypass.patch
@@ -0,0 +1,38 @@
+From 23a9ed7ba9995570227dbcd69c23f009de7dde49 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= 
+Date: Tue, 9 Feb 2016 16:37:50 +0100
+Subject: [PATCH] [greeter] Dont quit when last window closes
+
+Qt allows to have no screens. If all XRandR screens are disconnected
+there are also no QScreens. This is from an X11 perspective wrong, but
+we have to deal with it. No QScreens means that all views are destroyed
+and no new ones are created. Thus all windows close and the greeter
+exited successfully which in turn unlocked the screen.
+
+This change ensures that the greeter doesn't exit when all windows close.
+
+Funnily this was not a problem with the well known issue of Qt
+crashing when all screens are disconnected. The lock screen handles
+crashes gracefully and just restarts or more likely Qt also crashes
+the application using KSld and thus taking down the complete session.
+
+CCBUG: 358125
+---
+ ksmserver/screenlocker/greeter/main.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/ksmserver/screenlocker/greeter/main.cpp 
b/ksmserver/screenlocker/greeter/main.cpp
+index fa4bf62..0a68835 100644
+--- a/ksmserver/screenlocker/greeter/main.cpp
 b/ksmserver/screenlocker/greeter/main.cpp
+@@ -56,6 +56,7 @@ int main(int argc, char* argv[])
+ // explicitly disable input methods as it makes it impossible to unlock, 
see BUG 306932
+ qputenv("QT_IM_MODULE", QByteArrayLiteral("compose"));
+ ScreenLocker::UnlockApp app(argc, argv);
++app.setQuitOnLastWindowClosed(false);
+ 
QCoreApplication::setApplicationName(QStringLiteral("kscreenlocker_greet"));
+ QCoreApplication::setApplicationVersion(QStringLiteral("0.1"));
+ QCoreApplication::setOrganizationDomain(QStringLiteral("kde.org"));
+-- 
+2.4.10
+

diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.4.3-r1.ebuild 
b/kde-plasma/plasma-workspace/plasma-workspace-5.4.3-r2.ebuild
similarity index 99%
rename from kde-plasma/plasma-workspace/plasma-workspace-5.4.3-r1.ebuild
rename to kde-plasma/plasma-workspace/plasma-workspace-5.4.3-r2.ebuild
index b6f96f5..0b95d6e 100644
--- a/kde-plasma/plasma-workspace/plasma-workspace-5.4.3-r1.ebuild
+++ b/kde-plasma/plasma-workspace/plasma-workspace-5.4.3-r2.ebuild
@@ -130,6 +130,7 @@ PATCHES=(
"${FILESDIR}/${PN}-5.4-consolekit2.patch"
"${FILESDIR}/${PN}-5.4.3-fix-drkonqi.patch" #Upstream bug 354110
"${FILESDIR}/${PN}-5.4.3-no-SUID-no-GUID.patch"
+   "${FILESDIR}/${P}-lockscreen-bypass.patch"
 )
 
 RESTRICT="test"