pkg/60044: emulators/qemu requires x11

"[email protected] via gnats" <[email protected]>
Newsgroups gmane.os.netbsd.devel.pkgsrc.bugs
Message-ID <[email protected]>
>Number:         60044
>Category:       pkg
>Synopsis:       emulators/qemu requires x11
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 28 05:35:01 +0000 2026
>Originator:     YAMAMOTO Takashi
>Release:        NetBSD 10.1, pkgsrc-2025Q4
>Organization:
>Environment:
amd64
>Description:
i wanted to use qemu on netbsd w/o x11.
unfortunately emulators/qemu seems to require x11 unconditionally.

btw, it would be nice if we ship binary package of headless build of qemu too. but i guess it's a different story.

>How-To-Repeat:
install netbsd w/o x11 sets.
try to build emulators/qemu. (pkgsrc-2025Q4)

mk.conf:

BINPKG_SITES=https://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/10.0
DEPENDS_TARGET=bin-install
PKG_DEFAULT_OPTIONS=-x11 -gtk -gtk2 -gtk3 -sdl
PKG_OPTIONS.qemu=-sdl -iscsi

>Fix:
my workaround:

diff --git a/emulators/qemu/Makefile b/emulators/qemu/Makefile
index 81dc96c9d896..fb671ecce2b0 100644
--- a/emulators/qemu/Makefile
+++ b/emulators/qemu/Makefile
@@ -240,7 +240,7 @@ post-install:
 .include "../../www/curl/buildlink3.mk"
 .include "../../x11/pixman/buildlink3.mk"
 .if ${OPSYS} != "Darwin"
-.include "../../x11/xkeyboard-config/buildlink3.mk"
+#.include "../../x11/xkeyboard-config/buildlink3.mk"
 .endif
 .include "../../mk/curses.buildlink3.mk"
 .include "../../mk/jpeg.buildlink3.mk"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.