Here is an update to QEMU 9.1.2. Various bug fixes.
https://marc.info/?l=qemu-devel&m=173216702901250&w=2 Index: Makefile =================================================================== RCS file: /cvs/ports/emulators/qemu/Makefile,v retrieving revision 1.243 diff -u -p -u -p -r1.243 Makefile --- Makefile 29 Oct 2024 12:28:54 -0000 1.243 +++ Makefile 28 Nov 2024 04:15:45 -0000 @@ -6,7 +6,7 @@ USE_NOBTCFI= Yes COMMENT-main= multi system emulator COMMENT-ga= QEMU guest agent -VERSION= 9.1.1 +VERSION= 9.1.2 DISTNAME= qemu-${VERSION} CATEGORIES= emulators SITES= https://download.qemu.org/ @@ -112,11 +112,6 @@ CONFIGURE_ARGS+=--disable-debug-info .endif TEST_TARGET= check - -# XXX Optimizer bug, using -O2 causes segfaults, -O1 linking errors -.if ${MACHINE_ARCH:Mpowerpc} -#CFLAGS+= -O0 -.endif post-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/qemu Index: distinfo =================================================================== RCS file: /cvs/ports/emulators/qemu/distinfo,v retrieving revision 1.76 diff -u -p -u -p -r1.76 distinfo --- distinfo 29 Oct 2024 12:28:54 -0000 1.76 +++ distinfo 28 Nov 2024 04:15:45 -0000 @@ -1,2 +1,2 @@ -SHA256 (qemu-9.1.1.tar.xz) = fcD52lSR/0SVAPMxAGOja2GfI27kVwb9CEbrN9S7qIk= -SIZE (qemu-9.1.1.tar.xz) = 132584840 +SHA256 (qemu-9.1.2.tar.xz) = Gf2ddTWlTW4EThhkAqo7OxvfqHw5LsiISFVZLIUQyW8= +SIZE (qemu-9.1.2.tar.xz) = 132481332 Index: patches/patch-meson_build =================================================================== RCS file: /cvs/ports/emulators/qemu/patches/patch-meson_build,v retrieving revision 1.14 diff -u -p -u -p -r1.14 patch-meson_build --- patches/patch-meson_build 29 Oct 2024 12:28:54 -0000 1.14 +++ patches/patch-meson_build 28 Nov 2024 04:15:45 -0000 @@ -4,7 +4,7 @@ Index: meson.build --- meson.build.orig +++ meson.build -@@ -2259,7 +2259,7 @@ config_host_data.set('CONFIG_QEMU_FIRMWAREPATH', qemu_ +@@ -2265,7 +2265,7 @@ config_host_data.set('CONFIG_QEMU_FIRMWAREPATH', qemu_ config_host_data.set_quoted('CONFIG_QEMU_HELPERDIR', get_option('prefix') / get_option('libexecdir')) config_host_data.set_quoted('CONFIG_QEMU_ICONDIR', get_option('prefix') / qemu_icondir) config_host_data.set_quoted('CONFIG_QEMU_LOCALEDIR', get_option('prefix') / get_option('localedir')) @@ -13,7 +13,7 @@ Index: meson.build config_host_data.set_quoted('CONFIG_QEMU_MODDIR', get_option('prefix') / qemu_moddir) config_host_data.set_quoted('CONFIG_SYSCONFDIR', get_option('prefix') / get_option('sysconfdir')) -@@ -4300,9 +4300,6 @@ else +@@ -4306,9 +4306,6 @@ else summary_info += {'Objective-C compiler': false} endif option_cflags = (get_option('debug') ? ['-g'] : []) Index: patches/patch-qga_commands-posix_c =================================================================== RCS file: patches/patch-qga_commands-posix_c diff -N patches/patch-qga_commands-posix_c --- patches/patch-qga_commands-posix_c 29 Oct 2024 12:28:54 -0000 1.11 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,14 +0,0 @@ -qemu-ga: Fix a SIGSEGV on guest-set-time command - -Index: qga/commands-posix.c ---- qga/commands-posix.c.orig -+++ qga/commands-posix.c -@@ -85,7 +85,7 @@ static ssize_t ga_pipe_read_str(int fd[2], char **str) - *str = g_realloc(*str, len + n + 1); - memcpy(*str + len, buf, n); - len += n; -- *str[len] = '\0'; -+ (*str)[len] = '\0'; - } - close(fd[0]); - fd[0] = -1;