sigil fails to build with Python 3.11.0b1. /builddir/build/BUILD/Sigil-0.9.14/src/Misc/EmbeddedPython.cpp:217:23: warning: 'void PyEval_InitThreads()' is deprecated [-Wdeprecated-declarations] 217 | PyEval_InitThreads(); | ~~~~~~~~~~~~~~~~~~^~ In file included from /usr/include/python3.11/Python.h:95, from /builddir/build/BUILD/Sigil-0.9.14/src/Misc/EmbeddedPython.h:26, from /builddir/build/BUILD/Sigil-0.9.14/src/Misc/EmbeddedPython.cpp:23: /usr/include/python3.11/ceval.h:132:37: note: declared here 132 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void); | ^~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/Sigil-0.9.14/src/Misc/EmbeddedPython.cpp: In member function 'QVariant EmbeddedPython::PyObjectToQVariant(PyObject*, bool)': /builddir/build/BUILD/Sigil-0.9.14/src/Misc/EmbeddedPython.cpp:459:27: error: expected primary-expression before '(' token 459 | res = QVariant(QString::fromLatin1(reinterpret_cast<const char *>PyUnicode_1BYTE_DATA(po), -1)); | ^ In file included from /usr/include/python3.11/Python.h:38: /usr/include/python3.11/pyport.h:28:39: error: expected '(' before 'static_cast' 28 | # define _Py_STATIC_CAST(type, expr) static_cast<type>(expr) | ^~~~~~~~~~~ /usr/include/python3.11/cpython/unicodeobject.h:350:34: note: in expansion of macro '_Py_STATIC_CAST' 350 | #define PyUnicode_1BYTE_DATA(op) _Py_STATIC_CAST(Py_UCS1*, PyUnicode_DATA(op)) | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/Sigil-0.9.14/src/Misc/EmbeddedPython.cpp:459:78: note: in expansion of macro 'PyUnicode_1BYTE_DATA' 459 | res = QVariant(QString::fromLatin1(reinterpret_cast<const char *>PyUnicode_1BYTE_DATA(po), -1)); | ^~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/Sigil-0.9.14/src/Misc/EmbeddedPython.cpp:459:108: error: expected ')' before ';' token 459 | res = QVariant(QString::fromLatin1(reinterpret_cast<const char *>PyUnicode_1BYTE_DATA(po), -1)); | ~ ^ https://docs.python.org/3.11/whatsnew/3.11.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.11/fedora-rawhide-x86_64/04392802-sigil/ For all our attempts to build sigil with Python 3.11, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.11/package/sigil/ 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.11: https://copr.fedorainfracloud.org/coprs/g/python/python3.11/ Let us know here if you have any questions. Python 3.11 is planned to be included in Fedora 37. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.11. 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.
This bug appears to have been reported against 'rawhide' during the Fedora Linux 37 development cycle. Changing version to 37.
Hey, Dan. Could you please fix and rebuild the package?
FEDORA-2022-62fc8f1339 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-62fc8f1339
thanks for the reminder :-)
FEDORA-2022-62fc8f1339 has been pushed to the Fedora 37 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-62fc8f1339` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-62fc8f1339 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2022-62fc8f1339 has been pushed to the Fedora 37 stable repository. If problem still persists, please make note of it in this bug report.