Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-frameworks/baloo/, kde-frameworks/baloo/files/
Date: Sat, 26 Sep 2015 16:00:54
Message-Id: 1443283240.233ee641eb0819f6795c07b6a33d927dcc0c0e2e.kensington@gentoo
1 commit: 233ee641eb0819f6795c07b6a33d927dcc0c0e2e
2 Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
3 AuthorDate: Tue Sep 22 19:37:53 2015 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 26 16:00:40 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=233ee641
7
8 kde-frameworks/baloo: Backport fix for baloo crash if disabled
9
10 Upstream bug: https://bugs.kde.org/show_bug.cgi?id=353049
11
12 Package-Manager: portage-2.2.20.1
13
14 kde-frameworks/baloo/baloo-5.14.0-r1.ebuild | 36 ++++++++++++++++++++++
15 .../files/baloo-5.14.0-check-if-db-open.patch | 28 +++++++++++++++++
16 2 files changed, 64 insertions(+)
17
18 diff --git a/kde-frameworks/baloo/baloo-5.14.0-r1.ebuild b/kde-frameworks/baloo/baloo-5.14.0-r1.ebuild
19 new file mode 100644
20 index 0000000..bf7b12e
21 --- /dev/null
22 +++ b/kde-frameworks/baloo/baloo-5.14.0-r1.ebuild
23 @@ -0,0 +1,36 @@
24 +# Copyright 1999-2015 Gentoo Foundation
25 +# Distributed under the terms of the GNU General Public License v2
26 +# $Id$
27 +
28 +EAPI=5
29 +
30 +KDE_PUNT_BOGUS_DEPS="true"
31 +inherit kde5
32 +
33 +DESCRIPTION="Framework for searching and managing metadata"
34 +KEYWORDS="~amd64 ~x86"
35 +IUSE=""
36 +
37 +DEPEND="
38 + $(add_frameworks_dep kauth)
39 + $(add_frameworks_dep kconfig)
40 + $(add_frameworks_dep kcoreaddons)
41 + $(add_frameworks_dep kcrash)
42 + $(add_frameworks_dep kdbusaddons)
43 + $(add_frameworks_dep kfilemetadata)
44 + $(add_frameworks_dep ki18n)
45 + $(add_frameworks_dep kidletime)
46 + $(add_frameworks_dep kio)
47 + $(add_frameworks_dep solid)
48 + dev-db/lmdb
49 + dev-qt/qtdbus:5
50 + dev-qt/qtdeclarative:5
51 + dev-qt/qtgui:5
52 + dev-qt/qtwidgets:5
53 + sys-apps/attr
54 +"
55 +RDEPEND="${DEPEND}
56 + !kde-base/baloo:4[-minimal(-)]
57 +"
58 +
59 +PATCHES=( "${FILESDIR}/${P}-check-if-db-open.patch" )
60
61 diff --git a/kde-frameworks/baloo/files/baloo-5.14.0-check-if-db-open.patch b/kde-frameworks/baloo/files/baloo-5.14.0-check-if-db-open.patch
62 new file mode 100644
63 index 0000000..76c71fb
64 --- /dev/null
65 +++ b/kde-frameworks/baloo/files/baloo-5.14.0-check-if-db-open.patch
66 @@ -0,0 +1,28 @@
67 +From: Boudhayan Gupta <me@×××××××××××.com>
68 +Date: Tue, 22 Sep 2015 18:55:36 +0000
69 +Subject: Fail Baloo::File::load() if the Database is not open.
70 +X-Git-Url: http://quickgit.kde.org/?p=baloo.git&a=commitdiff&h=29fe68f2657df503926e629477a41f7d9435048f
71 +---
72 +Fail Baloo::File::load() if the Database is not open.
73 +Fixes crash if selecting multiple files in Dolphin with
74 +Baloo disabled.
75 +
76 +BUG: 353049
77 +REVIEW: 125352
78 +---
79 +
80 +
81 +--- a/src/lib/file.cpp
82 ++++ b/src/lib/file.cpp
83 +@@ -98,6 +98,10 @@
84 + Database *db = globalDatabaseInstance();
85 + db->open(Database::OpenDatabase);
86 +
87 ++ if (!db->isOpen()) {
88 ++ return false;
89 ++ }
90 ++
91 + quint64 id = filePathToId(QFile::encodeName(d->url));
92 + if (!id) {
93 + return false;
94 +