summaryrefslogtreecommitdiffstats
path: root/package/python-pyqt5/0002-fix-qt-5.6.2.patch
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-10-26 16:24:41 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-10-26 16:24:41 +0200
commit6c042622e1f1aeda4c6de8b04a5853657377302a (patch)
tree73d22db10acfa6e6b7961dad4d951f10002d56f1 /package/python-pyqt5/0002-fix-qt-5.6.2.patch
parent0f416f55c471e1337474e3410e507b4e90b98de2 (diff)
downloadbuildroot-6c042622e1f1aeda4c6de8b04a5853657377302a.tar.gz
buildroot-6c042622e1f1aeda4c6de8b04a5853657377302a.zip
python-pyqt5: fix the build with Qt 5.6.2
This commit adds a patch to the python-pyqt5 package that fixes the build with Qt 5.6.2. It has been verified to fix: http://autobuild.buildroot.net/results/8ca61ec09cf0e6577d72fe5d809867aa284c8f1e/ And it should also fix: http://autobuild.buildroot.net/results/4e0c5776264a7382c842f04e333fe4ded7d14f8a/ http://autobuild.buildroot.net/results/0306710e0f39591dba74f24aff40f7f094bcfa6e/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/python-pyqt5/0002-fix-qt-5.6.2.patch')
-rw-r--r--package/python-pyqt5/0002-fix-qt-5.6.2.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/package/python-pyqt5/0002-fix-qt-5.6.2.patch b/package/python-pyqt5/0002-fix-qt-5.6.2.patch
new file mode 100644
index 0000000000..a56af09025
--- /dev/null
+++ b/package/python-pyqt5/0002-fix-qt-5.6.2.patch
@@ -0,0 +1,28 @@
+Fix the build with Qt 5.6.2
+
+Building PyQt 5.7 with versions of Qt older than Qt 5.7 is supposed to
+work, but currently fails in practice. In fact, this is due to the
+fact that the %Timeline variable in QtCoremod.sip didn't contain the
+5.6.2 Qt version, so if this version was used, PyQt was assuming it
+was the later version 5.7, and therefore started enabling APIs only
+available in Qt 5.7, causing build failures when building against Qt
+5.6.2.
+
+Adding Qt_5_6_2 to the timeline fixes this problem. This fix was
+suggested by Phil Thompson <phil@riverbankcomputing.com>.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+
+Index: PyQt5_gpl-5.7/sip/QtCore/QtCoremod.sip
+===================================================================
+--- PyQt5_gpl-5.7.orig/sip/QtCore/QtCoremod.sip 2016-07-25 15:55:37.000000000 +0200
++++ PyQt5_gpl-5.7/sip/QtCore/QtCoremod.sip 2016-10-26 15:45:43.577153825 +0200
+@@ -22,7 +22,7 @@
+
+ %Module(name=PyQt5.QtCore, call_super_init=True, default_VirtualErrorHandler=PyQt5, keyword_arguments="Optional", version=1)
+
+-%Timeline {Qt_5_0_0 Qt_5_0_1 Qt_5_0_2 Qt_5_1_0 Qt_5_1_1 Qt_5_2_0 Qt_5_2_1 Qt_5_3_0 Qt_5_3_1 Qt_5_3_2 Qt_5_4_0 Qt_5_4_1 Qt_5_4_2 Qt_5_5_0 Qt_5_5_1 Qt_5_6_0 Qt_5_6_1 Qt_5_7_0}
++%Timeline {Qt_5_0_0 Qt_5_0_1 Qt_5_0_2 Qt_5_1_0 Qt_5_1_1 Qt_5_2_0 Qt_5_2_1 Qt_5_3_0 Qt_5_3_1 Qt_5_3_2 Qt_5_4_0 Qt_5_4_1 Qt_5_4_2 Qt_5_5_0 Qt_5_5_1 Qt_5_6_0 Qt_5_6_1 Qt_5_6_2 Qt_5_7_0}
+
+ %Platforms {WS_X11 WS_WIN WS_MACX}
+
OpenPOWER on IntegriCloud