* [PR PATCH] qt5: patch to fix python3-pyside2 build. closes#50673
@ 2024-06-04 19:40 zlice
2024-06-05 6:13 ` [PR PATCH] [Merged]: " sgn
0 siblings, 1 reply; 2+ messages in thread
From: zlice @ 2024-06-04 19:40 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 869 bytes --]
There is a new pull request by zlice against master on the void-packages repository
https://github.com/zlice/void-packages qt5-pyside2-fix
https://github.com/void-linux/void-packages/pull/50693
qt5: patch to fix python3-pyside2 build. closes#50673
#### Testing the changes
- I tested the changes in this PR: **briefly**
#### Local build testing
- I built this PR locally for my native architecture, **x86_64**
#### Comments
python3-pyside2 was fixed a while back with qt 5.15.10/11 and then broke again over the past months.
The patch from OpenMandriva allows python3-pyside2 to build again (required for qt5-webengine / ffmpeg6).
A quick build and install on another machine with base void packages does not appear to affect qt5 programs from running.
A patch file from https://github.com/void-linux/void-packages/pull/50693.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-qt5-pyside2-fix-50693.patch --]
[-- Type: text/x-diff, Size: 8396 bytes --]
From 656e17d5f97146a415e80140f14dc8fd28ef8ca5 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Tue, 4 Jun 2024 15:37:13 -0400
Subject: [PATCH] qt5: patch to fix python3-pyside2 build. closes#50673
---
....15.9-work-around-pyside2-brokenness.patch | 134 ++++++++++++++++++
srcpkgs/qt5/template | 2 +-
2 files changed, 135 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/qt5/patches/qtbase-5.15.9-work-around-pyside2-brokenness.patch
diff --git a/srcpkgs/qt5/patches/qtbase-5.15.9-work-around-pyside2-brokenness.patch b/srcpkgs/qt5/patches/qtbase-5.15.9-work-around-pyside2-brokenness.patch
new file mode 100644
index 00000000000000..fdc3d790e24e08
--- /dev/null
+++ b/srcpkgs/qt5/patches/qtbase-5.15.9-work-around-pyside2-brokenness.patch
@@ -0,0 +1,134 @@
+https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270715
+https://github.com/OpenMandrivaAssociation/qt5-qtbase/blob/master/qtbase-5.15.9-work-around-pyside2-brokenness.patch
+--- a/qtbase/src/gui/kernel/qevent.h 2023-03-23 20:06:47.000000000 +0100
++++ b/qtbase/src/gui/kernel/qevent.h 2023-04-15 23:23:40.599956996 +0200
+@@ -104,15 +104,15 @@ protected:
+ class Q_GUI_EXPORT QMouseEvent : public QInputEvent
+ {
+ public:
+- QMouseEvent(Type type, const QPointF &localPos, Qt::MouseButton button,
++ QMouseEvent(QEvent::Type type, const QPointF &localPos, Qt::MouseButton button,
+ Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers);
+- QMouseEvent(Type type, const QPointF &localPos, const QPointF &screenPos,
++ QMouseEvent(QEvent::Type type, const QPointF &localPos, const QPointF &screenPos,
+ Qt::MouseButton button, Qt::MouseButtons buttons,
+ Qt::KeyboardModifiers modifiers);
+- QMouseEvent(Type type, const QPointF &localPos, const QPointF &windowPos, const QPointF &screenPos,
++ QMouseEvent(QEvent::Type type, const QPointF &localPos, const QPointF &windowPos, const QPointF &screenPos,
+ Qt::MouseButton button, Qt::MouseButtons buttons,
+ Qt::KeyboardModifiers modifiers);
+- QMouseEvent(Type type, const QPointF &localPos, const QPointF &windowPos, const QPointF &screenPos,
++ QMouseEvent(QEvent::Type type, const QPointF &localPos, const QPointF &windowPos, const QPointF &screenPos,
+ Qt::MouseButton button, Qt::MouseButtons buttons,
+ Qt::KeyboardModifiers modifiers, Qt::MouseEventSource source);
+ ~QMouseEvent();
+@@ -154,7 +154,7 @@ protected:
+ class Q_GUI_EXPORT QHoverEvent : public QInputEvent
+ {
+ public:
+- QHoverEvent(Type type, const QPointF &pos, const QPointF &oldPos, Qt::KeyboardModifiers modifiers = Qt::NoModifier);
++ QHoverEvent(QEvent::Type type, const QPointF &pos, const QPointF &oldPos, Qt::KeyboardModifiers modifiers = Qt::NoModifier);
+ ~QHoverEvent();
+
+ #ifndef QT_NO_INTEGER_EVENT_COORDINATES
+@@ -282,12 +282,12 @@ public:
+ #if QT_DEPRECATED_SINCE(5, 15)
+ // Actually deprecated since 5.4, in docs
+ QT_DEPRECATED_VERSION_X_5_15("Use the other QTabletEvent constructor")
+- QTabletEvent(Type t, const QPointF &pos, const QPointF &globalPos,
++ QTabletEvent(QEvent::Type t, const QPointF &pos, const QPointF &globalPos,
+ int device, int pointerType, qreal pressure, int xTilt, int yTilt,
+ qreal tangentialPressure, qreal rotation, int z,
+ Qt::KeyboardModifiers keyState, qint64 uniqueID); // ### remove in Qt 6
+ #endif
+- QTabletEvent(Type t, const QPointF &pos, const QPointF &globalPos,
++ QTabletEvent(QEvent::Type t, const QPointF &pos, const QPointF &globalPos,
+ int device, int pointerType, qreal pressure, int xTilt, int yTilt,
+ qreal tangentialPressure, qreal rotation, int z,
+ Qt::KeyboardModifiers keyState, qint64 uniqueID,
+@@ -377,9 +377,9 @@ protected:
+ class Q_GUI_EXPORT QKeyEvent : public QInputEvent
+ {
+ public:
+- QKeyEvent(Type type, int key, Qt::KeyboardModifiers modifiers, const QString& text = QString(),
++ QKeyEvent(QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, const QString& text = QString(),
+ bool autorep = false, ushort count = 1);
+- QKeyEvent(Type type, int key, Qt::KeyboardModifiers modifiers,
++ QKeyEvent(QEvent::Type type, int key, Qt::KeyboardModifiers modifiers,
+ quint32 nativeScanCode, quint32 nativeVirtualKey, quint32 nativeModifiers,
+ const QString &text = QString(), bool autorep = false, ushort count = 1);
+ ~QKeyEvent();
+@@ -399,7 +399,7 @@ public:
+
+ // Functions for the extended key event information
+ #if QT_DEPRECATED_SINCE(5, 0)
+- static inline QKeyEvent *createExtendedKeyEvent(Type type, int key, Qt::KeyboardModifiers modifiers,
++ static inline QKeyEvent *createExtendedKeyEvent(QEvent::Type type, int key, Qt::KeyboardModifiers modifiers,
+ quint32 nativeScanCode, quint32 nativeVirtualKey,
+ quint32 nativeModifiers,
+ const QString& text = QString(), bool autorep = false,
+@@ -682,7 +682,7 @@ class Q_GUI_EXPORT QDragMoveEvent : publ
+ {
+ public:
+ QDragMoveEvent(const QPoint &pos, Qt::DropActions actions, const QMimeData *data,
+- Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Type type = DragMove);
++ Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, QEvent::Type type = QEvent::DragMove);
+ ~QDragMoveEvent();
+
+ inline QRect answerRect() const { return rect; }
+--- a/qtbase/src/widgets/graphicsview/qgraphicssceneevent.h.5~ 2023-03-23 20:06:47.000000000 +0100
++++ b/qtbase/src/widgets/graphicsview/qgraphicssceneevent.h 2023-04-15 23:22:38.038387091 +0200
+@@ -82,7 +82,7 @@ class QGraphicsSceneMouseEventPrivate;
+ class Q_WIDGETS_EXPORT QGraphicsSceneMouseEvent : public QGraphicsSceneEvent
+ {
+ public:
+- explicit QGraphicsSceneMouseEvent(Type type = None);
++ explicit QGraphicsSceneMouseEvent(QEvent::Type type = QEvent::None);
+ ~QGraphicsSceneMouseEvent();
+
+ QPointF pos() const;
+@@ -136,7 +136,7 @@ class QGraphicsSceneWheelEventPrivate;
+ class Q_WIDGETS_EXPORT QGraphicsSceneWheelEvent : public QGraphicsSceneEvent
+ {
+ public:
+- explicit QGraphicsSceneWheelEvent(Type type = None);
++ explicit QGraphicsSceneWheelEvent(QEvent::Type type = QEvent::None);
+ ~QGraphicsSceneWheelEvent();
+
+ QPointF pos() const;
+@@ -171,7 +171,7 @@ class Q_WIDGETS_EXPORT QGraphicsSceneCon
+ public:
+ enum Reason { Mouse, Keyboard, Other };
+
+- explicit QGraphicsSceneContextMenuEvent(Type type = None);
++ explicit QGraphicsSceneContextMenuEvent(QEvent::Type type = QEvent::None);
+ ~QGraphicsSceneContextMenuEvent();
+
+ QPointF pos() const;
+@@ -198,7 +198,7 @@ class QGraphicsSceneHoverEventPrivate;
+ class Q_WIDGETS_EXPORT QGraphicsSceneHoverEvent : public QGraphicsSceneEvent
+ {
+ public:
+- explicit QGraphicsSceneHoverEvent(Type type = None);
++ explicit QGraphicsSceneHoverEvent(QEvent::Type type = QEvent::None);
+ ~QGraphicsSceneHoverEvent();
+
+ QPointF pos() const;
+@@ -231,7 +231,7 @@ class QGraphicsSceneHelpEventPrivate;
+ class Q_WIDGETS_EXPORT QGraphicsSceneHelpEvent : public QGraphicsSceneEvent
+ {
+ public:
+- explicit QGraphicsSceneHelpEvent(Type type = None);
++ explicit QGraphicsSceneHelpEvent(QEvent::Type type = QEvent::None);
+ ~QGraphicsSceneHelpEvent();
+
+ QPointF scenePos() const;
+@@ -249,7 +249,7 @@ class QGraphicsSceneDragDropEventPrivate
+ class Q_WIDGETS_EXPORT QGraphicsSceneDragDropEvent : public QGraphicsSceneEvent
+ {
+ public:
+- explicit QGraphicsSceneDragDropEvent(Type type = None);
++ explicit QGraphicsSceneDragDropEvent(QEvent::Type type = QEvent::None);
+ ~QGraphicsSceneDragDropEvent();
+
+ QPointF pos() const;
diff --git a/srcpkgs/qt5/template b/srcpkgs/qt5/template
index 0f8203e899c63f..e57e1593445204 100644
--- a/srcpkgs/qt5/template
+++ b/srcpkgs/qt5/template
@@ -3,7 +3,7 @@
# revbump libqtxdg after bumping patch version
pkgname=qt5
version=5.15.11+20231124
-revision=3
+revision=4
# commit 4765fa1df7a837db9c1f89c4da0dd76b74bb5fab
# base repo: https://invent.kde.org/qt/qt/qt5
build_style=meta
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PR PATCH] [Merged]: qt5: patch to fix python3-pyside2 build. closes#50673
2024-06-04 19:40 [PR PATCH] qt5: patch to fix python3-pyside2 build. closes#50673 zlice
@ 2024-06-05 6:13 ` sgn
0 siblings, 0 replies; 2+ messages in thread
From: sgn @ 2024-06-05 6:13 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 727 bytes --]
There's a merged pull request on the void-packages repository
qt5: patch to fix python3-pyside2 build. closes#50673
https://github.com/void-linux/void-packages/pull/50693
Description:
[ci skip]
#### Testing the changes
- I tested the changes in this PR: **briefly**
#### Local build testing
- I built this PR locally for my native architecture, **x86_64**
#### Comments
python3-pyside2 was fixed a while back with qt 5.15.10/11 and then broke again over the past months.
The patch from OpenMandriva allows python3-pyside2 to build again (required for qt5-webengine / ffmpeg6).
A quick build and install on another machine with base void packages does not appear to affect qt5 programs from running.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-06-05 6:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-04 19:40 [PR PATCH] qt5: patch to fix python3-pyside2 build. closes#50673 zlice
2024-06-05 6:13 ` [PR PATCH] [Merged]: " sgn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).