Bug 2259627

Summary: python-zlib-ng fails to build with Python 3.13: error: implicit declaration of function ‘_PyBytes_Join’
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-zlib-ngAssignee: Ben Beasley <code>
Status: CLOSED ERRATA QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: code, ksurma, mhroncok, neuro-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-zlib-ng-0.4.0-3.fc40 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-01-23 14:46:03 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 2024-01-22 13:17:05 UTC
python-zlib-ng fails to build with Python 3.13.03.

src/zlib_ng/zlib_ngmodule.c: In function ‘GzipReader_readall’:
  src/zlib_ng/zlib_ngmodule.c:2813:21: error: implicit declaration of function ‘_PyBytes_Join’ [-Wimplicit-function-declaration]
   2813 |     PyObject *ret = _PyBytes_Join(empty_bytes, chunk_list);
        |                     ^~~~~~~~~~~~~
  src/zlib_ng/zlib_ngmodule.c:2813:21: error: initialization of ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  error: command '/usr/bin/gcc' failed with exit code 1

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/06920790-python-zlib-ng/

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

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 2 Ben Beasley 2024-01-23 14:31:03 UTC
This is in Rawhide. I just need to build it (for which I need to wait on the FAS outage).

Comment 3 Miro Hrončok 2024-01-23 14:38:57 UTC
I was able to fkinit couple of hours ago.

Building python-zlib-ng-0.4.0-3.fc40 for rawhide
Created task: 112218496
Task info: https://koji.fedoraproject.org/koji/taskinfo?taskID=112218496

Comment 4 Fedora Update System 2024-01-23 14:44:52 UTC
FEDORA-2024-30876e6454 has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2024-30876e6454

Comment 5 Fedora Update System 2024-01-23 14:46:03 UTC
FEDORA-2024-30876e6454 has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Ben Beasley 2024-01-23 14:46:28 UTC
Thanks!