diff options
author | 2021-05-12 09:42:48 +0200 | |
---|---|---|
committer | 2021-05-12 09:49:05 +0200 | |
commit | be5ea480b3dc94ebd1bc48da1b21bcf4dd60337d (patch) | |
tree | 77b14a2d9620159ca9392020f1e3b087687f5aac /kde-apps/dolphin | |
parent | kde.org.eclass: Mark KDE Gear 21.04.1 unreleased (diff) | |
download | kde-be5ea480b3dc94ebd1bc48da1b21bcf4dd60337d.tar.gz kde-be5ea480b3dc94ebd1bc48da1b21bcf4dd60337d.tar.bz2 kde-be5ea480b3dc94ebd1bc48da1b21bcf4dd60337d.zip |
kde-apps/dolphin: Update fix-no-semantic-desktop.patch w/ upstream MR
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-apps/dolphin')
5 files changed, 47 insertions, 31 deletions
diff --git a/kde-apps/dolphin/dolphin-21.04.1.ebuild b/kde-apps/dolphin/dolphin-21.04.1.ebuild index 642d4e5739..c2cccc3404 100644 --- a/kde-apps/dolphin/dolphin-21.04.1.ebuild +++ b/kde-apps/dolphin/dolphin-21.04.1.ebuild @@ -62,8 +62,8 @@ RDEPEND="${DEPEND} >=kde-apps/kio-extras-${PVCUT}:5 " -# TODO: Downstream hack, track upstream bug for better solution -PATCHES=( "${FILESDIR}/${PN}-21.04.0-fix-no-semantic-desktop.patch" ) # KDE-bug 435586 +# pending https://invent.kde.org/system/dolphin/-/merge_requests/208 +PATCHES=( "${FILESDIR}/${P}-fix-no-semantic-desktop.patch" ) # KDE-bug 435586 src_configure() { local mycmakeargs=( diff --git a/kde-apps/dolphin/dolphin-21.04.49.9999.ebuild b/kde-apps/dolphin/dolphin-21.04.49.9999.ebuild index 10e34f4c6d..7198ee2405 100644 --- a/kde-apps/dolphin/dolphin-21.04.49.9999.ebuild +++ b/kde-apps/dolphin/dolphin-21.04.49.9999.ebuild @@ -62,8 +62,8 @@ RDEPEND="${DEPEND} >=kde-apps/kio-extras-${PVCUT}:5 " -# TODO: Downstream hack, track upstream bug for better solution -PATCHES=( "${FILESDIR}/${PN}-21.04.0-fix-no-semantic-desktop.patch" ) # KDE-bug 435586 +# pending https://invent.kde.org/system/dolphin/-/merge_requests/208 +PATCHES=( "${FILESDIR}/${PN}-21.04.1-fix-no-semantic-desktop.patch" ) # KDE-bug 435586 src_configure() { local mycmakeargs=( diff --git a/kde-apps/dolphin/dolphin-9999.ebuild b/kde-apps/dolphin/dolphin-9999.ebuild index 530de3cad0..b043a6542c 100644 --- a/kde-apps/dolphin/dolphin-9999.ebuild +++ b/kde-apps/dolphin/dolphin-9999.ebuild @@ -61,10 +61,8 @@ RDEPEND="${DEPEND} >=kde-apps/kio-extras-${PVCUT}:5 " -PATCHES=( - # TODO: Downstream hack, track upstream bug for better solution - "${FILESDIR}/${PN}-21.04.0-fix-no-semantic-desktop.patch" # KDE-bug 435586 -) +# pending https://invent.kde.org/system/dolphin/-/merge_requests/208 +PATCHES=( "${FILESDIR}/${PN}-21.04.1-fix-no-semantic-desktop.patch" ) # KDE-bug 435586 src_configure() { local mycmakeargs=( diff --git a/kde-apps/dolphin/files/dolphin-21.04.0-fix-no-semantic-desktop.patch b/kde-apps/dolphin/files/dolphin-21.04.0-fix-no-semantic-desktop.patch deleted file mode 100644 index 4f97a53c52..0000000000 --- a/kde-apps/dolphin/files/dolphin-21.04.0-fix-no-semantic-desktop.patch +++ /dev/null @@ -1,23 +0,0 @@ -diff --git a/src/search/dolphinfacetswidget.cpp b/src/search/dolphinfacetswidget.cpp -index d52d146a8..9f0078631 100644 ---- a/src/search/dolphinfacetswidget.cpp -+++ b/src/search/dolphinfacetswidget.cpp -@@ -7,6 +7,8 @@ - - #include "dolphinfacetswidget.h" - -+#include <config-baloo.h> -+ - #include <KLocalizedString> - - #include <QComboBox> -@@ -257,7 +259,9 @@ void DolphinFacetsWidget::updateTagsSelector() - void DolphinFacetsWidget::updateTagsMenu() - { - updateTagsMenuItems({}, {}); -+#ifdef HAVE_BALOO - m_tagsLister.openUrl(QUrl(QStringLiteral("tags:/")), KCoreDirLister::OpenUrlFlag::Reload); -+#endif - } - - void DolphinFacetsWidget::updateTagsMenuItems(const QUrl&, const KFileItemList& items) diff --git a/kde-apps/dolphin/files/dolphin-21.04.1-fix-no-semantic-desktop.patch b/kde-apps/dolphin/files/dolphin-21.04.1-fix-no-semantic-desktop.patch new file mode 100644 index 0000000000..5636d0532e --- /dev/null +++ b/kde-apps/dolphin/files/dolphin-21.04.1-fix-no-semantic-desktop.patch @@ -0,0 +1,41 @@ +From 29636baff0f0cf8d769aa75b1c458b96cf83b828 Mon Sep 17 00:00:00 2001 +From: Ismael Asensio <isma.af@gmail.com> +Date: Sun, 9 May 2021 21:10:44 +0200 +Subject: [PATCH] search/facetswidget: Check for protocol before trying to + fetch tags + +This was causing an error when trying to list items from the +non-existent `tags:` protocol. + +BUG: 435586 +FIXED-IN: 21.04.1 +--- + src/search/dolphinfacetswidget.cpp | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/src/search/dolphinfacetswidget.cpp b/src/search/dolphinfacetswidget.cpp +index d4079f1eb..e8a43101f 100644 +--- a/src/search/dolphinfacetswidget.cpp ++++ b/src/search/dolphinfacetswidget.cpp +@@ -8,6 +8,7 @@ + #include "dolphinfacetswidget.h" + + #include <KLocalizedString> ++#include <KProtocolInfo> + + #include <QComboBox> + #include <QDate> +@@ -245,7 +246,9 @@ void DolphinFacetsWidget::updateTagsSelector() + void DolphinFacetsWidget::updateTagsMenu() + { + updateTagsMenuItems({}, {}); +- m_tagsLister.openUrl(QUrl(QStringLiteral("tags:/")), KCoreDirLister::OpenUrlFlag::Reload); ++ if (KProtocolInfo::isKnownProtocol(QStringLiteral("tags"))) { ++ m_tagsLister.openUrl(QUrl(QStringLiteral("tags:/")), KCoreDirLister::OpenUrlFlag::Reload); ++ } + } + + void DolphinFacetsWidget::updateTagsMenuItems(const QUrl&, const KFileItemList& items) +-- +GitLab + |