Summary: | devel/pyside2 Build fails complaining about DragMove | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | mhambley <freebsd-bugs> |
Component: | Individual Port(s) | Assignee: | freebsd-kde (group) <kde> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | CC: | adridg, jhale, milios, perestoronin, vishwin |
Priority: | --- | Flags: | jhale:
maintainer-feedback+
|
Version: | Latest | ||
Hardware: | amd64 | ||
OS: | Any |
Description
mhambley
2023-04-09 07:13:12 UTC
Can't reproduce in a local poudriere with up-to-date ports. Do you have any unusual flags -- options unset or so? I assume your Qt version is 5.15.8 (with various pXXX because of the KDE patch collection).
Based on your error message here, I looked at /wrkdirs/usr/ports/devel/pyside2/work-py39/.build/PySide2/QtGui/PySide2/QtGui/qdragmoveevent_wrapper.h locally, which is different source from what your error message shows:
public:
QDragMoveEventWrapper(const QPoint & pos, QFlags<Qt::DropAction> actions, con
st QMimeData * data, QFlags<Qt::MouseButton> buttons, QFlags<Qt::KeyboardModifier
> modifiers, QEvent::Type type = DragMove);
~QDragMoveEventWrapper();
Now, this is a generated file (as part of the build) so where your differently-generated source comes from is a bit of a mystery to me.
My Python is python39-3.9.16_2, QT is qt5-core-5.15.8p157_1. Pyside port options are to disable WEBENGINE. My /usr/local/etc/poudriere.d/make.conf adds to DEFAULT_VERSIONS llvm=16 java=19 ssl=libressl Anything else I can help with? This might be relevant but it doesn't fill me with joy: https://forum.qt.io/topic/144731/pyside2-missing-qopenglshader/2 I tried the Open Mandriva patch but it seems to be tackling a different problem. In particular it doesn't mention DragMove which is mentioned in the error message. When implemented I get the same error message. It looks like this problem is OpenGL related. Of course once FreeCAD has migrated to QT6 and PySide6 hopefully this will all go away for me. But that doesn't seem to be coming in the short term and there is other software which depends on pyside2. I just got bit by this on -CURRENT whilst testing changes elsewhere. According to the rest of OpenMandriva's commit adding their patch https://github.com/OpenMandrivaAssociation/qt5-qtbase/commit/20f97a4bfb95658bc35c3292ac11e52c335cc1e9 , this is caused by clang 16 (and later) exposing buggy/broken behaviour in pyside2 generated code. (In reply to mhambley from comment #5) See https://github.com/OpenMandrivaAssociation/qt5-qtbase/blob/master/qtbase-5.15.9-work-around-pyside2-brokenness.patch#L73 A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=1c4bdeedd071d370e693f36fb18b0735a1734f1a commit 1c4bdeedd071d370e693f36fb18b0735a1734f1a Author: Jason E. Hale <jhale@FreeBSD.org> AuthorDate: 2024-11-11 08:51:11 +0000 Commit: Jason E. Hale <jhale@FreeBSD.org> CommitDate: 2024-11-12 05:31:34 +0000 PySide2: Add workaround for devel/shiboken2 issues with LLVM >= 16 Shiboken2 itself builds fine, but the code it generates for devel/pyside2 is broken. In file included from /wrkdirs/usr/ports/devel/pyside2/work-py311/.build/PySide2/QtGui/PySide2/QtGui/qdragmoveevent_wrapper.cpp:63: /wrkdirs/usr/ports/devel/pyside2/work-py311/.build/PySide2/QtGui/PySide2/QtGui/qdragmoveevent_wrapper.h:55:220: error: no member named 'DragMove' in 'QOpenGLShader'; did you mean simply 'DragMove'? PR: 270715, 282433 Obtained from: OpenMandriva MFH: 2024Q4 x11-toolkits/qt5-gui/Makefile | 1 + .../qt5-gui/files/patch-src_gui_configure.json | 8 +-- .../files/patch-src_gui_kernel_qevent.h (new) | 76 ++++++++++++++++++++++ ...t_input_evdevkeyboard_qevdevkeyboardhandler.cpp | 6 +- ...support_input_evdevtouch_qevdevtouchhandler.cpp | 8 +-- x11-toolkits/qt5-widgets/Makefile | 1 + ...idgets_graphicsview_qgraphicssceneevent.h (new) | 56 ++++++++++++++++ 7 files changed, 145 insertions(+), 11 deletions(-) A commit in branch 2024Q4 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=8fb94b4b4f0221def7b63600400f47609703c07b commit 8fb94b4b4f0221def7b63600400f47609703c07b Author: Jason E. Hale <jhale@FreeBSD.org> AuthorDate: 2024-11-11 08:51:11 +0000 Commit: Jason E. Hale <jhale@FreeBSD.org> CommitDate: 2024-11-12 05:32:22 +0000 PySide2: Add workaround for devel/shiboken2 issues with LLVM >= 16 Shiboken2 itself builds fine, but the code it generates for devel/pyside2 is broken. In file included from /wrkdirs/usr/ports/devel/pyside2/work-py311/.build/PySide2/QtGui/PySide2/QtGui/qdragmoveevent_wrapper.cpp:63: /wrkdirs/usr/ports/devel/pyside2/work-py311/.build/PySide2/QtGui/PySide2/QtGui/qdragmoveevent_wrapper.h:55:220: error: no member named 'DragMove' in 'QOpenGLShader'; did you mean simply 'DragMove'? PR: 270715, 282433 Obtained from: OpenMandriva MFH: 2024Q4 (cherry picked from commit 1c4bdeedd071d370e693f36fb18b0735a1734f1a) x11-toolkits/qt5-gui/Makefile | 1 + .../qt5-gui/files/patch-src_gui_configure.json | 8 +-- .../files/patch-src_gui_kernel_qevent.h (new) | 76 ++++++++++++++++++++++ ...t_input_evdevkeyboard_qevdevkeyboardhandler.cpp | 6 +- ...support_input_evdevtouch_qevdevtouchhandler.cpp | 8 +-- x11-toolkits/qt5-widgets/Makefile | 1 + ...idgets_graphicsview_qgraphicssceneevent.h (new) | 56 ++++++++++++++++ 7 files changed, 145 insertions(+), 11 deletions(-) Sorry this took so long. This PR wasn't on my radar, but the issue popped up again in bug#282433. |