Control: tags -1 patch

On 1/14/23 18:27, Bas Couwenberg wrote:
python3-pil lost the libtiff dependency after the recent rebuild during the 
transition to tiff 4.5.0:

The attached patch resolves the issue by adding support for the tiff.h multiarch path.

Kind Regards,

Bas

--
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1
diff -Nru pillow-9.4.0/debian/changelog pillow-9.4.0/debian/changelog
--- pillow-9.4.0/debian/changelog       2023-01-03 09:06:46.000000000 +0000
+++ pillow-9.4.0/debian/changelog       2023-01-14 17:52:49.000000000 +0000
@@ -1,3 +1,11 @@
+pillow (9.4.0-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Add patch to support tiff.h multiarch path.
+    (closes: #1028904)
+
+ -- Bas Couwenberg <sebas...@debian.org>  Sat, 14 Jan 2023 17:52:49 +0000
+
 pillow (9.4.0-1) unstable; urgency=medium
 
   * New upstream version.
diff -Nru pillow-9.4.0/debian/patches/series pillow-9.4.0/debian/patches/series
--- pillow-9.4.0/debian/patches/series  2022-10-21 15:53:14.000000000 +0000
+++ pillow-9.4.0/debian/patches/series  2023-01-14 17:50:49.000000000 +0000
@@ -4,3 +4,4 @@
 no-sphinx-removed-in.diff
 no-sphinx-opengraph.diff
 no-sphinx-furo.diff
+tiff-4.5.0.patch
diff -Nru pillow-9.4.0/debian/patches/tiff-4.5.0.patch 
pillow-9.4.0/debian/patches/tiff-4.5.0.patch
--- pillow-9.4.0/debian/patches/tiff-4.5.0.patch        1970-01-01 
00:00:00.000000000 +0000
+++ pillow-9.4.0/debian/patches/tiff-4.5.0.patch        2023-01-14 
17:52:48.000000000 +0000
@@ -0,0 +1,20 @@
+Description: Add support for tiff.h in multiarch path.
+Author: Bas Couwenberg <sebas...@debian.org>
+Bug-Debian: https://bugs.debian.org/1028904
+
+--- a/setup.py
++++ b/setup.py
+@@ -733,6 +733,13 @@ class pil_build_ext(build_ext):
+ 
+         if feature.want("tiff"):
+             _dbg("Looking for tiff")
++
++            if 'DEB_HOST_MULTIARCH' in os.environ:
++                _add_directory(
++                    self.compiler.include_dirs,
++                    '/usr/include/%s' % os.environ['DEB_HOST_MULTIARCH'],
++                )
++
+             if _find_include_file(self, "tiff.h"):
+                 if _find_library_file(self, "tiff"):
+                     feature.tiff = "tiff"

Reply via email to