From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DAB73158010 for ; Sun, 29 Jan 2023 00:12:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2E29AE0938; Sun, 29 Jan 2023 00:12:24 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 17943E0938 for ; Sun, 29 Jan 2023 00:12:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4B8A1340EAC for ; Sun, 29 Jan 2023 00:12:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F0EBC888 for ; Sun, 29 Jan 2023 00:12:20 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1674951133.dff14b6e05b77bda4478c71e1ef9af209096dacb.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: kde-frameworks/kded/files/, kde-frameworks/kded/ X-VCS-Repository: repo/gentoo X-VCS-Files: kde-frameworks/kded/files/kded-5.102.0-only-recreate-icons-if-icon-dir-changed.patch kde-frameworks/kded/kded-5.102.0-r1.ebuild X-VCS-Directories: kde-frameworks/kded/ kde-frameworks/kded/files/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: dff14b6e05b77bda4478c71e1ef9af209096dacb X-VCS-Branch: master Date: Sun, 29 Jan 2023 00:12:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ee55c44d-dc78-4107-9941-488124f37aa2 X-Archives-Hash: 718911904acfa98c1e90252ebda03fd1 commit: dff14b6e05b77bda4478c71e1ef9af209096dacb Author: Andreas Sturmlechner gentoo org> AuthorDate: Sat Jan 28 23:55:53 2023 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Jan 29 00:12:13 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dff14b6e kde-frameworks/kded: Only recreate icons if an icon dir changed Upstream commit 23cb03267ae1b1cdb8a75be1992d2fbf122aaa6e KDE-bug: https://bugs.kde.org/show_bug.cgi?id=463353 Signed-off-by: Andreas Sturmlechner gentoo.org> ...0-only-recreate-icons-if-icon-dir-changed.patch | 34 ++++++++++++++++++ kde-frameworks/kded/kded-5.102.0-r1.ebuild | 42 ++++++++++++++++++++++ 2 files changed, 76 insertions(+) diff --git a/kde-frameworks/kded/files/kded-5.102.0-only-recreate-icons-if-icon-dir-changed.patch b/kde-frameworks/kded/files/kded-5.102.0-only-recreate-icons-if-icon-dir-changed.patch new file mode 100644 index 000000000000..3fd652bd2483 --- /dev/null +++ b/kde-frameworks/kded/files/kded-5.102.0-only-recreate-icons-if-icon-dir-changed.patch @@ -0,0 +1,34 @@ +From 23cb03267ae1b1cdb8a75be1992d2fbf122aaa6e Mon Sep 17 00:00:00 2001 +From: David Redondo +Date: Tue, 24 Jan 2023 10:20:01 +0100 +Subject: [PATCH] Only recreate icons if an icon dir changed + +Other paths that we are watching can end in "icons" +as we are watching subdirs. Make sure to not take the wrong code +path and only do an icon change if one our watched icon dirs +changes. +BUG:463353 +FIXED-IN:5.103 + + +(cherry picked from commit b6a3e25e81014110f1e0f470832006cc60cbc86d) +--- + src/kded.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/kded.cpp b/src/kded.cpp +index 1f90f9c..b473f1c 100644 +--- a/src/kded.cpp ++++ b/src/kded.cpp +@@ -525,7 +525,7 @@ void Kded::dirDeleted(const QString &path) + + void Kded::update(const QString &path) + { +- if (path.endsWith(QLatin1String("/icons"))) { ++ if (path.endsWith(QLatin1String("/icons")) && m_pDirWatch->contains(path)) { + // If the dir was created or updated there could be new folders to merge into the active theme(s) + QDBusMessage message = QDBusMessage::createSignal(QStringLiteral("/KIconLoader"), QStringLiteral("org.kde.KIconLoader"), QStringLiteral("iconChanged")); + message << 0; +-- +GitLab + diff --git a/kde-frameworks/kded/kded-5.102.0-r1.ebuild b/kde-frameworks/kded/kded-5.102.0-r1.ebuild new file mode 100644 index 000000000000..81846924c148 --- /dev/null +++ b/kde-frameworks/kded/kded-5.102.0-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +ECM_QTHELP="false" +ECM_TEST="false" +PVCUT=$(ver_cut 1-2) +QTMIN=5.15.5 +inherit ecm frameworks.kde.org + +DESCRIPTION="Central daemon of KDE workspaces" + +LICENSE="LGPL-2+" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86" +IUSE="+man" + +DEPEND=" + >=dev-qt/qtdbus-${QTMIN}:5 + >=dev-qt/qtgui-${QTMIN}:5 + >=dev-qt/qtwidgets-${QTMIN}:5 + =kde-frameworks/kconfig-${PVCUT}*:5[dbus] + =kde-frameworks/kcoreaddons-${PVCUT}*:5 + =kde-frameworks/kcrash-${PVCUT}*:5 + =kde-frameworks/kdbusaddons-${PVCUT}*:5 + =kde-frameworks/kinit-${PVCUT}*:5 + =kde-frameworks/kservice-${PVCUT}*:5 +" +RDEPEND="${DEPEND}" +BDEPEND="man? ( >=kde-frameworks/kdoctools-${PVCUT}:5 )" + +PATCHES=( + "${FILESDIR}/${P}-only-recreate-icons-if-icon-dir-changed.patch" # KDE-bug 463353 +) + +src_configure() { + local mycmakeargs=( + $(cmake_use_find_package man KF5DocTools) + ) + + ecm_src_configure +}