Bug 2247029

Summary: python-pyroaring fails to build with Python 3.13: error: ‘_PyLong_Copy’ was not declared in this scope; did you mean ‘PyLong_Type’?
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-pyroaringAssignee: Sandro <gui1ty>
Status: CLOSED WORKSFORME QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: bochecha, gui1ty, ksurma, mhroncok
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-01-17 18:57:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2244836    

Description Karolina Surma 2023-10-30 12:27:02 UTC
python-pyroaring fails to build with Python 3.13.0a1.

This report is automated and not very verbose, but we'll try to get back here with details.

  pyroaring/pyroaring.cpp: In function ‘PyObject* __Pyx_PyLong_AbsNeg(PyObject*)’:
  pyroaring/pyroaring.cpp:45414:26: error: ‘_PyLong_Copy’ was not declared in this scope; did you mean ‘PyLong_Type’?
  45414 |         PyObject *copy = _PyLong_Copy((PyLongObject*)n);
        |                          ^~~~~~~~~~~~
        |                          PyLong_Type

https://docs.python.org/3.13/whatsnew/3.13.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06578846-python-pyroaring/

For all our attempts to build python-pyroaring with Python 3.13, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-pyroaring/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.13:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/

Let us know here if you have any questions.

Python 3.13 is planned to be included in Fedora 41.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Sandro 2024-01-17 18:57:29 UTC
I just updated `python-pyroaring` and also ran a mock build against Python3.13. That succeeded.

https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-pyroaring/ also shows all builds after the first to be succeeding.

Comment 2 Karolina Surma 2024-01-18 08:32:50 UTC
thank you!