From d882324175fbfadec188118e3968a79c13f610a1 Mon Sep 17 00:00:00 2001 From: 0x5c Date: Sat, 8 Apr 2023 05:49:52 -0400 Subject: [PATCH] aqemu: fix segfault A repeated error in a UI layout file ceased to be accepted in recent-ish QT versions. Closes #39101 --- srcpkgs/aqemu/patches/widgets.patch | 53 +++++++++++++++++++++++++++++ srcpkgs/aqemu/template | 2 +- 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/aqemu/patches/widgets.patch diff --git a/srcpkgs/aqemu/patches/widgets.patch b/srcpkgs/aqemu/patches/widgets.patch new file mode 100644 index 00000000000..5c2873b0cf8 --- /dev/null +++ b/srcpkgs/aqemu/patches/widgets.patch @@ -0,0 +1,53 @@ +Taken from https://github.com/tobimensch/aqemu/pull/116, and simplified + +PATCH MUST KEEP CRLF LINE TERMINATORS + +-- + +From dc19121a923c71eed248cd6310b9b06ec0af6abe Mon Sep 17 00:00:00 2001 +From: Moskaliou Nikita <44800696+nikitamos@users.noreply.github.com> +Date: Sun, 5 Dec 2021 19:36:44 +0300 +Subject: [PATCH] Change widgets names + +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 + +diff --git a/src/Main_Window.ui b/src/Main_Window.ui +index fab69f4..52b7c71 100644 +--- a/src/Main_Window.ui ++++ b/src/Main_Window.ui +@@ -226,7 +226,7 @@ + + + +- ++ + + + 24 +@@ -1333,7 +1315,7 @@ + + + +- widget ++ general_Machine_Sets + GB_Options + GB_Audio + GB_Memory +@@ -2457,7 +2439,7 @@ + + + +- ++ + + + 6 +@@ -2515,7 +2497,7 @@ + + + +- ++ + + + 6 diff --git a/srcpkgs/aqemu/template b/srcpkgs/aqemu/template index 28cb67084bc..f55d30f4de9 100644 --- a/srcpkgs/aqemu/template +++ b/srcpkgs/aqemu/template @@ -1,7 +1,7 @@ # Template file for 'aqemu' pkgname=aqemu version=0.9.4 -revision=2 +revision=3 build_style=cmake configure_args="-DWITHOUT_EMBEDDED_DISPLAY=1" makedepends="qt5-devel qemu desktop-file-utils"