git » pyqt5.git » commit ad246f9

Restore sip4 support

author Antonio Rojas
2021-11-06 18:55:45 UTC
committer Antonio Rojas
2021-11-06 18:55:45 UTC
parent 95c985a3c6c039d584c2c5a4cc6c64472e8996e6

Restore sip4 support

PKGBUILD +9 -3
restore-sip4-support.patch +12 -0

diff --git a/PKGBUILD b/PKGBUILD
index 878a6e0..e930178 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,7 +9,7 @@ pkgbase=pyqt5
 pkgname=('python-pyqt5')
 pkgdesc="A set of Python bindings for the Qt5 toolkit"
 pkgver=5.15.6
-pkgrel=1
+pkgrel=2
 arch=('x86_64')
 url="https://riverbankcomputing.com/software/pyqt/intro"
 license=('GPL')
@@ -35,8 +35,14 @@ makedepends=('sip' 'pyqt-builder' 'python-opengl' 'python-dbus'
              'qt5-connectivity' 'qt5-multimedia' 'qt5-tools' 'qt5-serialport' 'qt5-speech' 'qt5-svg'
              'qt5-webkit' 'qt5-websockets' 'qt5-x11extras' 'qt5-xmlpatterns' 'qt5-remoteobjects' 'qt5-quick3d')
 conflicts=('pyqt5-common')
-source=("https://pypi.python.org/packages/source/P/PyQt5/PyQt5-$pkgver.tar.gz")
-sha256sums=('80343bcab95ffba619f2ed2467fd828ffeb0a251ad7225be5fc06dcc333af452')
+source=("https://pypi.python.org/packages/source/P/PyQt5/PyQt5-$pkgver.tar.gz"
+         restore-sip4-support.patch)
+sha256sums=('80343bcab95ffba619f2ed2467fd828ffeb0a251ad7225be5fc06dcc333af452'
+            'c8881a8dc666e509773f93330615d310f9f040c2167dc9e98843741691395f72')
+
+prepare() {
+  patch -d PyQt5-$pkgver -p1 < restore-sip4-support.patch # https://www.riverbankcomputing.com/pipermail/pyqt/2021-November/044346.html
+}
 
 build() {
   cd PyQt5-$pkgver
diff --git a/restore-sip4-support.patch b/restore-sip4-support.patch
new file mode 100644
index 0000000..faa3ed4
--- /dev/null
+++ b/restore-sip4-support.patch
@@ -0,0 +1,12 @@
+diff -ru PyQt5-5.15.6.orig/sip/QtCore/QtCoremod.sip PyQt5-5.15.6/sip/QtCore/QtCoremod.sip
+--- PyQt5-5.15.6.orig/sip/QtCore/QtCoremod.sip	2021-11-06 19:41:47.117226645 +0100
++++ PyQt5-5.15.6/sip/QtCore/QtCoremod.sip	2021-11-06 19:42:32.674011854 +0100
+@@ -20,7 +20,7 @@
+ // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ 
+ 
+-%Module(name=PyQt5.QtCore, call_super_init=True, default_VirtualErrorHandler=PyQt5, keyword_arguments="Optional", use_limited_api=True, py_ssize_t_clean=True)
++%Module(name=PyQt5.QtCore, call_super_init=True, default_VirtualErrorHandler=PyQt5, keyword_arguments="Optional", use_limited_api=True)
+ 
+ %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_6_4 Qt_5_6_5 Qt_5_6_6 Qt_5_6_7 Qt_5_6_8 Qt_5_6_9 Qt_5_7_0 Qt_5_7_1 Qt_5_8_0 Qt_5_8_1 Qt_5_9_0 Qt_5_9_1 Qt_5_9_2 Qt_5_9_3 Qt_5_9_4 Qt_5_9_5 Qt_5_9_6 Qt_5_9_7 Qt_5_9_8 Qt_5_9_9 Qt_5_10_0 Qt_5_10_1 Qt_5_11_0 Qt_5_11_1 Qt_5_11_2 Qt_5_11_3 Qt_5_12_0 Qt_5_12_1 Qt_5_12_2 Qt_5_12_3 Qt_5_12_4 Qt_5_13_0 Qt_5_14_0 Qt_5_15_0}
+