NetBSD Problem Report #61096

From www@netbsd.org  Mon Nov 30 18:00:22 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.netbsd.org", Issuer "YR1" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 019841A923D
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 30 Nov 2026 18:00:22 +0000 (UTC)
Message-Id: <20261130180020.427031A923E@mollari.NetBSD.org>
Date: Mon, 30 Nov 2026 18:00:20 +0000 (UTC)
From: hello@xvello.net
Reply-To: hello@xvello.net
To: gnats-bugs@NetBSD.org
Subject: emulator/qemu: remove python from DEPENDS
X-Send-Pr-Version: www-1.0
X-From4GNATS: "hello@xvello.net via gnats" <gnats-admin@NetBSD.org>

>Number:         61096
>Category:       pkg
>Synopsis:       emulator/qemu: remove python from DEPENDS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 30 18:05:00 +0000 2026
>Originator:     Xavier Vello
>Release:        trunk
>Organization:
>Environment:
NetBSD scy 11.1 NetBSD 11.1 (GENERIC) #0: Mon Nov  2 16:34:32 UTC 2026  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64

>Description:
Installing qemu-guest-agent or qemu pulls in python while it's not a runtime dependency of either. It looks like several testing dependencies are declared as DEPENDS instead of TOOL_DEPENDS. Both packages build and install OK with the attached patch.

Python is needed for the utility scripts in https://gitlab.com/qemu-project/qemu/-/tree/master/python?ref_type=heads, but the qemu package does not ship these scripts anyway (might be worth shipping them in a separate qemu-utils package). The `qmp-*` scripts are shipped in the `emulators/py-qemu.qmp` package, that is currently installed via DEPEND and will now need an explicit install. What's the best way to communicate this change?
>How-To-Repeat:
`pkgin in qemu-guest-agent` (or qemu) on a fresh system
>Fix:
diff --git a/emulators/qemu/Makefile.common b/emulators/qemu/Makefile.common
index 68f18f554..6fbebdde7 100644
--- a/emulators/qemu/Makefile.common
+++ b/emulators/qemu/Makefile.common
@@ -18,10 +18,10 @@ TOOL_DEPENDS+=      ninja-build>=0:../../devel/ninja-build
 # From python/scripts/mkvenv.py
 TOOL_DEPENDS+= ${PYPKGPREFIX}-distlib>=0:../../devel/py-distlib
 TOOL_DEPENDS+= ${PYPKGPREFIX}-pycotap>=1.1.0:../../devel/py-pycotap
-DEPENDS+=      ${PYPKGPREFIX}-pip>=20.3.4:../../devel/py-pip
-DEPENDS+=      ${PYPKGPREFIX}-qemu.qmp>=0.0.5:../../emulators/py-qemu.qmp
-DEPENDS+=      ${PYPKGPREFIX}-setuptools>=44.1.1:../../devel/py-setuptools
-DEPENDS+=      ${PYPKGPREFIX}-wheel>=0.34.2:../../devel/py-wheel
+TOOL_DEPENDS+= ${PYPKGPREFIX}-pip>=20.3.4:../../devel/py-pip
+TOOL_DEPENDS+= ${PYPKGPREFIX}-qemu.qmp>=0.0.5:../../emulators/py-qemu.qmp
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools>=44.1.1:../../devel/py-setuptools
+TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel>=0.34.2:../../devel/py-wheel

 DISTINFO_FILE= ${.CURDIR}/../../emulators/qemu/distinfo
 PATCHDIR=      ${.CURDIR}/../../emulators/qemu/patches

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.