Control: tags 866419 + patch
Control: tags 866419 + pending

Dear maintainer,

I've prepared an NMU for cfv (versioned as 1.18.3-2.1) and
uploaded it to DELAYED/10. Please feel free to tell me if I
should delay it longer.

Regards.

diff -Nru cfv-1.18.3/debian/changelog cfv-1.18.3/debian/changelog
--- cfv-1.18.3/debian/changelog 2012-05-10 15:43:38.000000000 -0300
+++ cfv-1.18.3/debian/changelog 2019-07-24 12:55:20.000000000 -0300
@@ -1,3 +1,14 @@
+cfv (1.18.3-2.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix a FTBFS: (Closes: #866419)
+      - debian/control: changed from python-imaging to python-pil in
+        Suggests field. Thanks to David Gnedt <david+deb...@gnedt.at>.
+      - debian/patches/10_fix-python.patch: created to fix PIL namespace.
+        Thanks to David Gnedt <david+deb...@gnedt.at>.
+
+ -- Joao Eriberto Mota Filho <eribe...@debian.org>  Wed, 24 Jul 2019
12:55:20 -0300
+
 cfv (1.18.3-2) unstable; urgency=low

   * Package cleanup below by Jari Aalto <jari.aa...@cante.net> - thanks!
diff -Nru cfv-1.18.3/debian/control cfv-1.18.3/debian/control
--- cfv-1.18.3/debian/control   2012-05-10 15:36:48.000000000 -0300
+++ cfv-1.18.3/debian/control   2019-07-24 12:55:20.000000000 -0300
@@ -9,7 +9,7 @@
 Package: cfv
 Architecture: all
 Depends: ${python:Depends}, ${misc:Depends}
-Suggests: python-imaging, bittorrent | bittornado
+Suggests: python-pil, bittorrent | bittornado
 Description: versatile file checksum creator and verifier
  cfv is a utility to test and create a wide range of checksum
  verification files. It currently supports testing and creating
diff -Nru cfv-1.18.3/debian/patches/10_fix-python.patch
cfv-1.18.3/debian/patches/10_fix-python.patch
--- cfv-1.18.3/debian/patches/10_fix-python.patch       1969-12-31
21:00:00.000000000 -0300
+++ cfv-1.18.3/debian/patches/10_fix-python.patch       2019-07-24
12:55:20.000000000 -0300
@@ -0,0 +1,26 @@
+Description: fix PIL namespace
+Author: David Gnedt <david+deb...@gnedt.at>
+Bug-Debian: https://bugs.debian.org/866419
+Last-Update: 2019-03-13
+Index: cfv-1.18.3/cfv
+===================================================================
+--- cfv-1.18.3.orig/cfv
++++ cfv-1.18.3/cfv
+@@ -1837,7 +1837,7 @@ def getimagedimensions(filename):
+       if filename == '':
+               return '0','0'
+       try:
+-              import Image
++              from PIL import Image
+               im1=Image.open(filename)
+               return map(str, im1.size)
+       except (ImportError, IOError):
+@@ -1910,7 +1910,7 @@ class JPEGSheriff_CRC(ChksumType, CRC_Mi
+               file.write('Generated at: %s\n'%time.strftime('%a, %d
%b %Y %H:%M:%S',time.gmtime(time.time())))
+               file.write('Find  it  at: http://cfv.sourceforge.net/\n\n')
+               try:
+-                      import Image
++                      from PIL import Image
+                       self.use_dimensions=1 ####should this be made
optional somehow?
+               except ImportError:
+                       self.use_dimensions=0
diff -Nru cfv-1.18.3/debian/patches/series cfv-1.18.3/debian/patches/series
--- cfv-1.18.3/debian/patches/series    2012-05-10 15:36:48.000000000 -0300
+++ cfv-1.18.3/debian/patches/series    2019-07-24 12:55:20.000000000 -0300
@@ -1 +1,2 @@
 # 01-color.patch
+10_fix-python.patch

Reply via email to