python-pycurl fails to build with Python 3.10.0a1. RPM build errors: src/easyperform.c: In function ‘do_curl_perform_rb’: src/easyperform.c:31:5: warning: ‘PyEval_CallObjectWithKeywords’ is deprecated [-Wdeprecated-declarations] 31 | io = PyEval_CallObject(bytesio, NULL); | ^~ In file included from /usr/include/python3.10/Python.h:146, from src/pycurl.h:5, from src/easyperform.c:1: /usr/include/python3.10/ceval.h:17:43: note: declared here 17 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/module.c: In function ‘PyInit_pycurl’: src/module.c:353:25: error: lvalue required as left operand of assignment 353 | Py_TYPE(&Curl_Type) = &PyType_Type; | ^ src/module.c:354:30: error: lvalue required as left operand of assignment 354 | Py_TYPE(&CurlMulti_Type) = &PyType_Type; | ^ src/module.c:355:30: error: lvalue required as left operand of assignment 355 | Py_TYPE(&CurlShare_Type) = &PyType_Type; | ^ src/module.c:1406:5: warning: ‘PyEval_InitThreads’ is deprecated [-Wdeprecated-declarations] 1406 | PyEval_InitThreads(); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.10/Python.h:146, from src/pycurl.h:5, from src/module.c:1: /usr/include/python3.10/ceval.h:122:37: note: declared here 122 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void); | ^~~~~~~~~~~~~~~~~~ For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.10/fedora-rawhide-x86_64/01715017-python-pycurl/ For all our attempts to build python-pycurl with Python 3.10, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/python-pycurl/ 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.10: https://copr.fedorainfracloud.org/coprs/g/python/python3.10/ Let us know here if you have any questions. Python 3.10 will be included in Fedora 35. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.10. 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.
Oh, this is already reported and fixed. Sorry for the noise. *** This bug has been marked as a duplicate of bug 1890442 ***