Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: kde-plasma/plasma-workspace/files/, kde-plasma/plasma-workspace/
Date: Wed, 29 Apr 2015 15:04:05
Message-Id: 1430319739.05925f03204aa85f9e8a6c26f34b61150b6c5375.kensington@gentoo
1 commit: 05925f03204aa85f9e8a6c26f34b61150b6c5375
2 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 29 15:02:19 2015 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 29 15:02:19 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=05925f03
7
8 [kde-plasma/plasma-workspace] Backport patch from upstream to fix upstream bug #346870.
9
10 Package-Manager: portage-2.2.18
11
12 .../files/plasma-workspace-5.3.0-segfault.patch | 30 ++++++++++++++++++++++
13 ...3.0.ebuild => plasma-workspace-5.3.0-r1.ebuild} | 5 +++-
14 2 files changed, 34 insertions(+), 1 deletion(-)
15
16 diff --git a/kde-plasma/plasma-workspace/files/plasma-workspace-5.3.0-segfault.patch b/kde-plasma/plasma-workspace/files/plasma-workspace-5.3.0-segfault.patch
17 new file mode 100644
18 index 0000000..2a669cd
19 --- /dev/null
20 +++ b/kde-plasma/plasma-workspace/files/plasma-workspace-5.3.0-segfault.patch
21 @@ -0,0 +1,30 @@
22 +From a234c0923767649cc6545866a563ffc4dba58de2 Mon Sep 17 00:00:00 2001
23 +From: Marco Martin <notmart@×××××.com>
24 +Date: Wed, 29 Apr 2015 09:28:11 +0200
25 +Subject: [PATCH] check for model existence
26 +
27 +BUG:346870
28 +---
29 + wallpapers/image/image.cpp | 6 ++++++
30 + 1 file changed, 6 insertions(+)
31 +
32 +diff --git a/wallpapers/image/image.cpp b/wallpapers/image/image.cpp
33 +index a3b9c10..f5920bf 100644
34 +--- a/wallpapers/image/image.cpp
35 ++++ b/wallpapers/image/image.cpp
36 +@@ -799,6 +799,12 @@ void Image::removeWallpaper(QString name)
37 +
38 + void Image::commitDeletion()
39 + {
40 ++ //This is invokable from qml, so at any moment
41 ++ //we can't be sure the model exists
42 ++ if (!m_model) {
43 ++ return;
44 ++ }
45 ++
46 + for (const QString wallpaperCandidate : m_model->wallpapersAwaitingDeletion()) {
47 + removeWallpaper(wallpaperCandidate);
48 + }
49 +--
50 +2.0.5
51 +
52
53 diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.3.0.ebuild b/kde-plasma/plasma-workspace/plasma-workspace-5.3.0-r1.ebuild
54 similarity index 97%
55 rename from kde-plasma/plasma-workspace/plasma-workspace-5.3.0.ebuild
56 rename to kde-plasma/plasma-workspace/plasma-workspace-5.3.0-r1.ebuild
57 index 1445a90..7fb571f 100644
58 --- a/kde-plasma/plasma-workspace/plasma-workspace-5.3.0.ebuild
59 +++ b/kde-plasma/plasma-workspace/plasma-workspace-5.3.0-r1.ebuild
60 @@ -123,7 +123,10 @@ DEPEND="${COMMON_DEPEND}
61 x11-proto/xproto
62 "
63
64 -PATCHES=( "${FILESDIR}/${PN}-startkde-script.patch" )
65 +PATCHES=(
66 + "${FILESDIR}/${PN}-startkde-script.patch"
67 + "${FILESDIR}/${P}-segfault.patch"
68 +)
69
70 RESTRICT="test"