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/, kde-plasma/plasma-workspace/files/
Date: Thu, 26 Nov 2015 16:06:42
Message-Id: 1448553977.2b17a8c3045a236a3931d59ac9cddd03ae72bc2b.kensington@gentoo
1 commit: 2b17a8c3045a236a3931d59ac9cddd03ae72bc2b
2 Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
3 AuthorDate: Mon Nov 23 19:46:42 2015 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 26 16:06:17 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=2b17a8c3
7
8 kde-plasma/plasma-workspace: Block dev-libs/xembed-sni-proxy
9
10 Fixes bug 566354
11
12 Package-Manager: portage-2.2.25
13
14 .../files/plasma-workspace-5.4-consolekit2.patch | 189 ---------------------
15 .../files/plasma-workspace-5.4.3-fix-drkonqi.patch | 32 ----
16 .../plasma-workspace-5.4.95.ebuild | 1 +
17 .../plasma-workspace-5.5.49.9999.ebuild | 1 +
18 .../plasma-workspace/plasma-workspace-9999.ebuild | 1 +
19 5 files changed, 3 insertions(+), 221 deletions(-)
20
21 diff --git a/kde-plasma/plasma-workspace/files/plasma-workspace-5.4-consolekit2.patch b/kde-plasma/plasma-workspace/files/plasma-workspace-5.4-consolekit2.patch
22 deleted file mode 100644
23 index 6131c90..0000000
24 --- a/kde-plasma/plasma-workspace/files/plasma-workspace-5.4-consolekit2.patch
25 +++ /dev/null
26 @@ -1,189 +0,0 @@
27 -From: Eric Koegel <eric.koegel@×××××.com>
28 -Date: Wed, 12 Aug 2015 08:33:39 +0000
29 -Subject: ConsoleKit2 support for screenlocker
30 -X-Git-Url: http://quickgit.kde.org/?p=plasma-workspace.git&a=commitdiff&h=72578284a1fda5f012cafcaccad6069fadbf9a25
31 ----
32 -ConsoleKit2 support for screenlocker
33 -
34 -ConsoleKit2 has the same API as systemd-logind for Lock, Unlock,
35 -PrepareForSleep, and Inhibit. This patch adds the functionality
36 -for ConsoleKit2 while attempting to minimize code duplication.
37 -
38 -REVIEW: 124469
39 ----
40 -
41 -
42 ---- a/ksmserver/screenlocker/logind.cpp
43 -+++ b/ksmserver/screenlocker/logind.cpp
44 -@@ -25,13 +25,17 @@
45 - #include <QDebug>
46 - #include <QDBusConnection>
47 - #include <QDBusConnectionInterface>
48 --#include <QDBusPendingCallWatcher>
49 - #include <QDBusServiceWatcher>
50 -
51 - const static QString s_login1Service = QStringLiteral("org.freedesktop.login1");
52 - const static QString s_login1Path = QStringLiteral("/org/freedesktop/login1");
53 - const static QString s_login1ManagerInterface = QStringLiteral("org.freedesktop.login1.Manager");
54 - const static QString s_login1SessionInterface = QStringLiteral("org.freedesktop.login1.Session");
55 -+
56 -+const static QString s_consolekitService = QStringLiteral("org.freedesktop.ConsoleKit");
57 -+const static QString s_consolekitPath = QStringLiteral("/org/freedesktop/ConsoleKit/Manager");
58 -+const static QString s_consolekitManagerInterface = QStringLiteral("org.freedesktop.ConsoleKit.Manager");
59 -+const static QString s_consolekitSessionInterface = QStringLiteral("org.freedesktop.ConsoleKit.Session");
60 -
61 - LogindIntegration::LogindIntegration(const QDBusConnection &connection, QObject *parent)
62 - : QObject(parent)
63 -@@ -42,6 +46,10 @@
64 - this))
65 - , m_connected(false)
66 - , m_inhibitFileDescriptor()
67 -+ , m_service(nullptr)
68 -+ , m_path(nullptr)
69 -+ , m_managerInterface(nullptr)
70 -+ , m_sessionInterface(nullptr)
71 - {
72 - connect(m_logindServiceWatcher, &QDBusServiceWatcher::serviceRegistered, this, &LogindIntegration::logindServiceRegistered);
73 - connect(m_logindServiceWatcher, &QDBusServiceWatcher::serviceUnregistered, this,
74 -@@ -67,6 +75,11 @@
75 - }
76 - if (reply.value().contains(s_login1Service)) {
77 - logindServiceRegistered();
78 -+ // Don't register ck if we have logind
79 -+ return;
80 -+ }
81 -+ if (reply.value().contains(s_consolekitService)) {
82 -+ consolekitServiceRegistered();
83 - }
84 - }
85 - );
86 -@@ -89,6 +102,40 @@
87 - message.setArguments(QVariantList() << (quint32) QCoreApplication::applicationPid());
88 - QDBusPendingReply<QDBusObjectPath> session = m_bus.asyncCall(message);
89 - QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(session, this);
90 -+
91 -+ m_service = &s_login1Service;
92 -+ m_path = &s_login1Path;
93 -+ m_managerInterface = &s_login1ManagerInterface;
94 -+ m_sessionInterface = &s_login1SessionInterface;
95 -+
96 -+ commonServiceRegistered(watcher);
97 -+}
98 -+
99 -+void LogindIntegration::consolekitServiceRegistered()
100 -+{
101 -+ // Don't try to register with ck if we have logind
102 -+ if (m_connected) {
103 -+ return;
104 -+ }
105 -+
106 -+ // get the current session
107 -+ QDBusMessage message = QDBusMessage::createMethodCall(s_consolekitService,
108 -+ s_consolekitPath,
109 -+ s_consolekitManagerInterface,
110 -+ QStringLiteral("GetCurrentSession"));
111 -+ QDBusPendingReply<QDBusObjectPath> session = m_bus.asyncCall(message);
112 -+ QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(session, this);
113 -+
114 -+ m_service = &s_consolekitService;
115 -+ m_path = &s_consolekitPath;
116 -+ m_managerInterface = &s_consolekitManagerInterface;
117 -+ m_sessionInterface = &s_consolekitSessionInterface;
118 -+
119 -+ commonServiceRegistered(watcher);
120 -+}
121 -+
122 -+void LogindIntegration::commonServiceRegistered(QDBusPendingCallWatcher *watcher)
123 -+{
124 - connect(watcher, &QDBusPendingCallWatcher::finished, this,
125 - [this](QDBusPendingCallWatcher *self) {
126 - QDBusPendingReply<QDBusObjectPath> reply = *self;
127 -@@ -97,7 +144,7 @@
128 - return;
129 - }
130 - if (!reply.isValid()) {
131 -- qDebug() << "The session is not registered with logind" << reply.error().message();
132 -+ qDebug() << "The session is not registered: " << reply.error().message();
133 - return;
134 - }
135 - const QString sessionPath = reply.value().path();
136 -@@ -105,15 +152,15 @@
137 -
138 - // connections need to be done this way as the object exposes both method and signal
139 - // with name "Lock"/"Unlock". Qt is not able to automatically handle this.
140 -- m_bus.connect(s_login1Service,
141 -+ m_bus.connect(*m_service,
142 - sessionPath,
143 -- s_login1SessionInterface,
144 -+ *m_sessionInterface,
145 - QStringLiteral("Lock"),
146 - this,
147 - SIGNAL(requestLock()));
148 -- m_bus.connect(s_login1Service,
149 -+ m_bus.connect(*m_service,
150 - sessionPath,
151 -- s_login1SessionInterface,
152 -+ *m_sessionInterface,
153 - QStringLiteral("Unlock"),
154 - this,
155 - SIGNAL(requestUnlock()));
156 -@@ -123,9 +170,9 @@
157 - );
158 -
159 - // connect to manager object's signals we need
160 -- m_bus.connect(s_login1Service,
161 -- s_login1Path,
162 -- s_login1ManagerInterface,
163 -+ m_bus.connect(*m_service,
164 -+ *m_path,
165 -+ *m_managerInterface,
166 - QStringLiteral("PrepareForSleep"),
167 - this,
168 - SIGNAL(prepareForSleep(bool)));
169 -@@ -136,9 +183,14 @@
170 - if (m_inhibitFileDescriptor.isValid()) {
171 - return;
172 - }
173 -- QDBusMessage message = QDBusMessage::createMethodCall(s_login1Service,
174 -- s_login1Path,
175 -- s_login1ManagerInterface,
176 -+
177 -+ if (!m_connected) {
178 -+ return;
179 -+ }
180 -+
181 -+ QDBusMessage message = QDBusMessage::createMethodCall(*m_service,
182 -+ *m_path,
183 -+ *m_managerInterface,
184 - QStringLiteral("Inhibit"));
185 - message.setArguments(QVariantList({QStringLiteral("sleep"),
186 - i18n("Screen Locker"),
187 -
188 ---- a/ksmserver/screenlocker/logind.h
189 -+++ b/ksmserver/screenlocker/logind.h
190 -@@ -23,6 +23,7 @@
191 - #include <QDBusConnection>
192 - #include <QDBusUnixFileDescriptor>
193 - #include <QObject>
194 -+#include <QDBusPendingCallWatcher>
195 -
196 - class QDBusServiceWatcher;
197 -
198 -@@ -59,10 +60,16 @@
199 - **/
200 - explicit LogindIntegration(const QDBusConnection &connection, QObject *parent = nullptr);
201 - void logindServiceRegistered();
202 -+ void consolekitServiceRegistered();
203 -+ void commonServiceRegistered(QDBusPendingCallWatcher *watcher);
204 - QDBusConnection m_bus;
205 - QDBusServiceWatcher *m_logindServiceWatcher;
206 - bool m_connected;
207 - QDBusUnixFileDescriptor m_inhibitFileDescriptor;
208 -+ const QString *m_service;
209 -+ const QString *m_path;
210 -+ const QString *m_managerInterface;
211 -+ const QString *m_sessionInterface;
212 - };
213 -
214 - #endif
215 -
216
217 diff --git a/kde-plasma/plasma-workspace/files/plasma-workspace-5.4.3-fix-drkonqi.patch b/kde-plasma/plasma-workspace/files/plasma-workspace-5.4.3-fix-drkonqi.patch
218 deleted file mode 100644
219 index 9aa89ca..0000000
220 --- a/kde-plasma/plasma-workspace/files/plasma-workspace-5.4.3-fix-drkonqi.patch
221 +++ /dev/null
222 @@ -1,32 +0,0 @@
223 -From: David Edmundson <kde@×××××××××××××××××.uk>
224 -Date: Wed, 21 Oct 2015 16:42:01 +0000
225 -Subject: Don't connect to signals which don't exist
226 -X-Git-Url: http://quickgit.kde.org/?p=plasma-workspace.git&a=commitdiff&h=2441d350ef571329b67848f79668f3956534806e
227 ----
228 -Don't connect to signals which don't exist
229 -
230 -Fix KDialog porting
231 ----
232 -
233 -
234 ---- a/drkonqi/bugzillaintegration/reportassistantpages_bugzilla_duplicates.cpp
235 -+++ b/drkonqi/bugzillaintegration/reportassistantpages_bugzilla_duplicates.cpp
236 -@@ -574,7 +574,7 @@
237 - QIcon::fromTheme("view-refresh"),
238 - i18nc("@info:tooltip", "Use this button to retry "
239 - "loading the bug report.")));
240 -- connect(ui.m_retryButton, SIGNAL(clicked()), this, SLOT(reloadReport()));
241 -+ connect(ui.m_retryButton, &QPushButton::clicked, this, &BugzillaReportInformationDialog::reloadReport);
242 -
243 - m_suggestButton = new QPushButton(this);
244 - ui.buttonBox->addButton(m_suggestButton, QDialogButtonBox::ActionRole);
245 -@@ -583,7 +583,7 @@
246 - QIcon::fromTheme("list-add"), i18nc("@info:tooltip", "Use this button to suggest that "
247 - "the crash you experienced is related to this bug "
248 - "report")));
249 -- connect(this, SIGNAL(user1Clicked()) , this, SLOT(relatedReportClicked()));
250 -+ connect(m_suggestButton, &QPushButton::clicked, this, &BugzillaReportInformationDialog::relatedReportClicked);
251 -
252 - connect(ui.m_showOwnBacktraceCheckBox, SIGNAL(toggled(bool)), this, SLOT(toggleShowOwnBacktrace(bool)));
253 -
254 -
255
256 diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.4.95.ebuild b/kde-plasma/plasma-workspace/plasma-workspace-5.4.95.ebuild
257 index 704b6fb..4c4ba5c 100644
258 --- a/kde-plasma/plasma-workspace/plasma-workspace-5.4.95.ebuild
259 +++ b/kde-plasma/plasma-workspace/plasma-workspace-5.4.95.ebuild
260 @@ -99,6 +99,7 @@ RDEPEND="${COMMON_DEPEND}
261 x11-apps/xrdb
262 x11-apps/xset
263 x11-apps/xsetroot
264 + !dev-libs/xembed-sni-proxy
265 !kde-base/freespacenotifier:4
266 !kde-base/libtaskmanager:4
267 !kde-base/kcminit:4
268
269 diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.5.49.9999.ebuild b/kde-plasma/plasma-workspace/plasma-workspace-5.5.49.9999.ebuild
270 index b432c4c..ab72864 100644
271 --- a/kde-plasma/plasma-workspace/plasma-workspace-5.5.49.9999.ebuild
272 +++ b/kde-plasma/plasma-workspace/plasma-workspace-5.5.49.9999.ebuild
273 @@ -99,6 +99,7 @@ RDEPEND="${COMMON_DEPEND}
274 x11-apps/xrdb
275 x11-apps/xset
276 x11-apps/xsetroot
277 + !dev-libs/xembed-sni-proxy
278 !kde-base/freespacenotifier:4
279 !kde-base/libtaskmanager:4
280 !kde-base/kcminit:4
281
282 diff --git a/kde-plasma/plasma-workspace/plasma-workspace-9999.ebuild b/kde-plasma/plasma-workspace/plasma-workspace-9999.ebuild
283 index 971bf3e..b1366d9 100644
284 --- a/kde-plasma/plasma-workspace/plasma-workspace-9999.ebuild
285 +++ b/kde-plasma/plasma-workspace/plasma-workspace-9999.ebuild
286 @@ -99,6 +99,7 @@ RDEPEND="${COMMON_DEPEND}
287 x11-apps/xrdb
288 x11-apps/xset
289 x11-apps/xsetroot
290 + !dev-libs/xembed-sni-proxy
291 !kde-base/freespacenotifier:4
292 !kde-base/libtaskmanager:4
293 !kde-base/kcminit:4