1 |
commit: a8fe0f469f72fede9769365e1553f2706f9fb3eb |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 23 00:18:55 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 23 00:19:07 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8fe0f46 |
7 |
|
8 |
app-emulation/aqemu: fix crash on startup |
9 |
|
10 |
Closes: https://bugs.gentoo.org/738020 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
app-emulation/aqemu/aqemu-0.9.2-r2.ebuild | 43 ++++++++ |
14 |
.../aqemu/files/aqemu-0.9.2-crash-fix.patch | 116 +++++++++++++++++++++ |
15 |
2 files changed, 159 insertions(+) |
16 |
|
17 |
diff --git a/app-emulation/aqemu/aqemu-0.9.2-r2.ebuild b/app-emulation/aqemu/aqemu-0.9.2-r2.ebuild |
18 |
new file mode 100644 |
19 |
index 000000000000..30c5865b473a |
20 |
--- /dev/null |
21 |
+++ b/app-emulation/aqemu/aqemu-0.9.2-r2.ebuild |
22 |
@@ -0,0 +1,43 @@ |
23 |
+# Copyright 1999-2021 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+inherit cmake |
29 |
+ |
30 |
+DESCRIPTION="Graphical interface for QEMU and KVM emulators, using Qt5" |
31 |
+HOMEPAGE="https://sourceforge.net/projects/aqemu" |
32 |
+SRC_URI="https://github.com/tobimensch/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
33 |
+ |
34 |
+LICENSE="GPL-2" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~amd64 ~x86" |
37 |
+IUSE="vnc" |
38 |
+ |
39 |
+RDEPEND=" |
40 |
+ app-emulation/qemu |
41 |
+ dev-qt/qtcore:5 |
42 |
+ dev-qt/qtnetwork:5 |
43 |
+ dev-qt/qtprintsupport:5 |
44 |
+ dev-qt/qttest:5 |
45 |
+ dev-qt/qtwidgets:5 |
46 |
+ vnc? ( net-libs/libvncserver ) |
47 |
+" |
48 |
+DEPEND="${RDEPEND}" |
49 |
+ |
50 |
+DOCS=( AUTHORS CHANGELOG README TODO ) |
51 |
+PATCHES=( |
52 |
+ "${FILESDIR}/${PN}-0.9.2-qtbindir.patch" |
53 |
+ "${FILESDIR}/${PN}-0.9.2-include.patch" |
54 |
+ "${FILESDIR}/${PN}-0.9.2-docs.patch" |
55 |
+ "${FILESDIR}/${PN}-0.9.2-crash-fix.patch" |
56 |
+) |
57 |
+ |
58 |
+src_configure() { |
59 |
+ local mycmakeargs=( |
60 |
+ -DMAN_PAGE_COMPRESSOR=OFF |
61 |
+ -DWITHOUT_EMBEDDED_DISPLAY=$(usex vnc OFF ON) |
62 |
+ ) |
63 |
+ |
64 |
+ cmake_src_configure |
65 |
+} |
66 |
|
67 |
diff --git a/app-emulation/aqemu/files/aqemu-0.9.2-crash-fix.patch b/app-emulation/aqemu/files/aqemu-0.9.2-crash-fix.patch |
68 |
new file mode 100644 |
69 |
index 000000000000..ef4c1a146461 |
70 |
--- /dev/null |
71 |
+++ b/app-emulation/aqemu/files/aqemu-0.9.2-crash-fix.patch |
72 |
@@ -0,0 +1,116 @@ |
73 |
+https://github.com/tobimensch/aqemu/pull/116 |
74 |
+https://bugs.gentoo.org/738020 |
75 |
+ |
76 |
+From dc19121a923c71eed248cd6310b9b06ec0af6abe Mon Sep 17 00:00:00 2001 |
77 |
+From: Moskaliou Nikita <44800696+nikitamos@××××××××××××××××××××.com> |
78 |
+Date: Sun, 5 Dec 2021 19:36:44 +0300 |
79 |
+Subject: [PATCH] Change widgets names |
80 |
+ |
81 |
+Several widgets in the src/Main_Window.ui file had the same name ("widget"), for several users AQEMU crashed with SEGFAULT. So, the names were changed and now everything works fine |
82 |
+--- a/src/Main_Window.ui |
83 |
++++ b/src/Main_Window.ui |
84 |
+@@ -226,7 +226,7 @@ |
85 |
+ </widget> |
86 |
+ </item> |
87 |
+ <item> |
88 |
+- <widget class="QWidget" name="widget" native="true"> |
89 |
++ <widget class="QWidget" name="general_Machine_Sets" native="true"> |
90 |
+ <layout class="QGridLayout" name="gridLayout_12"> |
91 |
+ <property name="leftMargin"> |
92 |
+ <number>24</number> |
93 |
+@@ -275,9 +275,6 @@ |
94 |
+ <property name="maxCount"> |
95 |
+ <number>64</number> |
96 |
+ </property> |
97 |
+- <property name="sizeAdjustPolicy"> |
98 |
+- <enum>QComboBox::AdjustToMinimumContentsLength</enum> |
99 |
+- </property> |
100 |
+ </widget> |
101 |
+ </item> |
102 |
+ <item row="3" column="1"> |
103 |
+@@ -294,9 +291,6 @@ |
104 |
+ <property name="maxCount"> |
105 |
+ <number>16</number> |
106 |
+ </property> |
107 |
+- <property name="sizeAdjustPolicy"> |
108 |
+- <enum>QComboBox::AdjustToMinimumContentsLength</enum> |
109 |
+- </property> |
110 |
+ <item> |
111 |
+ <property name="text"> |
112 |
+ <string>1</string> |
113 |
+@@ -395,9 +389,6 @@ |
114 |
+ <verstretch>0</verstretch> |
115 |
+ </sizepolicy> |
116 |
+ </property> |
117 |
+- <property name="sizeAdjustPolicy"> |
118 |
+- <enum>QComboBox::AdjustToMinimumContentsLength</enum> |
119 |
+- </property> |
120 |
+ </widget> |
121 |
+ </item> |
122 |
+ <item row="2" column="2"> |
123 |
+@@ -526,9 +517,6 @@ |
124 |
+ <property name="maxCount"> |
125 |
+ <number>8</number> |
126 |
+ </property> |
127 |
+- <property name="sizeAdjustPolicy"> |
128 |
+- <enum>QComboBox::AdjustToMinimumContentsLength</enum> |
129 |
+- </property> |
130 |
+ <item> |
131 |
+ <property name="text"> |
132 |
+ <string>Floppy</string> |
133 |
+@@ -586,9 +574,6 @@ |
134 |
+ <property name="maxCount"> |
135 |
+ <number>8</number> |
136 |
+ </property> |
137 |
+- <property name="sizeAdjustPolicy"> |
138 |
+- <enum>QComboBox::AdjustToMinimumContentsLength</enum> |
139 |
+- </property> |
140 |
+ </widget> |
141 |
+ </item> |
142 |
+ <item row="3" column="0"> |
143 |
+@@ -618,9 +603,6 @@ |
144 |
+ <property name="maxCount"> |
145 |
+ <number>128</number> |
146 |
+ </property> |
147 |
+- <property name="sizeAdjustPolicy"> |
148 |
+- <enum>QComboBox::AdjustToMinimumContentsLength</enum> |
149 |
+- </property> |
150 |
+ <item> |
151 |
+ <property name="text"> |
152 |
+ <string>en-us (default)</string> |
153 |
+@@ -1333,7 +1315,7 @@ |
154 |
+ </widget> |
155 |
+ </item> |
156 |
+ </layout> |
157 |
+- <zorder>widget</zorder> |
158 |
++ <zorder>general_Machine_Sets</zorder> |
159 |
+ <zorder>GB_Options</zorder> |
160 |
+ <zorder>GB_Audio</zorder> |
161 |
+ <zorder>GB_Memory</zorder> |
162 |
+@@ -2457,7 +2439,7 @@ |
163 |
+ </layout> |
164 |
+ </item> |
165 |
+ <item row="1" column="0" colspan="2"> |
166 |
+- <widget class="QWidget" name="widget" native="true"> |
167 |
++ <widget class="QWidget" name="protocol_Sets" native="true"> |
168 |
+ <layout class="QHBoxLayout" name="Widget_Redirection_Protocol"> |
169 |
+ <property name="spacing"> |
170 |
+ <number>6</number> |
171 |
+@@ -2515,7 +2497,7 @@ |
172 |
+ </widget> |
173 |
+ </item> |
174 |
+ <item row="2" column="0" colspan="2"> |
175 |
+- <widget class="QWidget" name="widget" native="true"> |
176 |
++ <widget class="QWidget" name="ip_Sets" native="true"> |
177 |
+ <layout class="QHBoxLayout" name="Widget_Redirection_Net"> |
178 |
+ <property name="spacing"> |
179 |
+ <number>6</number> |
180 |
+@@ -3018,7 +3000,7 @@ |
181 |
+ <x>0</x> |
182 |
+ <y>0</y> |
183 |
+ <width>982</width> |
184 |
+- <height>32</height> |
185 |
++ <height>22</height> |
186 |
+ </rect> |
187 |
+ </property> |
188 |
+ <widget class="QMenu" name="menuVM"> |