aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2020-05-11 16:28:14 +0200
committerLeo <thinkabit.ukim@gmail.com>2020-05-11 23:58:47 +0000
commit8f996cf9366dbf017969193445608fc42d5567c6 (patch)
tree9d8e1b045ad93cf03b810e5a959b31a029502054
parentceb9222c82b26adc4123f2b2506bc70286a05d71 (diff)
downloadaports-8f996cf9366dbf017969193445608fc42d5567c6.tar.gz
aports-8f996cf9366dbf017969193445608fc42d5567c6.tar.bz2
aports-8f996cf9366dbf017969193445608fc42d5567c6.tar.xz
community/plasma-desktop: apply patch to fix performance regression
-rw-r--r--community/plasma-desktop/APKBUILD9
-rw-r--r--community/plasma-desktop/D28239.patch142
2 files changed, 148 insertions, 3 deletions
diff --git a/community/plasma-desktop/APKBUILD b/community/plasma-desktop/APKBUILD
index 796e5cdf53..df0cd324b5 100644
--- a/community/plasma-desktop/APKBUILD
+++ b/community/plasma-desktop/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=plasma-desktop
pkgver=5.18.5
-pkgrel=0
+pkgrel=1
pkgdesc="KDE Plasma Desktop"
# s390x, mips, mips64 blocked by ibus
# armhf blocked by qt5-qtdeclarative
@@ -50,7 +50,9 @@ depends_dev="
"
makedepends="$depends_dev extra-cmake-modules kdoctools-dev"
checkdepends="xvfb-run iso-codes"
-source="https://download.kde.org/stable/plasma/$pkgver/plasma-desktop-$pkgver.tar.xz"
+source="https://download.kde.org/stable/plasma/$pkgver/plasma-desktop-$pkgver.tar.xz
+ D28239.patch
+ "
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang knetattach"
options="!check" # Requires running dbus
@@ -81,4 +83,5 @@ knetattach() {
cd "$builddir"/build/knetattach
DESTDIR="$subpkgdir" make install
}
-sha512sums="14f86d1158f976e8f0fbf80fb7f5bea74393febc35592bd95806548883b3bc2e77ee55cc300119275ad322f6b8bcfbed84bb6b78a3a19868ce4695a1fb57a029 plasma-desktop-5.18.5.tar.xz"
+sha512sums="14f86d1158f976e8f0fbf80fb7f5bea74393febc35592bd95806548883b3bc2e77ee55cc300119275ad322f6b8bcfbed84bb6b78a3a19868ce4695a1fb57a029 plasma-desktop-5.18.5.tar.xz
+be213abe22b3b55ee8116eb7c5521333caf03cbf82221fe65cb28d3919fd407affecf21abb19062c0a657010c6d0347d50a30dc98609be91dc891e6642e91be9 D28239.patch"
diff --git a/community/plasma-desktop/D28239.patch b/community/plasma-desktop/D28239.patch
new file mode 100644
index 0000000000..79d8b44dbf
--- /dev/null
+++ b/community/plasma-desktop/D28239.patch
@@ -0,0 +1,142 @@
+Suggested by upstream to apply this when using KDE Frameworks 5.70 and
+Plasma 5.18 to improve performance. It's in master already and will be
+unnecessary when Plasma 5.19 is released.
+
+From f3bbc0ba0e34ea1b34b106228c02d85865ed904a Mon Sep 17 00:00:00 2001
+From: Nate Graham <nate@kde.org>
+Date: Tue, 24 Mar 2020 08:15:12 -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
+
+Subscribers: plasma-devel
+
+Tags: #plasma
+
+Differential Revision: https://phabricator.kde.org/D28239
+---
+ applets/taskmanager/package/contents/ui/Task.qml | 2 +-
+ applets/taskmanager/package/contents/ui/TaskList.qml | 2 +-
+ desktoppackage/contents/configuration/PanelConfiguration.qml | 4 ++--
+ desktoppackage/contents/explorer/WidgetExplorer.qml | 6 +++---
+ toolboxes/desktoptoolbox/contents/ui/ToolBoxButton.qml | 6 +++---
+ 5 files changed, 10 insertions(+), 10 deletions(-)
+
+diff --git a/applets/taskmanager/package/contents/ui/Task.qml b/applets/taskmanager/package/contents/ui/Task.qml
+index 2bf8b88..9683fab 100644
+--- a/applets/taskmanager/package/contents/ui/Task.qml
++++ b/applets/taskmanager/package/contents/ui/Task.qml
+@@ -293,7 +293,7 @@ MouseArea {
+ Timer {
+ id: timer
+
+- interval: units.longDuration * 2
++ interval: units.longDuration
+ repeat: false
+
+ onTriggered: {
+diff --git a/applets/taskmanager/package/contents/ui/TaskList.qml b/applets/taskmanager/package/contents/ui/TaskList.qml
+index 594420b..6d6bc45 100644
+--- a/applets/taskmanager/package/contents/ui/TaskList.qml
++++ b/applets/taskmanager/package/contents/ui/TaskList.qml
+@@ -34,7 +34,7 @@ Flow {
+ NumberAnimation {
+ properties: "x, y"
+ easing.type: Easing.OutQuad
+- duration: units.longDuration * 2
++ duration: units.longDuration
+ }
+
+ PropertyAction { target: taskList; property: "animating"; value: false }
+diff --git a/desktoppackage/contents/configuration/PanelConfiguration.qml b/desktoppackage/contents/configuration/PanelConfiguration.qml
+index 0e11a96..33e3fbc 100644
+--- a/desktoppackage/contents/configuration/PanelConfiguration.qml
++++ b/desktoppackage/contents/configuration/PanelConfiguration.qml
+@@ -103,7 +103,7 @@ PlasmaCore.FrameSvgItem {
+ return panel.screenGeometry.y + panel.screenGeometry.height - panel.height - panel.distance
+ }
+ }
+- duration: units.shortDuration * 3
++ duration: units.shortDuration
+ }
+
+ NumberAnimation {
+@@ -122,7 +122,7 @@ PlasmaCore.FrameSvgItem {
+ return panel.screenGeometry.y + panel.screenGeometry.height - panel.height - configDialog.height - panel.distance
+ }
+ }
+- duration: units.shortDuration * 3
++ duration: units.shortDuration
+ }
+ }
+ //END Animations
+diff --git a/desktoppackage/contents/explorer/WidgetExplorer.qml b/desktoppackage/contents/explorer/WidgetExplorer.qml
+index 1648708..e26cc40 100644
+--- a/desktoppackage/contents/explorer/WidgetExplorer.qml
++++ b/desktoppackage/contents/explorer/WidgetExplorer.qml
+@@ -306,7 +306,7 @@ Item {
+ properties: "x"
+ from: -list.width
+ to: 0
+- duration: units.shortDuration * 3
++ duration: units.shortDuration
+
+ }
+ }
+@@ -316,7 +316,7 @@ Item {
+ NumberAnimation {
+ properties: "x"
+ to: list.width
+- duration: units.shortDuration * 3
++ duration: units.shortDuration
+ }
+ }
+
+@@ -329,7 +329,7 @@ Item {
+ displaced: Transition {
+ NumberAnimation {
+ properties: "y"
+- duration: units.shortDuration * 3
++ duration: units.shortDuration
+ }
+ }
+ }
+diff --git a/toolboxes/desktoptoolbox/contents/ui/ToolBoxButton.qml b/toolboxes/desktoptoolbox/contents/ui/ToolBoxButton.qml
+index 06524c3..eb6b190 100644
+--- a/toolboxes/desktoptoolbox/contents/ui/ToolBoxButton.qml
++++ b/toolboxes/desktoptoolbox/contents/ui/ToolBoxButton.qml
+@@ -54,14 +54,14 @@ Item {
+ }
+ Behavior on rotation {
+ NumberAnimation {
+- duration: units.shortDuration * 3;
++ duration: units.shortDuration;
+ easing.type: Easing.InOutExpo;
+ }
+ enabled: visible
+ }
+ Behavior on x {
+ NumberAnimation {
+- duration: units.shortDuration * 3;
++ duration: units.shortDuration;
+ easing.type: Easing.InOutExpo;
+ }
+ enabled: visible
+@@ -69,7 +69,7 @@ Item {
+ }
+ Behavior on y {
+ NumberAnimation {
+- duration: units.shortDuration * 3;
++ duration: units.shortDuration;
+ easing.type: Easing.InOutExpo;
+ }
+ enabled: visible