On Sat, 14 Nov 2026 01:57:16 +0100,
Brad Smith <[email protected]> wrote:
>
> On Fri, Nov 13, 2026 at 08:50:04PM +0100, Kirill A. Korinsky wrote:
> > On Fri, 13 Nov 2026 20:44:09 +0100,
> > Stuart Henderson <[email protected]> wrote:
> > >
> > > On 2026/11/13 15:25, Stian Sletner wrote:
> > > > * At 2026-11-13T14:26+0100, Matthieu Herrb wrote:
> > > > > Your installation probably omitted xbase80.tgz (or did not complete
> > > > > sucessfully).
> > > >
> > > > Oh, xbase has never been neded for qemu-ga before, so that didn't even
> > > > occur to me. That did indeed make it work, thank you.
> > >
> > > It was added in the 11.1.0 -> 11.1.1 update, not sure why.
> > >
> >
> > ... because it linked against that:
> >
> > /usr/local/bin/qemu-ga:
> > Start End Type Open Ref GrpRef Name
> > 00000ce726d95000 00000ce726e62000 exe 2 0 0
> > /usr/local/bin/qemu-ga
> > 00000ce9a0a13000 00000ce9a0a2d000 rlib 0 1 0
> > /usr/lib/libutil.so.22.0
> > 00000ce979c5e000 00000ce979dc9000 rlib 0 1 0
> > /usr/local/lib/libglib-2.0.so.4201.17
> > 00000ce9ee9ed000 00000ce9eeabb000 rlib 0 1 0
> > /usr/X11R6/lib/libpixman-1.so.46.4
> > 00000ce9be1d5000 00000ce9be1e2000 rlib 0 3 0
> > /usr/lib/libpthread.so.28.1
> > 00000ce9317ad000 00000ce9318b6000 rlib 0 1 0
> > /usr/lib/libc.so.104.0
> > 00000ce971f71000 00000ce972089000 rlib 0 2 0
> > /usr/local/lib/libiconv.so.7.2
> > 00000ce9d925f000 00000ce9d9297000 rlib 0 1 0
> > /usr/local/lib/libintl.so.8.2
> > 00000ce969d3c000 00000ce969da6000 rlib 0 1 0
> > /usr/local/lib/libpcre2-8.so.0.9
> > 00000ce93c3a9000 00000ce93c3da000 rlib 0 1 0
> > /usr/lib/libm.so.10.1
> > 00000ce9a8366000 00000ce9a8366000 ld.so 0 1 0
> > /usr/libexec/ld.so
>
> The problem is in the Meson build files. libpixman gets added to the
> libqemuutil static library, and since almost everything links
> libqemuutil, libpixman gets linked into binaries that do not need it.
> The build uses --as-needed, which should drop it, but a symbol
> interaction trips up Meson and the library gets linked anyway.
>
Thanks, commited.
>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/emulators/qemu/Makefile,v
> retrieving revision 1.270
> diff -u -p -u -p -r1.270 Makefile
> --- Makefile 1 Nov 2026 15:23:42 -0000 1.270
> +++ Makefile 13 Nov 2026 22:05:40 -0000
> @@ -8,6 +8,7 @@ COMMENT-ga= QEMU guest agent
>
> VERSION= 11.1.3
> DISTNAME= qemu-${VERSION}
> +REVISION= 0
> CATEGORIES= emulators
> SITES= https://download.qemu.org/
> EXTRACT_SUFX= .tar.xz
> @@ -19,11 +20,11 @@ MAINTAINER= Brad Smith <[email protected]
> # GPLv2, LGPLv2 and BSD
> PERMIT_PACKAGE= Yes
>
> -WANTLIB= c glib-2.0 pixman-1 pthread
> +WANTLIB= c glib-2.0 pthread util
> WANTLIB-main= ${WANTLIB} SDL2 X11 bz2 cairo capstone curl curses
> epoxy fdt \
> - gbm gdk-3 gdk_pixbuf-2.0 gio-2.0 gnutls gobject-2.0 \
> - gtk-3 iconv intl iscsi jpeg lzo2 m nfs png slirp sndio \
> - ssh usb-1.0 util vte-2.91 xkbcommon z zstd
> + gbm gdk-3 gdk_pixbuf-2.0 gio-2.0 gnutls gobject-2.0 gtk-3 \
> + iconv intl iscsi jpeg lzo2 m nfs pixman-1 png slirp sndio \
> + ssh usb-1.0 vte-2.91 xkbcommon z zstd
> WANTLIB-ga= ${WANTLIB}
>
> MULTI_PACKAGES= -main -ga
> Index: patches/patch-meson_build
> ===================================================================
> RCS file: /cvs/ports/emulators/qemu/patches/patch-meson_build,v
> retrieving revision 1.25
> diff -u -p -u -p -r1.25 patch-meson_build
> --- patches/patch-meson_build 1 Nov 2026 15:23:42 -0000 1.25
> +++ patches/patch-meson_build 13 Nov 2026 22:05:40 -0000
> @@ -2,6 +2,7 @@
> - qga: implement 'guest-network-get-route' for FreeBSD
> 0ae3840f612ba00330940f26758ae03754f6c6b6
> - qga: implement 'guest-get-users' for OpenBSD
> +- meson: don't link pixman into everything using libqemuutil
>
> - localstatedir does not belong under prefix
> - remove hardcoding of optimization
> @@ -54,7 +55,18 @@ Index: meson.build
> config_host_data.set('CONFIG_USBFS', have_linux_user and cc.compiles('''
> #include <linux/usbdevice_fs.h>
>
> -@@ -4753,9 +4768,6 @@ if have_rust
> +@@ -3794,7 +3809,9 @@ util_ss = util_ss.apply({})
> + libqemuutil = static_library('qemuutil',
> + build_by_default: false,
> + sources: util_ss.sources() + stub_ss.sources()
> + genh,
> +- dependencies: [util_ss.dependencies(), libm,
> threads, glib, socket, malloc, rt, pixman, opengl])
> ++ dependencies: [util_ss.dependencies(), libm,
> threads, glib, socket, malloc, rt,
> ++
> pixman.partial_dependency(compile_args: true, includes: true),
> ++ opengl])
> + qemuutil = declare_dependency(link_with: libqemuutil,
> + sources: genh + version_res,
> + dependencies: [event_loop_base])
> +@@ -4753,9 +4770,6 @@ if have_rust
> summary_info += {'bindgen version': bindgen.version()}
> endif
> option_cflags = (get_option('debug') ? ['-g'] : [])
--
wbr, Kirill