Bug 2248129
Summary: | python-pyqt6 fails to build with Python 3.13: error: ‘Py_SetProgramName’ was not declared in this scope | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Karolina Surma <ksurma> |
Component: | python-pyqt6 | Assignee: | Onuralp SEZER <thunderbirdtr> |
Status: | NEW --- | QA Contact: | |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | epel-packagers-sig, jonathan, kde-sig, ksurma, manisandro, mhroncok, thunderbirdtr |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 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: | 2250649 | ||
Bug Blocks: | 2244836 |
Description
Karolina Surma
2023-11-06 10:57:07 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle. Changing version to 40. With bz2250649 mitigated, I see: In file included from /usr/include/qt6/QtCore/qfuture.h:9, from /usr/include/qt6/QtCore/QtCore:106, from /usr/include/qt6/QtDesigner/QtDesignerDepends:3, from /usr/include/qt6/QtDesigner/QtDesigner:3, from ../../designer/pluginloader.h:28, from ../../designer/pluginloader.cpp:24: /usr/include/qt6/QtCore/qfutureinterface.h:472:37: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 472 | explicit QFutureInterface<void>(State initialState = NoState) | ^~~~~ /usr/include/qt6/QtCore/qfutureinterface.h:472:37: note: remove the ‘< >’ ../../designer/pluginloader.cpp: In constructor ‘PyCustomWidgets::PyCustomWidgets(QObject*)’: ../../designer/pluginloader.cpp:146:17: error: ‘Py_SetProgramName’ was not declared in this scope; did you mean ‘Py_GetProgramName’? 146 | Py_SetProgramName(venv_wc); | ^~~~~~~~~~~~~~~~~ | Py_GetProgramName make[1]: *** [Makefile:801: pluginloader.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Entering directory '/builddir/build/BUILD/PyQt6-6.6.1/build/designer' g++ -c -pipe -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer `pkg-config --cflags dbus-python` -DQT_NO_INT128 -Wall -Wextra -D_REENTRANT -fPIC -DPYTHON_LIB=\"libpython3.13.so\" -DQT_NO_DEBUG -DQT_PLUGIN -DQT_DESIGNER_LIB -DQT_UIPLUGIN_LIB -DQT_OPENGLWIDGETS_LIB -DQT_WIDGETS_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB -DQDESIGNER_EXPORT_WIDGETS -I. -I/usr/include/python3.13 -I../../designer -I/usr/include/qt6 -I/usr/include/qt6/QtDesigner -I/usr/include/qt6/QtUiPlugin -I/usr/include/qt6/QtOpenGLWidgets -I/usr/include/qt6/QtWidgets -I/usr/include/qt6/QtOpenGL -I/usr/include/qt6/QtGui -I/usr/include/qt6/QtXml -I/usr/include/qt6/QtCore -I. -I/usr/lib64/qt6/mkspecs/linux-g++ -o moc_pluginloader.o moc_pluginloader.cpp make[1]: Leaving directory '/builddir/build/BUILD/PyQt6-6.6.1/build/designer' In file included from /usr/include/qt6/QtCore/qfuture.h:9, from /usr/include/qt6/QtCore/QtCore:106, from /usr/include/qt6/QtDesigner/QtDesignerDepends:3, from /usr/include/qt6/QtDesigner/QtDesigner:3, from ../../designer/pluginloader.h:28, from moc_pluginloader.cpp:9: /usr/include/qt6/QtCore/qfutureinterface.h:472:37: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 472 | explicit QFutureInterface<void>(State initialState = NoState) | ^~~~~ /usr/include/qt6/QtCore/qfutureinterface.h:472:37: note: remove the ‘< >’ make: *** [Makefile:82: sub-designer-make_first-ordered] Error 2 https://docs.python.org/3.13/whatsnew/3.13.html says: > Remove the following old functions to configure the Python initialization, deprecated in Python 3.11: > > ... > > Py_SetProgramName(): set PyConfig.program_name instead. > > https://docs.python.org/3.13/c-api/init_config.html#c.PyConfig > https://peps.python.org/pep-0587/ > https://github.com/python/cpython/issues/105145 |