Bug 2319748 - qemu fails to build with setuptools 74+
Summary: qemu fails to build with setuptools 74+
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: qemu
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fedora Virtualization Maintainers
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: SETUPTOOLS74
TreeView+ depends on / blocked
 
Reported: 2024-10-18 10:16 UTC by Miro Hrončok
Modified: 2024-10-18 10:32 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-10-18 10:21:57 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2024-10-18 10:16:12 UTC
Dear package maintainer,

this bugzilla is automated becasue the number of impacted packages it too high to go trough manually.

It appears that your package failed to build with setuptools 74.1.3 and wheel 0.44 in

  https://copr.fedorainfracloud.org/coprs/churchyard/setuptools-74/package/qemu/

While it succeeded with setuptools 69.2.0 and wheel 0.43 in

  https://copr.fedorainfracloud.org/coprs/churchyard/setuptools-control/package/qemu/

This usually means this package fails to build with setuptools 74+

We plan to update setuptools to version 74 or newer in Fedora 42. This is an approved Fedora 42 Change:

  https://fedoraproject.org/wiki/Changes/Setuptools_74+



Please analyze the failure and fix it in rawhide. Thanks.


You can use the builds from the churchyard/setuptools-74 copr for local testing.

  mock -r fedora-rawhide-x86_64 --addrepo 'https://download.copr.fedorainfracloud.org/results/churchyard/setuptools-74/fedora-rawhide-$basearch/'


One of the most common problems is that the setup.py test command cannot be used. If that is the case here, run the tests in %check differently, e.g. via %pytest, %tox, %{python3} -m unittest, etc.


If you need help, reach out to me in this bugzilla.

Comment 1 Daniel Berrangé 2024-10-18 10:21:57 UTC
(In reply to Miro Hrončok from comment #0)

> It appears that your package failed to build with setuptools 74.1.3 and
> wheel 0.44 in
> 
>  
> https://copr.fedorainfracloud.org/coprs/churchyard/setuptools-74/package/
> qemu/
> 
> While it succeeded with setuptools 69.2.0 and wheel 0.43 in
> 
>  
> https://copr.fedorainfracloud.org/coprs/churchyard/setuptools-control/
> package/qemu/
> 
> This usually means this package fails to build with setuptools 74+

Buld log reports

../linux-user/syscall.c:363:8: error: redefinition of ‘struct sched_attr’
  363 | struct sched_attr {
      |        ^~~~~~~~~~
In file included from /usr/include/bits/sched.h:60,
                 from /usr/include/sched.h:43,
                 from /usr/include/pthread.h:22,
                 from /usr/include/glib-2.0/glib/deprecated/gthread.h:126,
                 from /usr/include/glib-2.0/glib.h:115,
                 from /builddir/build/BUILD/qemu-9.1.0-build/qemu-9.1.0/include/glib-compat.h:32,
                 from /builddir/build/BUILD/qemu-9.1.0-build/qemu-9.1.0/include/qemu/osdep.h:161,
                 from ../linux-user/syscall.c:20:
/usr/include/linux/sched/types.h:98:8: note: originally defined here
   98 | struct sched_attr {
      |        ^~~~~~~~~~


So there was a glibc upgrade between your two builds, and the failure is unrelated to python setuptools.

this was fixed in rawhide yesterday in qemu-9.1.0-3.fc42

Comment 2 Miro Hrončok 2024-10-18 10:32:51 UTC
Thanks and sorry for the noise!


Note You need to log in before you can comment on or make changes to this bug.