Skip to content

Commit 105ce51

Browse files
committed
qemu: remove guest-agent from package
The QEMU guest agent is now a separate package, sysutils/qemu-guest-agent. Remove it from this package so that both can be installed. Requested by riastradh@ in PR pkg/59742 Also install vmsr-helper only on Linux on Intel.
1 parent bd4f6bb commit 105ce51

2 files changed

Lines changed: 7 additions & 12 deletions

File tree

emulators/qemu/Makefile

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
# $NetBSD: Makefile,v 1.398 2026/02/15 07:37:37 adam Exp $
1+
# $NetBSD: Makefile,v 1.399 2026/03/07 10:24:28 bsiegert Exp $
22

33
.include "../../emulators/qemu/version.mk"
44

55
DISTNAME= qemu-${QEMU_VERSION}
6+
PKGREVISION= 1
67
CATEGORIES= emulators
78
MASTER_SITES= https://download.qemu.org/
89
EXTRACT_SUFX= .tar.xz
@@ -22,8 +23,6 @@ USE_TOOLS+= bison gdbus-codegen flex makeinfo perl:build pod2man pkg-config
2223
UNLIMIT_RESOURCES= datasize
2324
HAS_CONFIGURE= yes
2425

25-
CONFLICTS+= qemu-guest-agent-[0-9]*
26-
2726
# https://github.com/qemu/qemu/commit/56208a0d473c6db263cc333c787ca48b502d72ab
2827
GCC_REQD+= 7
2928

@@ -56,6 +55,7 @@ CONFIGURE_ARGS+= --smbd=${PREFIX}/sbin/smbd
5655
CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR}
5756
CONFIGURE_ARGS+= --enable-curses
5857
CONFIGURE_ARGS+= --enable-fdt=system
58+
CONFIGURE_ARGS+= --disable-guest-agent
5959
CONFIGURE_ENV+= mansuffix=/${PKGMANDIR}
6060
ALL_ENV+= MESON_RSP_THRESHOLD=262144
6161

@@ -133,7 +133,6 @@ UE_ARCHS+= s390x sh4 sh4eb sparc sparc32plus sparc64
133133
UE_ARCHS+= x86_64 xtensa xtensaeb
134134

135135
.if ${OPSYS} == "NetBSD"
136-
PLIST.ga= yes
137136
PLIST.nbd= yes
138137
. if !exists(/usr/include/machine/trap.h) \
139138
|| "1"=="1" # XXX usermode emulation is broken
@@ -144,7 +143,6 @@ USER_EMUL= i386 x86_64
144143
. endif
145144
.elif ${OPSYS:M*BSD} || ${OPSYS} == "DragonFly"
146145
USER_EMUL= i386 x86_64
147-
PLIST.ga= yes
148146
PLIST.nbd= yes
149147
.elif ${OPSYS} == "Darwin"
150148
USER_EMUL=
@@ -160,12 +158,12 @@ CONFIGURE_ARGS+= --disable-linux-user
160158
USER_EMUL= ${UE_ARCHS}
161159
. endif
162160
PLIST.bridge-helper= yes
163-
PLIST.ga= yes
164161
PLIST.nbd= yes
165162
PLIST.pr-helper= yes
163+
. if ${MACHINE_PLATFORM:M*-i386} || ${MACHINE_PLATFORM:M*-x86_64}
166164
PLIST.vmsr-helper= yes
165+
. endif
167166
.elif ${MACHINE_PLATFORM:MSunOS-5.11-*}
168-
PLIST.ga= yes
169167
PLIST.nbd= yes
170168
CONFIGURE_ARGS+= --disable-coroutine-pool
171169
.endif
@@ -178,7 +176,7 @@ CONFIGURE_ARGS+= --enable-plugins
178176
CONFIGURE_ARGS+= --disable-plugins
179177
.endif
180178

181-
PLIST_VARS+= ${UE_ARCHS} bridge-helper ga keymap nbd pr-helper vmsr-helper
179+
PLIST_VARS+= ${UE_ARCHS} bridge-helper keymap nbd pr-helper vmsr-helper
182180
.for pvar in ${USER_EMUL}
183181
PLIST.${pvar}= yes
184182
.endfor

emulators/qemu/PLIST

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
@comment $NetBSD: PLIST,v 1.103 2026/03/03 21:13:54 tnn Exp $
1+
@comment $NetBSD: PLIST,v 1.104 2026/03/07 10:24:28 bsiegert Exp $
22
bin/elf2dmp
33
${PLIST.aarch64}bin/qemu-aarch64
44
${PLIST.aarch64_be}bin/qemu-aarch64_be
55
${PLIST.alpha}bin/qemu-alpha
66
${PLIST.arm}bin/qemu-arm
77
${PLIST.armeb}bin/qemu-armeb
88
bin/qemu-edid
9-
${PLIST.ga}bin/qemu-ga
109
${PLIST.hexagon}bin/qemu-hexagon
1110
${PLIST.hppa}bin/qemu-hppa
1211
${PLIST.i386}bin/qemu-i386
@@ -78,10 +77,8 @@ ${PLIST.doc}man/man1/qemu-storage-daemon.1
7877
${PLIST.doc}man/man1/qemu.1
7978
${PLIST.doc}man/man7/qemu-block-drivers.7
8079
${PLIST.doc}man/man7/qemu-cpu-models.7
81-
${PLIST.doc}${PLIST.ga}man/man7/qemu-ga-ref.7
8280
${PLIST.doc}man/man7/qemu-qmp-ref.7
8381
${PLIST.doc}man/man7/qemu-storage-daemon-qmp-ref.7
84-
${PLIST.doc}${PLIST.ga}man/man8/qemu-ga.8
8582
${PLIST.doc}man/man8/qemu-nbd.8
8683
${PLIST.doc}man/man8/qemu-pr-helper.8
8784
share/applications/qemu.desktop

0 commit comments

Comments
 (0)