1 |
commit: 7efccec23f297902e698925af2503519d58ddf45 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 22 21:28:56 2021 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 22 21:59:10 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7efccec2 |
7 |
|
8 |
kde-apps/konsole: (Final) fix(?) for window flashing on session close |
9 |
|
10 |
Upstream commit e693f2d7f1977ca227589154a5cd8c18d8ce44b7 |
11 |
|
12 |
Tested-by: David Flogeras <dflogeras2 <AT> gmail.com> |
13 |
Bug: https://bugs.gentoo.org/807933 |
14 |
Package-Manager: Portage-3.0.23, Repoman-3.0.3 |
15 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
16 |
|
17 |
....3-default-navigation-be-TabbedNavigation.patch | 32 ++++++++++++++++++++++ |
18 |
...le-21.08.1.ebuild => konsole-21.04.3-r4.ebuild} | 19 +++++++++++-- |
19 |
...le-21.08.1.ebuild => konsole-21.08.1-r1.ebuild} | 4 +++ |
20 |
3 files changed, 52 insertions(+), 3 deletions(-) |
21 |
|
22 |
diff --git a/kde-apps/konsole/files/konsole-21.04.3-default-navigation-be-TabbedNavigation.patch b/kde-apps/konsole/files/konsole-21.04.3-default-navigation-be-TabbedNavigation.patch |
23 |
new file mode 100644 |
24 |
index 00000000000..0eeaef37899 |
25 |
--- /dev/null |
26 |
+++ b/kde-apps/konsole/files/konsole-21.04.3-default-navigation-be-TabbedNavigation.patch |
27 |
@@ -0,0 +1,32 @@ |
28 |
+From e693f2d7f1977ca227589154a5cd8c18d8ce44b7 Mon Sep 17 00:00:00 2001 |
29 |
+From: Ahmad Samir <a.samirh78@×××××.com> |
30 |
+Date: Wed, 1 Sep 2021 11:38:29 +0200 |
31 |
+Subject: [PATCH] The default navigation method should be TabbedNavigation |
32 |
+ |
33 |
+TabbedNavigation is when we have a MainWindow, i.e. the typical use case; |
34 |
+whereas NoNavigation is when using Konsole Part. The code in Part calls |
35 |
+setNavigationMethod(NoNavigation), so things should work as before. |
36 |
+ |
37 |
+I made a wrong assumption that TabbedNavigation was already the default. |
38 |
+ |
39 |
+CCBUG: 432077 |
40 |
+--- |
41 |
+ src/ViewManager.cpp | 2 +- |
42 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
43 |
+ |
44 |
+diff --git a/src/ViewManager.cpp b/src/ViewManager.cpp |
45 |
+index 2ba77e9f0..3ffbe6ba0 100644 |
46 |
+--- a/src/ViewManager.cpp |
47 |
++++ b/src/ViewManager.cpp |
48 |
+@@ -52,7 +52,7 @@ ViewManager::ViewManager(QObject *parent, KActionCollection *collection) : |
49 |
+ _pluggedController(nullptr), |
50 |
+ _sessionMap(QHash<TerminalDisplay *, Session *>()), |
51 |
+ _actionCollection(collection), |
52 |
+- _navigationMethod(NoNavigation), |
53 |
++ _navigationMethod(TabbedNavigation), |
54 |
+ _navigationVisibility(NavigationNotSet), |
55 |
+ _managerId(0), |
56 |
+ _terminalDisplayHistoryIndex(-1) |
57 |
+-- |
58 |
+GitLab |
59 |
+ |
60 |
|
61 |
diff --git a/kde-apps/konsole/konsole-21.08.1.ebuild b/kde-apps/konsole/konsole-21.04.3-r4.ebuild |
62 |
similarity index 77% |
63 |
copy from kde-apps/konsole/konsole-21.08.1.ebuild |
64 |
copy to kde-apps/konsole/konsole-21.04.3-r4.ebuild |
65 |
index 85e60971ebf..c44e2eb15d3 100644 |
66 |
--- a/kde-apps/konsole/konsole-21.08.1.ebuild |
67 |
+++ b/kde-apps/konsole/konsole-21.04.3-r4.ebuild |
68 |
@@ -1,11 +1,11 @@ |
69 |
# Copyright 1999-2021 Gentoo Authors |
70 |
# Distributed under the terms of the GNU General Public License v2 |
71 |
|
72 |
-EAPI=8 |
73 |
+EAPI=7 |
74 |
|
75 |
ECM_HANDBOOK="optional" |
76 |
ECM_TEST="true" |
77 |
-KFMIN=5.84.0 |
78 |
+KFMIN=5.80.0 |
79 |
QTMIN=5.15.2 |
80 |
VIRTUALX_REQUIRED="test" |
81 |
inherit ecm kde.org |
82 |
@@ -15,7 +15,7 @@ HOMEPAGE="https://apps.kde.org/konsole/ https://konsole.kde.org" |
83 |
|
84 |
LICENSE="GPL-2" # TODO: CHECK |
85 |
SLOT="5" |
86 |
-KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" |
87 |
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" |
88 |
IUSE="X" |
89 |
|
90 |
DEPEND=" |
91 |
@@ -34,6 +34,7 @@ DEPEND=" |
92 |
>=kde-frameworks/kguiaddons-${KFMIN}:5 |
93 |
>=kde-frameworks/kjobwidgets-${KFMIN}:5 |
94 |
>=kde-frameworks/ki18n-${KFMIN}:5 |
95 |
+ >=kde-frameworks/kinit-${KFMIN}:5 |
96 |
>=kde-frameworks/kiconthemes-${KFMIN}:5 |
97 |
>=kde-frameworks/kio-${KFMIN}:5 |
98 |
>=kde-frameworks/knewstuff-${KFMIN}:5 |
99 |
@@ -50,6 +51,18 @@ DEPEND=" |
100 |
" |
101 |
RDEPEND="${DEPEND}" |
102 |
|
103 |
+PATCHES=( |
104 |
+ "${FILESDIR}/${P}-no-flash-on-session-close.patch" # bug 807933 |
105 |
+ "${FILESDIR}/${P}-dont-close-window-while-split.patch" # bug 808510 |
106 |
+ "${FILESDIR}/${P}-emit-empty-in-SessionFinished-only-in-TabbedNavigation-mode.patch" # bug 810598 |
107 |
+ "${FILESDIR}/${P}-default-navigation-be-TabbedNavigation.patch" # bug 807933 |
108 |
+) |
109 |
+ |
110 |
+src_prepare() { |
111 |
+ ecm_src_prepare |
112 |
+ ecm_punt_bogus_dep KF5 Completion |
113 |
+} |
114 |
+ |
115 |
src_configure() { |
116 |
local mycmakeargs=( |
117 |
$(cmake_use_find_package X X11) |
118 |
|
119 |
diff --git a/kde-apps/konsole/konsole-21.08.1.ebuild b/kde-apps/konsole/konsole-21.08.1-r1.ebuild |
120 |
similarity index 94% |
121 |
rename from kde-apps/konsole/konsole-21.08.1.ebuild |
122 |
rename to kde-apps/konsole/konsole-21.08.1-r1.ebuild |
123 |
index 85e60971ebf..57a1100aff1 100644 |
124 |
--- a/kde-apps/konsole/konsole-21.08.1.ebuild |
125 |
+++ b/kde-apps/konsole/konsole-21.08.1-r1.ebuild |
126 |
@@ -50,6 +50,10 @@ DEPEND=" |
127 |
" |
128 |
RDEPEND="${DEPEND}" |
129 |
|
130 |
+PATCHES=( |
131 |
+ "${FILESDIR}/${PN}-21.04.3-default-navigation-be-TabbedNavigation.patch" # bug 807933 |
132 |
+) |
133 |
+ |
134 |
src_configure() { |
135 |
local mycmakeargs=( |
136 |
$(cmake_use_find_package X X11) |