xref: /OK3568_Linux_fs/buildroot/package/python-pyqt5/0002-fix-qt-5.6.2.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunFix the build with Qt 5.6.{2,3}
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunBuilding PyQt 5.7 with versions of Qt older than Qt 5.7 is supposed to
4*4882a593Smuzhiyunwork, but currently fails in practice. In fact, this is due to the
5*4882a593Smuzhiyunfact that the %Timeline variable in QtCoremod.sip didn't contain the
6*4882a593Smuzhiyun5.6.{2,3} Qt versions, so if this version was used, PyQt was assuming it
7*4882a593Smuzhiyunwas the later version 5.7, and therefore started enabling APIs only
8*4882a593Smuzhiyunavailable in Qt 5.7, causing build failures when building against Qt
9*4882a593Smuzhiyun5.6.{2,3}.
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunAdding Qt_5_6_2 and Qt_5_6_3 to the timeline fixes this problem. This
12*4882a593Smuzhiyunfix was suggested by Phil Thompson <phil@riverbankcomputing.com>.
13*4882a593Smuzhiyun
14*4882a593SmuzhiyunSigned-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunIndex: PyQt5_gpl-5.7/sip/QtCore/QtCoremod.sip
17*4882a593Smuzhiyun===================================================================
18*4882a593Smuzhiyun--- PyQt5_gpl-5.7.orig/sip/QtCore/QtCoremod.sip	2016-07-25 15:55:37.000000000 +0200
19*4882a593Smuzhiyun+++ PyQt5_gpl-5.7/sip/QtCore/QtCoremod.sip	2016-10-26 15:45:43.577153825 +0200
20*4882a593Smuzhiyun@@ -22,7 +22,7 @@
21*4882a593Smuzhiyun
22*4882a593Smuzhiyun %Module(name=PyQt5.QtCore, call_super_init=True, default_VirtualErrorHandler=PyQt5, keyword_arguments="Optional", version=1)
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun-%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}
25*4882a593Smuzhiyun+%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_6_3 Qt_5_7_0}
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun %Platforms {WS_X11 WS_WIN WS_MACX}
28*4882a593Smuzhiyun
29