1 |
commit: 6adfde4ce0da5899b61d1fe5ff2ecf1e6251f371 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 21 14:57:26 2022 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 21 16:45:10 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6adfde4c |
7 |
|
8 |
app-editors/okteta: EAPI-8 bump, upstream crash fix |
9 |
|
10 |
Upstream commit 607390315750815b0009b95ecd65699e2a1d110a |
11 |
KDE-bug: https://bugs.kde.org/show_bug.cgi?id=444405 |
12 |
|
13 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
14 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
15 |
|
16 |
.../okteta/files/okteta-0.26.6-crashfix.patch | 34 +++++++++++ |
17 |
app-editors/okteta/okteta-0.26.6-r1.ebuild | 71 ++++++++++++++++++++++ |
18 |
2 files changed, 105 insertions(+) |
19 |
|
20 |
diff --git a/app-editors/okteta/files/okteta-0.26.6-crashfix.patch b/app-editors/okteta/files/okteta-0.26.6-crashfix.patch |
21 |
new file mode 100644 |
22 |
index 000000000000..8967fc788f5c |
23 |
--- /dev/null |
24 |
+++ b/app-editors/okteta/files/okteta-0.26.6-crashfix.patch |
25 |
@@ -0,0 +1,34 @@ |
26 |
+From 607390315750815b0009b95ecd65699e2a1d110a Mon Sep 17 00:00:00 2001 |
27 |
+From: "Friedrich W. H. Kossebau" <kossebau@×××.org> |
28 |
+Date: Thu, 11 Nov 2021 15:57:54 +0100 |
29 |
+Subject: [PATCH] String extraction tool: fix crash with marked strings in |
30 |
+ closed view |
31 |
+ |
32 |
+BUG: 444405 |
33 |
+ |
34 |
+FIXED-IN: 0.26.7 |
35 |
+--- |
36 |
+ .../controllers/view/stringsextract/stringsextracttool.cpp | 7 ++++++- |
37 |
+ 1 file changed, 6 insertions(+), 1 deletion(-) |
38 |
+ |
39 |
+diff --git a/kasten/controllers/view/stringsextract/stringsextracttool.cpp b/kasten/controllers/view/stringsextract/stringsextracttool.cpp |
40 |
+index 0d629999a..bcb6b6734 100644 |
41 |
+--- a/kasten/controllers/view/stringsextract/stringsextracttool.cpp |
42 |
++++ b/kasten/controllers/view/stringsextract/stringsextracttool.cpp |
43 |
+@@ -58,7 +58,12 @@ QString StringsExtractTool::title() const { return i18nc("@title:window of the t |
44 |
+ void StringsExtractTool::setTargetModel(AbstractModel* model) |
45 |
+ { |
46 |
+ if (mByteArrayView) { |
47 |
+- mByteArrayView->disconnect(this); |
48 |
++ // disconnect explicitly from all connects but QObject::detroyed, |
49 |
++ // for the case mSourceByteArrayView is mByteArrayView |
50 |
++ disconnect(mByteArrayView, &ByteArrayView::selectedDataChanged, |
51 |
++ this, &StringsExtractTool::onSelectionChanged); |
52 |
++ disconnect(mByteArrayView, &ByteArrayView::offsetCodingChanged, |
53 |
++ this, &StringsExtractTool::offsetCodingChanged); |
54 |
+ } |
55 |
+ |
56 |
+ mByteArrayView = model ? model->findBaseModel<ByteArrayView*>() : nullptr; |
57 |
+-- |
58 |
+GitLab |
59 |
+ |
60 |
|
61 |
diff --git a/app-editors/okteta/okteta-0.26.6-r1.ebuild b/app-editors/okteta/okteta-0.26.6-r1.ebuild |
62 |
new file mode 100644 |
63 |
index 000000000000..069fb020a206 |
64 |
--- /dev/null |
65 |
+++ b/app-editors/okteta/okteta-0.26.6-r1.ebuild |
66 |
@@ -0,0 +1,71 @@ |
67 |
+# Copyright 1999-2022 Gentoo Authors |
68 |
+# Distributed under the terms of the GNU General Public License v2 |
69 |
+ |
70 |
+EAPI=8 |
71 |
+ |
72 |
+ECM_DESIGNERPLUGIN="true" |
73 |
+ECM_HANDBOOK="forceoptional" |
74 |
+ECM_TEST="true" |
75 |
+KFMIN=5.82.0 |
76 |
+QTMIN=5.15.2 |
77 |
+VIRTUALX_REQUIRED="test" |
78 |
+inherit ecm kde.org |
79 |
+ |
80 |
+DESCRIPTION="Hex editor by KDE" |
81 |
+HOMEPAGE="https://apps.kde.org/okteta/ https://utils.kde.org/projects/okteta/" |
82 |
+ |
83 |
+if [[ ${KDE_BUILD_TYPE} = release ]]; then |
84 |
+ SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" |
85 |
+ KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" |
86 |
+fi |
87 |
+ |
88 |
+LICENSE="GPL-2 handbook? ( FDL-1.2 )" |
89 |
+SLOT="5" |
90 |
+IUSE="crypt" |
91 |
+ |
92 |
+DEPEND=" |
93 |
+ >=dev-qt/qtdeclarative-${QTMIN}:5 |
94 |
+ >=dev-qt/qtgui-${QTMIN}:5 |
95 |
+ >=dev-qt/qtnetwork-${QTMIN}:5 |
96 |
+ >=dev-qt/qtprintsupport-${QTMIN}:5 |
97 |
+ >=dev-qt/qtscript-${QTMIN}:5[scripttools] |
98 |
+ >=dev-qt/qtwidgets-${QTMIN}:5 |
99 |
+ >=dev-qt/qtxml-${QTMIN}:5 |
100 |
+ >=kde-frameworks/kbookmarks-${KFMIN}:5 |
101 |
+ >=kde-frameworks/kcmutils-${KFMIN}:5 |
102 |
+ >=kde-frameworks/kcodecs-${KFMIN}:5 |
103 |
+ >=kde-frameworks/kcompletion-${KFMIN}:5 |
104 |
+ >=kde-frameworks/kconfig-${KFMIN}:5 |
105 |
+ >=kde-frameworks/kconfigwidgets-${KFMIN}:5 |
106 |
+ >=kde-frameworks/kcoreaddons-${KFMIN}:5 |
107 |
+ >=kde-frameworks/kcrash-${KFMIN}:5 |
108 |
+ >=kde-frameworks/kdbusaddons-${KFMIN}:5 |
109 |
+ >=kde-frameworks/ki18n-${KFMIN}:5 |
110 |
+ >=kde-frameworks/kiconthemes-${KFMIN}:5 |
111 |
+ >=kde-frameworks/kio-${KFMIN}:5 |
112 |
+ >=kde-frameworks/kjobwidgets-${KFMIN}:5 |
113 |
+ >=kde-frameworks/knewstuff-${KFMIN}:5 |
114 |
+ >=kde-frameworks/kparts-${KFMIN}:5 |
115 |
+ >=kde-frameworks/kservice-${KFMIN}:5 |
116 |
+ >=kde-frameworks/kwidgetsaddons-${KFMIN}:5 |
117 |
+ >=kde-frameworks/kxmlgui-${KFMIN}:5 |
118 |
+ crypt? ( >=app-crypt/qca-2.3.0:2 ) |
119 |
+" |
120 |
+RDEPEND="${DEPEND}" |
121 |
+ |
122 |
+PATCHES=( "${FILESDIR}/${P}-crashfix.patch" ) |
123 |
+ |
124 |
+src_configure() { |
125 |
+ local mycmakeargs=( |
126 |
+ -DOMIT_EXAMPLES=ON |
127 |
+ $(cmake_use_find_package crypt Qca-qt5) |
128 |
+ ) |
129 |
+ |
130 |
+ ecm_src_configure |
131 |
+} |
132 |
+ |
133 |
+src_test() { |
134 |
+ local myctestargs=( -j1 ) |
135 |
+ |
136 |
+ ecm_src_test |
137 |
+} |