From daf016ee8f05c7555bb00ca419888d3c4fde4ebd65a367b939cebe4ca4ee2d8e Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Sun, 18 Nov 2018 16:32:07 +0000 Subject: [PATCH] Accepting request 650024 from home:Vogtinator:branches:KDE:Frameworks5 - Add patch to rebuild sycoca quicker (boo#1111420): * 0001-Decrease-the-delay-between-change-notification-and-s.patch OBS-URL: https://build.opensuse.org/request/show/650024 OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/kded?expand=0&rev=161 --- ...ay-between-change-notification-and-s.patch | 30 +++++++++++++++++++ kded.changes | 6 ++++ kded.spec | 4 ++- 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 0001-Decrease-the-delay-between-change-notification-and-s.patch diff --git a/0001-Decrease-the-delay-between-change-notification-and-s.patch b/0001-Decrease-the-delay-between-change-notification-and-s.patch new file mode 100644 index 0000000..e9cf8fd --- /dev/null +++ b/0001-Decrease-the-delay-between-change-notification-and-s.patch @@ -0,0 +1,30 @@ +From 7ad5c6200a0a154895b4cbf8be21d721e2b83ae2 Mon Sep 17 00:00:00 2001 +From: Fabian Vogt +Date: Sun, 18 Nov 2018 14:55:30 +0100 +Subject: [PATCH] Decrease the delay between change notification and sycoca + rebuild to 1s +References: boo#1111420 + +Currently it waits 10s before doing anything, which is too much. +If another modification happens during the delay, it's delayed further, so this +shouldn't be an issue. +--- + src/kded.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/kded.cpp b/src/kded.cpp +index ed03dcd..a2f4abc 100644 +--- a/src/kded.cpp ++++ b/src/kded.cpp +@@ -556,7 +556,7 @@ void Kded::dirDeleted(const QString &path) + + void Kded::update(const QString &) + { +- m_pTimer->start(10000); ++ m_pTimer->start(1000); + } + + void Kded::readDirectory(const QString &_path) +-- +2.19.0 + diff --git a/kded.changes b/kded.changes index 7ff4292..3dc27d0 100644 --- a/kded.changes +++ b/kded.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Nov 18 13:59:05 UTC 2018 - Fabian Vogt + +- Add patch to rebuild sycoca quicker (boo#1111420): + * 0001-Decrease-the-delay-between-change-notification-and-s.patch + ------------------------------------------------------------------- Sun Nov 11 19:48:04 UTC 2018 - lbeltrame@kde.org diff --git a/kded.spec b/kded.spec index 5ec6c69..49a77a0 100644 --- a/kded.spec +++ b/kded.spec @@ -30,6 +30,8 @@ License: LGPL-2.1-or-later Group: System/GUI/KDE URL: https://www.kde.org Source: http://download.kde.org/stable/frameworks/%{_tar_path}/%{name}-%{version}.tar.xz +# PATCH-FIX-OPENSUSE (for now mostly to get openQA's opinion) +Patch100: 0001-Decrease-the-delay-between-change-notification-and-s.patch BuildRequires: cmake >= 3.0 BuildRequires: extra-cmake-modules >= %{_kf5_bugfix_version} BuildRequires: fdupes @@ -70,7 +72,7 @@ Development files. %lang_package %prep -%setup -q +%autosetup -p1 %build %cmake_kf5 -d build