[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#863923: unblock: phatch/0.2.7.1-5



Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock

Please unblock package phatch

This upload fixes the pending RC bug; the package is currently marked
will-remove but it's a really nice utility (and the fix is a one-liner) that'd
be a shame if it wont be part of stretch.

a source debdiff is attached

unblock phatch/0.2.7.1-5

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.2.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE= (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diff -Nru phatch-0.2.7.1/debian/changelog phatch-0.2.7.1/debian/changelog
--- phatch-0.2.7.1/debian/changelog	2016-08-17 14:44:12.000000000 -0400
+++ phatch-0.2.7.1/debian/changelog	2017-06-01 20:01:28.000000000 -0400
@@ -1,3 +1,11 @@
+phatch (0.2.7.1-5) unstable; urgency=medium
+
+  * Team upload.
+  * debian/patches/bts823796.patch
+    - fix compatibility with Pillow 4.x; patch by Steve Cotton; Closes: #823796
+
+ -- Sandro Tosi <morph@debian.org>  Thu, 01 Jun 2017 20:01:28 -0400
+
 phatch (0.2.7.1-4) unstable; urgency=medium
 
   [ Mateusz Łukasik ]
diff -Nru phatch-0.2.7.1/debian/patches/bts823796.patch phatch-0.2.7.1/debian/patches/bts823796.patch
--- phatch-0.2.7.1/debian/patches/bts823796.patch	1969-12-31 19:00:00.000000000 -0500
+++ phatch-0.2.7.1/debian/patches/bts823796.patch	2017-06-01 20:00:07.000000000 -0400
@@ -0,0 +1,33 @@
+From: Steve Cotton <steve@octalot.co.uk>
+Date: Sat, 27 May 2017 01:32:21 +0200
+Subject: [PATCH] Convert images' wx.Size object to a tuple for the PIL library
+
+The wxPython library wraps image sizes in a wx.Size object, a class
+which provides the __len__ and accessor methods expected for a tuple.
+There's been a breaking change to the PIL library, which now
+explicitly checks the type of the size passed to it, and rejects
+anything which is not a tuple or a list.
+
+This patch adds a call to wx.Size.Get(), which returns the size as a
+tuple.
+
+Bug-Debian: https://bugs.debian.org/823796
+
+PIL library change: https://github.com/python-pillow/Pillow/commit/445451c0b9347b50e0f603db33f196e207de470d
+---
+ phatch/lib/pyWx/wxPil.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/phatch/lib/pyWx/wxPil.py b/phatch/lib/pyWx/wxPil.py
+index cf8c940..be73074 100644
+--- a/phatch/lib/pyWx/wxPil.py
++++ b/phatch/lib/pyWx/wxPil.py
+@@ -41,7 +41,7 @@ def pil_wxBitmap(image):
+ 
+ 
+ def wxImage_pil(wx_image):
+-    size = wx_image.GetSize()
++    size = wx_image.GetSize().Get()
+     image = Image.new('RGB', size)
+     image.frombytes(wx_image.GetData())
+     if wx_image.HasAlpha():
diff -Nru phatch-0.2.7.1/debian/patches/series phatch-0.2.7.1/debian/patches/series
--- phatch-0.2.7.1/debian/patches/series	2016-08-10 02:36:33.000000000 -0400
+++ phatch-0.2.7.1/debian/patches/series	2017-06-01 20:00:07.000000000 -0400
@@ -2,3 +2,4 @@
 pyexiv2.patch
 wxpy3.0-compat.patch
 fix-loading.patch
+bts823796.patch

Reply to: