Fedora Account System
Red Hat Associate
Red Hat Customer
pyparted fails to build with Python 3.12.0a7. make: *** [Makefile:42: test] Segmentation fault (core dumped) https://docs.python.org/3.12/whatsnew/3.12.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.12/fedora-rawhide-x86_64/05771208-pyparted/ For all our attempts to build pyparted with Python 3.12, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.12/package/pyparted/ 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.12: https://copr.fedorainfracloud.org/coprs/g/python/python3.12/ Let us know here if you have any questions. Python 3.12 is planned to be included in Fedora 39. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.12. 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.
Unable to reproduce this in rawhide now. It is building fine it seems.
Rawhide has Python 3.11. This has failed with Python 3.12 in the side tag: https://src.fedoraproject.org/rpms/pyparted/c/1f78cfc5daf748d15f82beda853da20a37c1defb?branch=rawhide https://koji.fedoraproject.org/koji/taskinfo?taskID=102118812 https://koji.fedoraproject.org/koji/taskinfo?taskID=102111451 And it is still failing in our Copr: https://copr.fedorainfracloud.org/coprs/g/python/python3.12/package/pyparted/
My mistake, got it now.
I've got an environment now with Python 3.12 and am able to reproduce this locally. It looks like the C API for extension modules has changed behavior in some way. But that's just my first take at it. I will get in to this in more detail tomorrow.
Further investigation leads me to my test suite. The test suite has some tests that cause a SIGSEGV in the _ped module. It worked fine with Python <= 3.11. Getting closer here.
I have fixed this upstream and made a new release of pyparted called pyparted-3.13.0. I've upgraded rawhide and I did a test mock build locally using the Python 3.12 Copr and that worked.
https://src.fedoraproject.org/rpms/pyparted/commits/rawhide does not seem to be 3.13.0 and still fails to build in the f39-python side tag.
3.13.0 sources were commited into dist-git and I've successfully built it in the side-tag. Thank you.
Thanks for the side-tag rebuild. I had commented here and closed the bug, *but* neglected to git push my changes for the package. I had done a number of scratch builds and then a number of test builds with the python 3.12 copr, but forgot to push to rawhide and do a real non-scratch build there. Ooops.