[arch-commits] Commit in pyqt5/trunk (PKGBUILD python2-pyqt5-crash-fix.patch)

Antonio Rojas arojas at archlinux.org
Mon Jul 1 15:27:23 UTC 2019


    Date: Monday, July 1, 2019 @ 15:27:22
  Author: arojas
Revision: 357207

Fix crash on python2 (FS#63051)

Added:
  pyqt5/trunk/python2-pyqt5-crash-fix.patch
Modified:
  pyqt5/trunk/PKGBUILD

-------------------------------+
 PKGBUILD                      |   13 ++++++++++---
 python2-pyqt5-crash-fix.patch |   13 +++++++++++++
 2 files changed, 23 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-07-01 14:14:39 UTC (rev 357206)
+++ PKGBUILD	2019-07-01 15:27:22 UTC (rev 357207)
@@ -7,7 +7,7 @@
 pkgbase=pyqt5
 pkgname=('pyqt5-common' 'python-pyqt5' 'python2-pyqt5')
 pkgver=5.12.3
-pkgrel=1
+pkgrel=2
 arch=('x86_64')
 url="https://riverbankcomputing.com/software/pyqt/intro"
 license=('GPL')
@@ -14,10 +14,17 @@
 makedepends=('python-sip-pyqt5' 'python2-sip-pyqt5' 'sip' 'python-opengl' 'python2-opengl' 'python2-enum34'
              'python2-dbus' 'python-dbus' 'qt5-connectivity' 'qt5-multimedia' 'qt5-tools' 'qt5-serialport' 'qt5-svg'
              'qt5-webkit' 'qt5-websockets' 'qt5-x11extras' 'qt5-networkauth' 'qt5-xmlpatterns' 'qt5-remoteobjects')
-source=("https://www.riverbankcomputing.com/static/Downloads/PyQt5/$pkgver/PyQt5_gpl-$pkgver.tar.gz")
-sha256sums=('0db0fa37debab147450f9e052286f7a530404e2aaddc438e97a7dcdf56292110')
+source=("https://www.riverbankcomputing.com/static/Downloads/PyQt5/$pkgver/PyQt5_gpl-$pkgver.tar.gz"
+         python2-pyqt5-crash-fix.patch)
+sha256sums=('0db0fa37debab147450f9e052286f7a530404e2aaddc438e97a7dcdf56292110'
+            'f50167da0fd3386fba36200a0226d6340f6bf6b0b108d5b80c8ad0b0fb26dbe1')
 
 prepare() {
+  cd PyQt5_gpl-$pkgver
+  # Remove code that is unneeded if Qt is not bundled and crashes on python2
+  # https://www.riverbankcomputing.com/pipermail/pyqt/2019-July/041896.html
+  patch -p1 -i ../python2-pyqt5-crash-fix.patch 
+  cd ..
   cp -a PyQt5_gpl-$pkgver{,-py2}
 }
 

Added: python2-pyqt5-crash-fix.patch
===================================================================
--- python2-pyqt5-crash-fix.patch	                        (rev 0)
+++ python2-pyqt5-crash-fix.patch	2019-07-01 15:27:22 UTC (rev 357207)
@@ -0,0 +1,13 @@
+diff -ur PyQt5_gpl-5.12.3/qpy/QtCore/qpycore_post_init.cpp.in PyQt5_gpl-5.12.3b/qpy/QtCore/qpycore_post_init.cpp.in
+--- PyQt5_gpl-5.12.3/qpy/QtCore/qpycore_post_init.cpp.in        2019-06-25 14:41:02.000000000 +0200
++++ PyQt5_gpl-5.12.3b/qpy/QtCore/qpycore_post_init.cpp.in       2019-07-01 17:06:34.882644535 +0200
+@@ -151,8 +151,4 @@
+     // initialised first (at least for Windows) and this is the only way to
+     // guarantee things are done in the right order.
+     PyQtSlotProxy::mutex = new QMutex(QMutex::Recursive);
+-
+-    // Load the embedded qt.conf file if there is a bundled copy of Qt.
+-    if (!qpycore_qt_conf())
+-        Py_FatalError("PyQt5.QtCore: Unable to embed qt.conf");
+ }
+



More information about the arch-commits mailing list