Source: libiptcdata
Version: 1.0.5-3
Tags: patch
User: [email protected]
Usertags: cross-satisfiability ftcbfs
Control: affects 1121810 + src:libiptcdata

libiptcdata fails to cross build from source for three distinct reasons.

1. python3-all-dev is not satisfiable. For cross building, this should
   become python3-all-dev:native plus libpython3-all-dev.
2. python3-all-dev:native and libpython3-all-dev are not coinstallable.
   Reported as #1121810.
3. The gtk-doc scanner fails. Since the documentation has been separated
   to an Arch:all -doc package, gtk-doc can be skipped in arch-only
   builds.

I'm attaching a patch resolving problems 1 and 3. While this doesn't
make libiptcdata cross buildable yet, it is an incremental step towards
that goal. Please consider applying the patch. Do close the bug even if
libiptcdata does not become cross buildable.

Helmut
diff -Nru libiptcdata-1.0.5/debian/changelog libiptcdata-1.0.5/debian/changelog
--- libiptcdata-1.0.5/debian/changelog  2025-05-23 02:12:06.000000000 +0200
+++ libiptcdata-1.0.5/debian/changelog  2025-12-19 20:38:17.000000000 +0100
@@ -1,3 +1,12 @@
+libiptcdata (1.0.5-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Improve cross building: (Closes: #-1)
+    + Multiarchify Python Build-Depends.
+    + Disable gtk-doc in arch-only build.
+
+ -- Helmut Grohne <[email protected]>  Fri, 19 Dec 2025 20:38:17 +0100
+
 libiptcdata (1.0.5-3) unstable; urgency=medium
 
   * Convert to DH (Closes: #1106167)
diff -Nru libiptcdata-1.0.5/debian/control libiptcdata-1.0.5/debian/control
--- libiptcdata-1.0.5/debian/control    2025-05-23 02:12:06.000000000 +0200
+++ libiptcdata-1.0.5/debian/control    2025-12-19 20:38:17.000000000 +0100
@@ -5,7 +5,8 @@
 Build-Depends: debhelper-compat (=13),
   gtk-doc-tools,
   dh-python,
-  python3-all-dev,
+  libpython3-all-dev,
+  python3-all-dev:native,
   python3-setuptools
 Standards-Version: 4.7.2
 Vcs-Browser: https://salsa.debian.org/debian/libiptcdata
diff -Nru libiptcdata-1.0.5/debian/rules libiptcdata-1.0.5/debian/rules
--- libiptcdata-1.0.5/debian/rules      2025-05-23 02:12:06.000000000 +0200
+++ libiptcdata-1.0.5/debian/rules      2025-12-19 20:38:17.000000000 +0100
@@ -8,7 +8,7 @@
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
 override_dh_auto_configure:
-       dh_auto_configure -B $(BUILDDIR) -- --enable-gtk-doc
+       dh_auto_configure -B $(BUILDDIR) -- --$(if $(filter 
libiptcdata-doc,$(shell dh_listpackages)),en,dis)able-gtk-doc
 
 override_dh_auto_install:
        dh_auto_install -B $(BUILDDIR)

Reply via email to