Bug 294827 - emulators/qemu: qemu-guest-agent fails to build with python 3.1X
Summary: emulators/qemu: qemu-guest-agent fails to build with python 3.1X
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Muhammad Moinur Rahman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-04-27 08:51 UTC by Einar Bjarni Halldórsson
Modified: 2026-05-08 22:39 UTC (History)
4 users (show)

See Also:
bugzilla: maintainer-feedback? (bofh)


Attachments
USES=python:build for guestagent and USES=python for the other flavors (1.09 KB, patch)
2026-05-03 06:42 UTC, Herbert J. Skuhra
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Einar Bjarni Halldórsson 2026-04-27 08:51:07 UTC
I have python3.12 as the default python in poudriere. It worked fine at first, but the first build with errors was on 2026-04-24_19h05m02s.

I have a cron job that runs every hour that builds all the packages I use and the last build without errors was on 2026-04-24_18h05m01s.

--

===>   qemu-guest-agent-11.0.0_1 depends on shared library: libglib-2.0.so - found (/usr/local/lib/libglib-2.0.so)
===>   Returning to build of qemu-guest-agent-11.0.0_1
===>   qemu-guest-agent-11.0.0_1 depends on shared library: libintl.so - found (/usr/local/lib/libintl.so)
===========================================================================
=======================<phase: configure      >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Configuring for qemu-guest-agent-11.0.0_1
Using './build' as the directory for build output
python determined to be '/usr/local/bin/python3.12'
python version: Python 3.12.13
mkvenv: Creating non-isolated virtual environment at 'pyvenv'
mkvenv: checking for meson>=1.5.0
mkvenv: checking for pycotap>=1.1.0
mkvenv: installing meson==1.10.0, pycotap==1.3.1
mkvenv: checking for qemu.qmp>=0.0.5
mkvenv: checking for setuptools>=44.1.1
mkvenv: checking for wheel>=0.34.2
mkvenv: checking for pip>=20.3.4
mkvenv: installing setuptools>=44.1.1, pip>=20.3.4
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError("<pip._vendor.urllib3.connection.HTTPSConnection object at 0x3cb9179f6ab0>: Failed to establish a new connection: [Errno 49] Can't assign requested address")': /simple/setuptools/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError("<pip._vendor.urllib3.connection.HTTPSConnection object at 0x3cb918cbfc20>: Failed to establish a new connection: [Errno 49] Can't assign requested address")': /simple/setuptools/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError("<pip._vendor.urllib3.connection.HTTPSConnection object at 0x3cb9193714f0>: Failed to establish a new connection: [Errno 49] Can't assign requested address")': /simple/setuptools/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError("<pip._vendor.urllib3.connection.HTTPSConnection object at 0x3cb919371700>: Failed to establish a new connection: [Errno 49] Can't assign requested address")': /simple/setuptools/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError("<pip._vendor.urllib3.connection.HTTPSConnection object at 0x3cb9193718e0>: Failed to establish a new connection: [Errno 49] Can't assign requested address")': /simple/setuptools/
ERROR: Could not find a version that satisfies the requirement setuptools>=44.1.1 (from versions: none)
ERROR: No matching distribution found for setuptools>=44.1.1

*** Ouch! ***

Could not provide build dependency 'setuptools>=44.1.1':
 • Python package 'setuptools' was not found nor installed.
 • No suitable version found in, or failed to install from '/wrkdirs/usr/ports/emulators/qemu/work-guestagent/qemu-11.0.0/python/wheels'.
 • A suitable version could not be obtained from PyPI.
Comment 1 Einar Bjarni Halldórsson 2026-04-27 08:56:00 UTC
I assume https://cgit.freebsd.org/ports/commit/?id=19d5033f041ae46b7e28aff8e73dd9bd788eca5e is the cause
Comment 2 Herbert J. Skuhra 2026-05-02 07:02:40 UTC
The latest version seems to fail with python >= 3.12. Python 3.14 throws a different error.

Can we modify the port to use USES=python:build for qemu@guestagent USES=python for the other flavors?
Comment 3 Herbert J. Skuhra 2026-05-03 06:42:51 UTC
Created attachment 270366 [details]
USES=python:build for guestagent and USES=python for the other flavors

As a workaround I build qemu@guestagent with poudriere and use the attached patch.
Comment 4 Herbert J. Skuhra 2026-05-05 21:30:19 UTC
(In reply to Herbert J. Skuhra from comment #3)

The suggested patch was rejected by the maintainer:
"No. python:build simply does not load all required variables and also the
test fails by removing from the USES."

I can't even build qemu@guestagent with default Python version (3.11) outside of poudriere. :-(
Comment 5 Herbert J. Skuhra 2026-05-08 07:08:36 UTC
Can we replace 3.12 with 3.1X in the summary?