kde-frameworks/baloo: Sync IndexerConfig on exit
authorAndreas Sturmlechner <asturm@gentoo.org>
Thu, 13 Feb 2020 21:51:28 +0000 (22:51 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Thu, 13 Feb 2020 23:19:26 +0000 (00:19 +0100)
See also: https://mail.kde.org/pipermail/plasma-devel/2020-February/111114.html
KDE-Bug: https://bugs.kde.org/show_bug.cgi?id=417127
Package-Manager: Portage-2.3.88, Repoman-2.3.20
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
kde-frameworks/baloo/baloo-5.67.0-r1.ebuild [new file with mode: 0644]
kde-frameworks/baloo/files/baloo-5.67.0-sync-IndexerConfig-on-exit.patch [new file with mode: 0644]

diff --git a/kde-frameworks/baloo/baloo-5.67.0-r1.ebuild b/kde-frameworks/baloo/baloo-5.67.0-r1.ebuild
new file mode 100644 (file)
index 0000000..c7b6552
--- /dev/null
@@ -0,0 +1,37 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+ECM_TEST="forceoptional"
+PVCUT=$(ver_cut 1-2)
+QTMIN=5.12.3
+VIRTUALX_REQUIRED="test"
+inherit ecm kde.org
+
+DESCRIPTION="Framework for searching and managing metadata"
+LICENSE="LGPL-2+"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+IUSE=""
+
+DEPEND="
+       >=dev-db/lmdb-0.9.17
+       >=dev-qt/qtdbus-${QTMIN}:5
+       >=dev-qt/qtdeclarative-${QTMIN}:5
+       >=dev-qt/qtgui-${QTMIN}:5
+       >=dev-qt/qtwidgets-${QTMIN}:5
+       =kde-frameworks/kconfig-${PVCUT}*:5
+       =kde-frameworks/kcoreaddons-${PVCUT}*:5
+       =kde-frameworks/kcrash-${PVCUT}*:5
+       =kde-frameworks/kdbusaddons-${PVCUT}*:5
+       =kde-frameworks/kfilemetadata-${PVCUT}*:5
+       =kde-frameworks/ki18n-${PVCUT}*:5
+       =kde-frameworks/kidletime-${PVCUT}*:5
+       =kde-frameworks/kio-${PVCUT}*:5
+       =kde-frameworks/solid-${PVCUT}*:5
+"
+RDEPEND="${DEPEND}"
+
+RESTRICT+=" test" # bug 624250
+
+PATCHES=( "${FILESDIR}/${P}-sync-IndexerConfig-on-exit.patch" )
diff --git a/kde-frameworks/baloo/files/baloo-5.67.0-sync-IndexerConfig-on-exit.patch b/kde-frameworks/baloo/files/baloo-5.67.0-sync-IndexerConfig-on-exit.patch
new file mode 100644 (file)
index 0000000..d18b7e2
--- /dev/null
@@ -0,0 +1,37 @@
+From a0f8e748159b6bc0b8e5eaa1f9eb58a18ca736fa Mon Sep 17 00:00:00 2001
+From: David Edmundson <kde@davidedmundson.co.uk>
+Date: Thu, 13 Feb 2020 16:52:40 +0000
+Subject: Sync IndexerConfig on exit
+
+Summary:
+KCoreConfigSkeleton, unlike KConfig does not automagically save on exit.
+
+BUG: 417127
+
+Test Plan:
+balooctl disable
+balooctl enable
+
+Subscribers: kde-frameworks-devel, #baloo
+
+Tags: #frameworks, #baloo
+
+Differential Revision: https://phabricator.kde.org/D27376
+---
+ src/lib/indexerconfig.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/lib/indexerconfig.cpp b/src/lib/indexerconfig.cpp
+index 66786b9..19ae342 100644
+--- a/src/lib/indexerconfig.cpp
++++ b/src/lib/indexerconfig.cpp
+@@ -43,6 +43,7 @@ IndexerConfig::IndexerConfig()
+ IndexerConfig::~IndexerConfig()
+ {
++    d->m_settings.save();
+     delete d;
+ }
+-- 
+cgit v1.1