Source: pillow
Version: 12.0.0-1
Tags: patch
User: [email protected]
Usertags: cross-satisfiability
Control: affects 1121810 + src:pillow

pillow cannot be cross built from source. The reasons are several.

 * python3-pytest is not satisfiable. As it is a test dependency,
   annotating it <!nocheck> helps.
 * python3-all-dev needs to be multiarched.
 * python3-olefile is unsatisfiable. I am filing a separate report about
   this.
 * python3-all-dev fails to coinstall with libpython3-all-dev. Reported
   as #1121810.
 * This list is not exhaustive.

The attached patch fixes the first two problems. Before moving further,
the other two bugs need to be addressed and the proposed changes should
be uncontroversial.

Helmut
diff -Nru pillow-12.0.0/debian/changelog pillow-12.0.0/debian/changelog
--- pillow-12.0.0/debian/changelog      2025-10-22 14:52:17.000000000 +0200
+++ pillow-12.0.0/debian/changelog      2025-12-17 16:15:07.000000000 +0100
@@ -1,3 +1,12 @@
+pillow (12.0.0-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Improve cross building. (Closes: #-1)
+    + Support the nocheck build profile.
+    + Multiarchify Python Build-Depends.
+
+ -- Helmut Grohne <[email protected]>  Wed, 17 Dec 2025 16:15:07 +0100
+
 pillow (12.0.0-1) unstable; urgency=medium
 
   * New upstream version.
diff -Nru pillow-12.0.0/debian/control pillow-12.0.0/debian/control
--- pillow-12.0.0/debian/control        2025-10-22 14:52:17.000000000 +0200
+++ pillow-12.0.0/debian/control        2025-12-17 16:15:07.000000000 +0100
@@ -4,14 +4,16 @@
 Maintainer: Matthias Klose <[email protected]>
 Build-Depends: debhelper (>= 11), tk-dev, dpkg-dev (>= 1.16.1~),
   dh-python,
-  python3-all-dev, python3-setuptools,
+  python3-all-dev:native,
+  python3-setuptools,
   python3-tk,
-  python3-pytest,
+  python3-pytest <!nocheck>,
   python3-olefile,
   python3-cffi,
   python3-pybind11,
   libavif-dev,
   libfreetype6-dev, libjpeg-dev, zlib1g-dev, liblcms2-dev,
+  libpython3-all-dev,
   libtiff5-dev | libtiff-dev, libwebp-dev, libraqm-dev,
   libimagequant-dev,
   libopenjp2-7-dev,
diff -Nru pillow-12.0.0/debian/rules pillow-12.0.0/debian/rules
--- pillow-12.0.0/debian/rules  2025-09-02 09:49:35.000000000 +0200
+++ pillow-12.0.0/debian/rules  2025-12-17 16:15:07.000000000 +0100
@@ -42,7 +42,7 @@
 
 check-stamp-python%:
 ifeq (0,1)
-ifeq ($(DEB_BUILD_MULTIARCH),$(DEB_HOST_MULTIARCH))
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
        rm -rf tmp
        mkdir -p tmp
        ln -s ../Tests tmp/Tests

Reply via email to