1 |
commit: 30c5f7e692e0bd2022e60263cb0b878f375ed5dc |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 1 19:37:32 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 1 19:39:05 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30c5f7e6 |
7 |
|
8 |
kde-frameworks/ktexteditor: Fix runtime crash |
9 |
|
10 |
See also: https://mail.kde.org/pipermail/kde-distro-packagers/2019-October/000389.html |
11 |
KDE-Bug: https://bugs.kde.org/show_bug.cgi?id=413474 |
12 |
Package-Manager: Portage-2.3.78, Repoman-2.3.17 |
13 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
14 |
|
15 |
.../files/ktexteditor-5.63.0-crashfix.patch | 27 ++++++++++ |
16 |
.../ktexteditor/ktexteditor-5.63.0-r1.ebuild | 58 ++++++++++++++++++++++ |
17 |
2 files changed, 85 insertions(+) |
18 |
|
19 |
diff --git a/kde-frameworks/ktexteditor/files/ktexteditor-5.63.0-crashfix.patch b/kde-frameworks/ktexteditor/files/ktexteditor-5.63.0-crashfix.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..f6c867cad65 |
22 |
--- /dev/null |
23 |
+++ b/kde-frameworks/ktexteditor/files/ktexteditor-5.63.0-crashfix.patch |
24 |
@@ -0,0 +1,27 @@ |
25 |
+From f6e72a23052339253daa79095391625cf01c96f1 Mon Sep 17 00:00:00 2001 |
26 |
+From: Christoph Cullmann <cullmann@×××.org> |
27 |
+Date: Mon, 28 Oct 2019 20:32:13 +0100 |
28 |
+Subject: fix crash |
29 |
+ |
30 |
+BUG: 413474 |
31 |
+--- |
32 |
+ src/utils/katevariableexpansionhelpers.cpp | 4 +++- |
33 |
+ 1 file changed, 3 insertions(+), 1 deletion(-) |
34 |
+ |
35 |
+diff --git a/src/utils/katevariableexpansionhelpers.cpp b/src/utils/katevariableexpansionhelpers.cpp |
36 |
+index db71d0f..89aab3d 100644 |
37 |
+--- a/src/utils/katevariableexpansionhelpers.cpp |
38 |
++++ b/src/utils/katevariableexpansionhelpers.cpp |
39 |
+@@ -278,7 +278,9 @@ KateVariableExpansionDialog::KateVariableExpansionDialog(QWidget *parent) |
40 |
+ connect(m_listView, &QAbstractItemView::activated, [this, lblDescription, lblCurrentValue](const QModelIndex &index) { |
41 |
+ if (index.isValid()) { |
42 |
+ const auto &var = m_variables[m_filterModel->mapToSource(index).row()]; |
43 |
+- const auto name = QStringLiteral("%{") + var.name() + QLatin1Char('}'); |
44 |
++ |
45 |
++ // not auto, don't fall for string builder, see bug 413474 |
46 |
++ const QString name = QStringLiteral("%{") + var.name() + QLatin1Char('}'); |
47 |
+ |
48 |
+ if (parentWidget() && parentWidget()->window()) { |
49 |
+ auto currentWidget = parentWidget()->window()->focusWidget(); |
50 |
+-- |
51 |
+cgit v1.1 |
52 |
|
53 |
diff --git a/kde-frameworks/ktexteditor/ktexteditor-5.63.0-r1.ebuild b/kde-frameworks/ktexteditor/ktexteditor-5.63.0-r1.ebuild |
54 |
new file mode 100644 |
55 |
index 00000000000..371a1c9b8ec |
56 |
--- /dev/null |
57 |
+++ b/kde-frameworks/ktexteditor/ktexteditor-5.63.0-r1.ebuild |
58 |
@@ -0,0 +1,58 @@ |
59 |
+# Copyright 1999-2019 Gentoo Authors |
60 |
+# Distributed under the terms of the GNU General Public License v2 |
61 |
+ |
62 |
+EAPI=7 |
63 |
+ |
64 |
+VIRTUALX_REQUIRED="test" |
65 |
+inherit kde5 |
66 |
+ |
67 |
+DESCRIPTION="Framework providing a full text editor component" |
68 |
+LICENSE="LGPL-2+" |
69 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
70 |
+IUSE="editorconfig git" |
71 |
+ |
72 |
+BDEPEND=" |
73 |
+ test? ( $(add_frameworks_dep kservice) ) |
74 |
+" |
75 |
+DEPEND=" |
76 |
+ $(add_frameworks_dep karchive) |
77 |
+ $(add_frameworks_dep kauth) |
78 |
+ $(add_frameworks_dep kcodecs) |
79 |
+ $(add_frameworks_dep kcompletion) |
80 |
+ $(add_frameworks_dep kconfig) |
81 |
+ $(add_frameworks_dep kconfigwidgets) |
82 |
+ $(add_frameworks_dep kcoreaddons) |
83 |
+ $(add_frameworks_dep kguiaddons) |
84 |
+ $(add_frameworks_dep ki18n) |
85 |
+ $(add_frameworks_dep kiconthemes) |
86 |
+ $(add_frameworks_dep kio) |
87 |
+ $(add_frameworks_dep kitemviews) |
88 |
+ $(add_frameworks_dep kjobwidgets) |
89 |
+ $(add_frameworks_dep kparts) |
90 |
+ $(add_frameworks_dep ktextwidgets) |
91 |
+ $(add_frameworks_dep kwidgetsaddons) |
92 |
+ $(add_frameworks_dep kxmlgui) |
93 |
+ $(add_frameworks_dep sonnet) |
94 |
+ $(add_frameworks_dep syntax-highlighting) |
95 |
+ $(add_qt_dep qtdeclarative) |
96 |
+ $(add_qt_dep qtgui) |
97 |
+ $(add_qt_dep qtprintsupport) |
98 |
+ $(add_qt_dep qtwidgets) |
99 |
+ $(add_qt_dep qtxml) |
100 |
+ editorconfig? ( app-text/editorconfig-core-c ) |
101 |
+ git? ( dev-libs/libgit2:= ) |
102 |
+" |
103 |
+RDEPEND="${DEPEND}" |
104 |
+ |
105 |
+RESTRICT+=" test" |
106 |
+ |
107 |
+PATCHES=( "${FILESDIR}/${P}-crashfix.patch" ) |
108 |
+ |
109 |
+src_configure() { |
110 |
+ local mycmakeargs=( |
111 |
+ $(cmake-utils_use_find_package editorconfig EditorConfig) |
112 |
+ $(cmake-utils_use_find_package git LibGit2) |
113 |
+ ) |
114 |
+ |
115 |
+ kde5_src_configure |
116 |
+} |