From 43b0ce3ace422ea5123cb0e7ecaaadca5668e14f Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Tue, 20 Oct 2026 22:34:29 +0200 Subject: [PATCH] kde-frameworks/baloo: Do not start service too early Closes: https://bugs.gentoo.org/984337 Signed-off-by: Andreas Sturmlechner --- kde-frameworks/baloo/baloo-6.31.0-r1.ebuild | 36 +++++++++++++++++++ ....31.0-do-not-start-service-too-early.patch | 30 ++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 kde-frameworks/baloo/baloo-6.31.0-r1.ebuild create mode 100644 kde-frameworks/baloo/files/baloo-6.31.0-do-not-start-service-too-early.patch diff --git a/kde-frameworks/baloo/baloo-6.31.0-r1.ebuild b/kde-frameworks/baloo/baloo-6.31.0-r1.ebuild new file mode 100644 index 0000000000000..fb8b764ffbe5d --- /dev/null +++ b/kde-frameworks/baloo/baloo-6.31.0-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +ECM_TEST="forceoptional" +QTMIN=6.10.1 +inherit ecm frameworks.kde.org + +DESCRIPTION="Framework for searching and managing metadata" + +LICENSE="LGPL-2+" +KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86" +IUSE="" + +RESTRICT="test" # bug 624250 + +DEPEND=" + >=dev-db/lmdb-0.9.17 + >=dev-qt/qtbase-${QTMIN}:6[dbus,gui,widgets] + >=dev-qt/qtdeclarative-${QTMIN}:6 + =kde-frameworks/kconfig-${KDE_CATV}*:6 + =kde-frameworks/kcoreaddons-${KDE_CATV}*:6 + =kde-frameworks/kcrash-${KDE_CATV}*:6 + =kde-frameworks/kdbusaddons-${KDE_CATV}*:6 + =kde-frameworks/kfilemetadata-${KDE_CATV}*:6 + =kde-frameworks/ki18n-${KDE_CATV}*:6 + =kde-frameworks/kidletime-${KDE_CATV}*:6 + =kde-frameworks/kio-${KDE_CATV}*:6 + =kde-frameworks/solid-${KDE_CATV}*:6 +" +RDEPEND="${DEPEND} + !${CATEGORY}/${PN}:5[-kf6compat(-)] +" + +PATCHES=( "${FILESDIR}/${P}-do-not-start-service-too-early.patch" ) # bug #984337 diff --git a/kde-frameworks/baloo/files/baloo-6.31.0-do-not-start-service-too-early.patch b/kde-frameworks/baloo/files/baloo-6.31.0-do-not-start-service-too-early.patch new file mode 100644 index 0000000000000..a223f42df58d9 --- /dev/null +++ b/kde-frameworks/baloo/files/baloo-6.31.0-do-not-start-service-too-early.patch @@ -0,0 +1,30 @@ +From 096b0d3f7166ed2bde0266cfad9f04ca50903090 Mon Sep 17 00:00:00 2001 +From: Harald Sitter +Date: Tue, 13 Oct 2026 18:32:06 +0200 +Subject: [PATCH] service: do not start too early + +previously the service got queued along with all the other early start +units but in fact we a) don't need to be up ASAP and b) require a +compositor to avoid crashing the extractor on neither working wayland or +x11 sockets. as such, order the service after the core session target +has been reached +--- + src/file/kde-baloo.service.in | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/file/kde-baloo.service.in b/src/file/kde-baloo.service.in +index ddb698e5..e0f39606 100644 +--- a/src/file/kde-baloo.service.in ++++ b/src/file/kde-baloo.service.in +@@ -1,6 +1,8 @@ + [Unit] + Description=Baloo File Indexer Daemon + PartOf=graphical-session.target ++# We need the compositor to be running since we fork QGuiApplications. ++After=graphical-session.target + + [Service] + ExecStart=@KDE_INSTALL_FULL_LIBEXECDIR_KF@/baloo_file +-- +GitLab +