[arch-commits] Commit in calibre/trunk (PKGBUILD incompatibility-pyqt5.4.1.patch)

Jelle van der Waa jelle at archlinux.org
Sun Mar 8 19:47:54 UTC 2015


    Date: Sunday, March 8, 2015 @ 20:47:53
  Author: jelle
Revision: 128957

upgpkg: calibre 2.20.0-2

Added:
  calibre/trunk/incompatibility-pyqt5.4.1.patch
Modified:
  calibre/trunk/PKGBUILD

---------------------------------+
 PKGBUILD                        |   13 +++++++------
 incompatibility-pyqt5.4.1.patch |   28 ++++++++++++++++++++++++++++
 2 files changed, 35 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-03-08 19:47:18 UTC (rev 128956)
+++ PKGBUILD	2015-03-08 19:47:53 UTC (rev 128957)
@@ -8,7 +8,7 @@
 
 pkgname=calibre
 pkgver=2.20.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Ebook management application"
 arch=('i686' 'x86_64')
 url="http://calibre-ebook.com/"
@@ -25,8 +25,9 @@
             'udisks: required for mounting certain devices'
 )
 install=calibre.install
-source=("http://download.calibre-ebook.com/${pkgver}/calibre-${pkgver}.tar.xz")
-md5sums=('94f033006e6cc7b96abf62944368fc83')
+source=("http://download.calibre-ebook.com/${pkgver}/calibre-${pkgver}.tar.xz" "incompatibility-pyqt5.4.1.patch")
+md5sums=('94f033006e6cc7b96abf62944368fc83'
+         'cb28c339c0ab543a96e56363eeef3e8c')
 
 prepare(){
   cd "${srcdir}/${pkgname}-${pkgver}"
@@ -33,17 +34,14 @@
 
   # Remove unneeded files and libs
   rm -rf resources/${pkgname}-portable.* \
-         src/six.py \
          src/cherrypy \
          src/html5lib \
          src/chardet
 
   sed -i "s/shlex.split(ldflags)/& + ['-fPIC']/" setup/extensions.py
-  #sed -i -e "s/ldflags = shlex.split(ldflags)/ldflags = shlex.split(ldflags) + ['-fPIC']/" setup/extensions.py
 
   # Use python2
   sed -i 's:\(env[ ]\+python$\|/usr/bin/python$\):\12:g' $(find . -regex ".*\.py\|.*\.recipe")
-  sed -i "/pyqt_sip_dir/ s:=.*:= '/usr/share/sip/Py2-PyQt5':" setup/build_environment.py
 
   # Desktop integration (e.g. enforce arch defaults)
   sed -e "/self.create_uninstaller()/,/os.rmdir(config_dir)/d" \
@@ -59,6 +57,9 @@
       -e "s/'ctc-posml'/'text' not in mt and 'pdf' not in mt and 'xhtml'/" \
       -e "s/^Name=calibre/Name=Calibre/g" \
       -i  src/calibre/linux.py
+
+  # Fixes FS#43934
+  patch -Np1 -i $srcdir/incompatibility-pyqt5.4.1.patch
 }
 
 build() {

Added: incompatibility-pyqt5.4.1.patch
===================================================================
--- incompatibility-pyqt5.4.1.patch	                        (rev 0)
+++ incompatibility-pyqt5.4.1.patch	2015-03-08 19:47:53 UTC (rev 128957)
@@ -0,0 +1,28 @@
+From 72d47ba9377d70e786bf3d93b323544188c894bd Mon Sep 17 00:00:00 2001
+From: Kovid Goyal <kovid at kovidgoyal.net>
+Date: Thu, 5 Mar 2015 07:50:28 +0530
+Subject: [PATCH] =?UTF-8?q?Fix=20incompatibility=20with=20PyQt=205.4.1.=20?=
+ =?UTF-8?q?Fixes=20#1427684=20["TypeError:=20QPixmap():=20argument=201=20h?=
+ =?UTF-8?q?as=20unexpected=20type"=20=E2=80=93=20incompatibility=20with=20?=
+ =?UTF-8?q?Qt=205.4.1=3F](https://bugs.launchpad.net/calibre/+bug/1427684)?=
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+---
+ src/calibre/gui2/widgets.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/calibre/gui2/widgets.py b/src/calibre/gui2/widgets.py
+index 0e84267..ed40a97 100644
+--- a/src/calibre/gui2/widgets.py
++++ b/src/calibre/gui2/widgets.py
+@@ -295,7 +295,7 @@ class ImageView(QWidget, ImageDropMixin):  # {{{
+     def __init__(self, parent=None, show_size_pref_name=None, default_show_size=False):
+         QWidget.__init__(self, parent)
+         self.show_size_pref_name = ('show_size_on_cover_' + show_size_pref_name) if show_size_pref_name else None
+-        self._pixmap = QPixmap(self)
++        self._pixmap = QPixmap()
+         self.setMinimumSize(QSize(150, 200))
+         ImageDropMixin.__init__(self)
+         self.draw_border = True



More information about the arch-commits mailing list