Bug 2259528

Summary: py-radix fails to build with Python 3.13: passing argument 2 of ‘PyList_Append’ from incompatible pointer type
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: py-radixAssignee: Kevin Fenzi <kevin>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 40CC: fti-bugs, kevin, ksurma, mhroncok, redhat-bugzilla
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: py-radix-0.10.0-11.fc40 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-06-17 23:14:26 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: 2260875, 2260877, 2244836, 2291485    

Description Karolina Surma 2024-01-22 08:38:19 UTC
py-radix fails to build with Python 3.13.0a3.

radix/_radix.c: In function ‘add_node_to_list’:
radix/_radix.c:528:37: error: passing argument 2 of ‘PyList_Append’ from incompatible pointer type [-Wincompatible-pointer-types]
  528 |                 PyList_Append(ret, ((RadixNodeObject *)node->data));
      |                                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                     |
      |                                     RadixNodeObject *

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/06929299-py-radix/

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

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 Aoife Moloney 2024-02-15 23:11:10 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle.
Changing version to 40.

Comment 2 Karolina Surma 2024-06-12 14:58:02 UTC
*** Bug 2291586 has been marked as a duplicate of this bug. ***

Comment 3 Robert Scheck 2024-06-16 17:54:23 UTC
Kevin, I've created https://src.fedoraproject.org/rpms/py-radix/pull-request/5 to address this. Given my aggregate6 package depends on py-radix, I would be interested in becoming a co-maintainer.

Comment 4 Fedora Update System 2024-06-17 20:25:08 UTC
FEDORA-2024-f5a2f4e548 (py-radix-0.10.0-11.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-f5a2f4e548

Comment 5 Fedora Fails To Install 2024-06-17 23:14:26 UTC
Hello,

Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py
If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/

All subpackages of a package against which this bug was filled are now installable or removed from Fedora 41.

Thanks for taking care of it!

Comment 6 Fedora Update System 2024-06-18 01:37:08 UTC
FEDORA-2024-f5a2f4e548 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-f5a2f4e548`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-f5a2f4e548

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2024-06-26 01:56:03 UTC
FEDORA-2024-f5a2f4e548 (py-radix-0.10.0-11.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.