1 |
commit: 631aa62d62ba5deb30fd1e0044f1b56cf189630a |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 8 21:24:46 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 9 06:31:11 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=631aa62d |
7 |
|
8 |
kde-misc/yakuake: Drop 3.0.4 |
9 |
|
10 |
Package-Manager: Portage-2.3.36, Repoman-2.3.9 |
11 |
|
12 |
kde-misc/yakuake/Manifest | 1 - |
13 |
.../yakuake/files/yakuake-3.0.4-qdbus-crash.patch | 44 -------- |
14 |
kde-misc/yakuake/files/yakuake-3.0.4-qicon.patch | 32 ------ |
15 |
.../files/yakuake-3.0.4-qt-5.9-wayland.patch | 120 --------------------- |
16 |
kde-misc/yakuake/yakuake-3.0.4-r2.ebuild | 53 --------- |
17 |
5 files changed, 250 deletions(-) |
18 |
|
19 |
diff --git a/kde-misc/yakuake/Manifest b/kde-misc/yakuake/Manifest |
20 |
index 531ea738b8b..da483e10427 100644 |
21 |
--- a/kde-misc/yakuake/Manifest |
22 |
+++ b/kde-misc/yakuake/Manifest |
23 |
@@ -1,2 +1 @@ |
24 |
-DIST yakuake-3.0.4.tar.xz 367788 BLAKE2B 6c151ac1fa70d7cf3cfd00854d8f5ab553345a9d12186514d405428e8e7ad32d8405b1c562b420c46a713347d1e00e037b92e20801c51cd90a81e299e94c51d1 SHA512 e50fe742349e02116bb9d7edd61178fcbc215ace39d50b48fb8ec3095c948a7ff91add7be5d8778c817f9d5b4663d4cefe3e0ef197c7ec6e0b88b3158ff39659 |
25 |
DIST yakuake-3.0.5.tar.xz 347412 BLAKE2B 964b5abdbc377b2ff3c1c37ebf4cb2537dde00d8c4178bc7db1785701dee82c600cd775a38896d8ad8976cbe14427df094c4db0c425355b0330d2e8b4fbe23cd SHA512 17640590bb87b7c27e1e336cb82141b986103af95cfae2da129b69537d89a78eb0e21a6f5fb9ab26ed9e572f9edad055264f642afee6012e1a5a5c55d9dc2d22 |
26 |
|
27 |
diff --git a/kde-misc/yakuake/files/yakuake-3.0.4-qdbus-crash.patch b/kde-misc/yakuake/files/yakuake-3.0.4-qdbus-crash.patch |
28 |
deleted file mode 100644 |
29 |
index da3b042d701..00000000000 |
30 |
--- a/kde-misc/yakuake/files/yakuake-3.0.4-qdbus-crash.patch |
31 |
+++ /dev/null |
32 |
@@ -1,44 +0,0 @@ |
33 |
-From 09abe657c65ba482ce9253e54467d33276f88bc9 Mon Sep 17 00:00:00 2001 |
34 |
-From: Vangelis Tasoulas <cyberang3l@×××××.com> |
35 |
-Date: Sat, 16 Sep 2017 16:42:44 +0500 |
36 |
-Subject: Fixes a yakuake "index out of range" crash produced by QDBus exposed |
37 |
- function TabBar::sessionAtTab(int) |
38 |
- |
39 |
-Summary: |
40 |
-The function `TabBar::sessionAtTab(int index)` is exposed through QDBus and if a user/script passes a negative number, yakuake crashes with `index out of range`. |
41 |
- |
42 |
-This patch fixes that behaviour with a sanity check. If the user passes a negative number, return -1. |
43 |
- |
44 |
-Test Plan: |
45 |
-Run the command `qdbus org.kde.yakuake /yakuake/tabs org.kde.yakuake.sessionAtTab -1` |
46 |
-Yakuake will crash. |
47 |
- |
48 |
-Apply the patch and re-run the above `qdbus` command. It shouldn't be crashing now. |
49 |
- |
50 |
-Reviewers: #kde_applications, hein, alexeymin |
51 |
- |
52 |
-Reviewed By: #kde_applications, hein, alexeymin |
53 |
- |
54 |
-Subscribers: alexeymin |
55 |
- |
56 |
-Differential Revision: https://phabricator.kde.org/D7812 |
57 |
---- |
58 |
- app/tabbar.cpp | 2 +- |
59 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
60 |
- |
61 |
-diff --git a/app/tabbar.cpp b/app/tabbar.cpp |
62 |
-index b76cdee..1bc6fdd 100644 |
63 |
---- a/app/tabbar.cpp |
64 |
-+++ b/app/tabbar.cpp |
65 |
-@@ -914,7 +914,7 @@ void TabBar::setTabTitleInteractive(int sessionId, const QString& newTitle) |
66 |
- |
67 |
- int TabBar::sessionAtTab(int index) |
68 |
- { |
69 |
-- if (index > m_tabs.count() - 1) |
70 |
-+ if (index < 0 || index > m_tabs.count() - 1) |
71 |
- return -1; |
72 |
- else |
73 |
- return m_tabs.at(index); |
74 |
--- |
75 |
-cgit v0.11.2 |
76 |
- |
77 |
|
78 |
diff --git a/kde-misc/yakuake/files/yakuake-3.0.4-qicon.patch b/kde-misc/yakuake/files/yakuake-3.0.4-qicon.patch |
79 |
deleted file mode 100644 |
80 |
index 608a09cf39d..00000000000 |
81 |
--- a/kde-misc/yakuake/files/yakuake-3.0.4-qicon.patch |
82 |
+++ /dev/null |
83 |
@@ -1,32 +0,0 @@ |
84 |
-From 28138a891ff71236b3b8efcd1bc5fe7a2fe09b0d Mon Sep 17 00:00:00 2001 |
85 |
-From: Kai Uwe Broulik <kde@××××××××××××××.de> |
86 |
-Date: Wed, 2 Aug 2017 16:31:09 +0200 |
87 |
-Subject: [Appearance Settings] QIcon -> QIcon::fromTheme |
88 |
- |
89 |
-Most likely a porting error from KIcon |
90 |
- |
91 |
-Reviewed-By: Eike Hein |
92 |
---- |
93 |
- app/config/appearancesettings.cpp | 6 +++--- |
94 |
- 1 file changed, 3 insertions(+), 3 deletions(-) |
95 |
- |
96 |
-diff --git a/app/config/appearancesettings.cpp b/app/config/appearancesettings.cpp |
97 |
-index c21ac33..b7d5c6f 100644 |
98 |
---- a/app/config/appearancesettings.cpp |
99 |
-+++ b/app/config/appearancesettings.cpp |
100 |
-@@ -63,9 +63,9 @@ AppearanceSettings::AppearanceSettings(QWidget* parent) : QWidget(parent) |
101 |
- connect(installButton, SIGNAL(clicked()), this, SLOT(installSkin())); |
102 |
- connect(removeButton, SIGNAL(clicked()), this, SLOT(removeSelectedSkin())); |
103 |
- |
104 |
-- installButton->setIcon(QIcon(QStringLiteral("folder"))); |
105 |
-- removeButton->setIcon(QIcon(QStringLiteral("edit-delete"))); |
106 |
-- ghnsButton->setIcon(QIcon(QStringLiteral("get-hot-new-stuff"))); |
107 |
-+ installButton->setIcon(QIcon::fromTheme(QStringLiteral("folder"))); |
108 |
-+ removeButton->setIcon(QIcon::fromTheme(QStringLiteral("edit-delete"))); |
109 |
-+ ghnsButton->setIcon(QIcon::fromTheme(QStringLiteral("get-hot-new-stuff"))); |
110 |
- |
111 |
- m_knsConfigFileName = QLatin1String("yakuake.knsrc"); |
112 |
- m_knsDownloadManager = new KNSCore::DownloadManager(m_knsConfigFileName); |
113 |
--- |
114 |
-cgit v0.11.2 |
115 |
- |
116 |
|
117 |
diff --git a/kde-misc/yakuake/files/yakuake-3.0.4-qt-5.9-wayland.patch b/kde-misc/yakuake/files/yakuake-3.0.4-qt-5.9-wayland.patch |
118 |
deleted file mode 100644 |
119 |
index b24781dcc9f..00000000000 |
120 |
--- a/kde-misc/yakuake/files/yakuake-3.0.4-qt-5.9-wayland.patch |
121 |
+++ /dev/null |
122 |
@@ -1,120 +0,0 @@ |
123 |
-From 7534df21025b10fd236dd5a8f92d0dff7889e0ef Mon Sep 17 00:00:00 2001 |
124 |
-From: =?UTF-8?q?Martin=20Fl=C3=B6ser?= <mgraesslin@×××.org> |
125 |
-Date: Wed, 6 Sep 2017 18:42:01 +0200 |
126 |
-Subject: Make Yakuake work on Wayland with Qt 5.9 |
127 |
- |
128 |
-Summary: |
129 |
-Yakuake is also affected by the common problem that the integration |
130 |
-breaks once a window gets hidden, which is a very common feature of |
131 |
-Yakuake. |
132 |
- |
133 |
-This change tracks the PlasmaShellSurface, destroys it on hide and |
134 |
-recreates on show. Thus it's alwyas positioned as expected. |
135 |
- |
136 |
-Test Plan: |
137 |
-This commit was created using a yakuake which is positioned |
138 |
-correctly, although I pressed F12 a few times. |
139 |
- |
140 |
-Differential Revision: https://phabricator.kde.org/D7709 |
141 |
---- |
142 |
- app/mainwindow.cpp | 33 ++++++++++++++++++++++++++------- |
143 |
- app/mainwindow.h | 3 +++ |
144 |
- 2 files changed, 29 insertions(+), 7 deletions(-) |
145 |
- |
146 |
-diff --git a/app/mainwindow.cpp b/app/mainwindow.cpp |
147 |
-index a7b0d89..6fa9160 100644 |
148 |
---- a/app/mainwindow.cpp |
149 |
-+++ b/app/mainwindow.cpp |
150 |
-@@ -95,6 +95,7 @@ MainWindow::MainWindow(QWidget* parent) |
151 |
- m_isWayland = QGuiApplication::platformName().startsWith(QLatin1String("wayland")); |
152 |
- #if HAVE_KWAYLAND |
153 |
- m_plasmaShell = Q_NULLPTR; |
154 |
-+ m_plasmaShellSurface = Q_NULLPTR; |
155 |
- initWayland(); |
156 |
- #endif |
157 |
- |
158 |
-@@ -176,6 +177,21 @@ void MainWindow::initWayland() |
159 |
- registry->setup(); |
160 |
- connection->roundtrip(); |
161 |
- } |
162 |
-+ |
163 |
-+void MainWindow::initWaylandSurface() |
164 |
-+{ |
165 |
-+ if (m_plasmaShellSurface) { |
166 |
-+ return; |
167 |
-+ } |
168 |
-+ if (!m_plasmaShell) { |
169 |
-+ return; |
170 |
-+ } |
171 |
-+ if (auto surface = KWayland::Client::Surface::fromWindow(windowHandle())) { |
172 |
-+ m_plasmaShellSurface = m_plasmaShell->createSurface(surface, this); |
173 |
-+ m_plasmaShellSurface->setPosition(pos()); |
174 |
-+ } |
175 |
-+} |
176 |
-+ |
177 |
- #endif |
178 |
- |
179 |
- bool MainWindow::queryClose() |
180 |
-@@ -861,13 +877,7 @@ void MainWindow::setWindowGeometry(int newWidth, int newHeight, int newPosition) |
181 |
- setGeometry(workArea.x() + workArea.width() * newPosition * (100 - newWidth) / 10000, |
182 |
- workArea.y(), targetWidth, maxHeight); |
183 |
- #if HAVE_KWAYLAND |
184 |
-- if (m_plasmaShell) { |
185 |
-- if (auto surface = KWayland::Client::Surface::fromWindow(windowHandle())) { |
186 |
-- if (auto plasmaSurface = m_plasmaShell->createSurface(surface, this)) { |
187 |
-- plasmaSurface->setPosition(pos()); |
188 |
-- } |
189 |
-- } |
190 |
-- } |
191 |
-+ initWaylandSurface(); |
192 |
- #endif |
193 |
- |
194 |
- maxHeight -= m_titleBar->height(); |
195 |
-@@ -1303,6 +1313,10 @@ void MainWindow::sharedAfterOpenWindow() |
196 |
- |
197 |
- applyWindowProperties(); |
198 |
- |
199 |
-+#if HAVE_KWAYLAND |
200 |
-+ initWaylandSurface(); |
201 |
-+#endif |
202 |
-+ |
203 |
- emit windowOpened(); |
204 |
- } |
205 |
- |
206 |
-@@ -1316,6 +1330,11 @@ void MainWindow::sharedAfterHideWindow() |
207 |
- { |
208 |
- if (Settings::pollMouse()) toggleMousePoll(true); |
209 |
- |
210 |
-+#if HAVE_KWAYLAND |
211 |
-+ delete m_plasmaShellSurface; |
212 |
-+ m_plasmaShellSurface = Q_NULLPTR; |
213 |
-+#endif |
214 |
-+ |
215 |
- emit windowClosed(); |
216 |
- } |
217 |
- |
218 |
-diff --git a/app/mainwindow.h b/app/mainwindow.h |
219 |
-index 8a46c89..bb6404e 100644 |
220 |
---- a/app/mainwindow.h |
221 |
-+++ b/app/mainwindow.h |
222 |
-@@ -44,6 +44,7 @@ class KActionCollection; |
223 |
- namespace KWayland { |
224 |
- namespace Client { |
225 |
- class PlasmaShell; |
226 |
-+ class PlasmaShellSurface; |
227 |
- } |
228 |
- } |
229 |
- #endif |
230 |
-@@ -203,7 +204,9 @@ class MainWindow : public QMainWindow |
231 |
- |
232 |
- #if HAVE_KWAYLAND |
233 |
- void initWayland(); |
234 |
-+ void initWaylandSurface(); |
235 |
- KWayland::Client::PlasmaShell *m_plasmaShell; |
236 |
-+ KWayland::Client::PlasmaShellSurface *m_plasmaShellSurface; |
237 |
- #endif |
238 |
- }; |
239 |
- |
240 |
--- |
241 |
-cgit v0.11.2 |
242 |
- |
243 |
|
244 |
diff --git a/kde-misc/yakuake/yakuake-3.0.4-r2.ebuild b/kde-misc/yakuake/yakuake-3.0.4-r2.ebuild |
245 |
deleted file mode 100644 |
246 |
index cd59332d3eb..00000000000 |
247 |
--- a/kde-misc/yakuake/yakuake-3.0.4-r2.ebuild |
248 |
+++ /dev/null |
249 |
@@ -1,53 +0,0 @@ |
250 |
-# Copyright 1999-2018 Gentoo Foundation |
251 |
-# Distributed under the terms of the GNU General Public License v2 |
252 |
- |
253 |
-EAPI=6 |
254 |
- |
255 |
-inherit kde5 |
256 |
- |
257 |
-DESCRIPTION="Quake-style terminal emulator based on konsole" |
258 |
-HOMEPAGE="https://yakuake.kde.org/" |
259 |
-if [[ ${KDE_BUILD_TYPE} != live ]]; then |
260 |
- SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" |
261 |
-fi |
262 |
- |
263 |
-LICENSE="GPL-2 LGPL-2" |
264 |
-KEYWORDS="amd64 x86" |
265 |
-IUSE="" |
266 |
- |
267 |
-DEPEND=" |
268 |
- $(add_frameworks_dep karchive) |
269 |
- $(add_frameworks_dep kconfig) |
270 |
- $(add_frameworks_dep kconfigwidgets) |
271 |
- $(add_frameworks_dep kcoreaddons) |
272 |
- $(add_frameworks_dep kcrash) |
273 |
- $(add_frameworks_dep kdbusaddons) |
274 |
- $(add_frameworks_dep kglobalaccel) |
275 |
- $(add_frameworks_dep ki18n) |
276 |
- $(add_frameworks_dep kiconthemes) |
277 |
- $(add_frameworks_dep kio) |
278 |
- $(add_frameworks_dep knewstuff) |
279 |
- $(add_frameworks_dep knotifications) |
280 |
- $(add_frameworks_dep knotifyconfig) |
281 |
- $(add_frameworks_dep kparts) |
282 |
- $(add_frameworks_dep kservice) |
283 |
- $(add_frameworks_dep kwayland) |
284 |
- $(add_frameworks_dep kwidgetsaddons) |
285 |
- $(add_frameworks_dep kwindowsystem) |
286 |
- $(add_frameworks_dep kxmlgui) |
287 |
- $(add_kdeapps_dep konsole) |
288 |
- $(add_qt_dep qtdbus) |
289 |
- $(add_qt_dep qtgui) |
290 |
- $(add_qt_dep qtwidgets) |
291 |
- $(add_qt_dep qtx11extras) |
292 |
- x11-libs/libX11 |
293 |
-" |
294 |
-RDEPEND="${DEPEND} |
295 |
- !kde-misc/yakuake:4 |
296 |
-" |
297 |
- |
298 |
-PATCHES=( |
299 |
- "${FILESDIR}/${P}-qicon.patch" |
300 |
- "${FILESDIR}/${P}-qt-5.9-wayland.patch" |
301 |
- "${FILESDIR}/${P}-qdbus-crash.patch" |
302 |
-) |