Source: dee
Version: 1.2.7+17.10.20170616-8
Tags: patch
User: [email protected]
Usertags: ftcbfs cross-satisfiability

dee cannot be cross built from source. There are several reasons. The
immediate problem is a failure to install the host architecture python3
interpreter. It really wants to run python3 during build, so a native
python3 needs to be used. This also applies to python3-gi, which is used
to discover the architecture-independent override directory.

Nextup, the gtk-doc scanner fails. Fortunately, dee separates the
documentation to an Arch:all package. Therefore, arch-only builds such
as cross builds may disable gtk-doc. Reproducible builds can be used to
verify the correctness of the change.

Last but not least, it performs a separate build during
override_dh_install. There, configure is invoked manually and thus
misses the crucial --host flag. Wrapping the invocation in
dh_auto_configure fixes this.

The attached patch combines the aforementioned suggestions and makes dee
cross buildable. Please consider applying it.

Helmut
diff -Nru dee-1.2.7+17.10.20170616/debian/changelog 
dee-1.2.7+17.10.20170616/debian/changelog
--- dee-1.2.7+17.10.20170616/debian/changelog   2025-10-01 16:25:23.000000000 
+0200
+++ dee-1.2.7+17.10.20170616/debian/changelog   2025-12-15 22:01:36.000000000 
+0100
@@ -1,3 +1,13 @@
+dee (1.2.7+17.10.20170616-8.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Annotate Python Build-Depends :native.
+    + Skip gtk-doc in arch-only build.
+    + Let dh_auto_configure pass --host to configure.
+
+ -- Helmut Grohne <[email protected]>  Mon, 15 Dec 2025 22:01:36 +0100
+
 dee (1.2.7+17.10.20170616-8) unstable; urgency=medium
 
   * debian/patches/incompatible-pointer-types.patch:
diff -Nru dee-1.2.7+17.10.20170616/debian/control 
dee-1.2.7+17.10.20170616/debian/control
--- dee-1.2.7+17.10.20170616/debian/control     2025-10-01 16:25:23.000000000 
+0200
+++ dee-1.2.7+17.10.20170616/debian/control     2025-12-15 22:01:36.000000000 
+0100
@@ -15,8 +15,8 @@
                libglib2.0-dev,
                libicu-dev,
                pkg-config,
-               python3,
-               python3-gi,
+               python3:native,
+               python3-gi:native,
                valac
 Standards-Version: 4.6.0
 Section: libs
diff -Nru dee-1.2.7+17.10.20170616/debian/rules 
dee-1.2.7+17.10.20170616/debian/rules
--- dee-1.2.7+17.10.20170616/debian/rules       2025-10-01 16:25:23.000000000 
+0200
+++ dee-1.2.7+17.10.20170616/debian/rules       2025-12-15 22:01:36.000000000 
+0100
@@ -17,7 +17,7 @@
        NOCONFIGURE=1 dh_autoreconf ./autogen.sh
 
 override_dh_auto_configure:
-       dh_auto_configure -- --enable-gtk-doc
+       dh_auto_configure -- --$(if $(filter libdee-doc,$(shell 
dh_listpackages)),en,dis)able-gtk-doc
 
 override_dh_auto_test:
 ifneq ($(DEB_HOST_ARCH),riscv64)
@@ -27,7 +27,7 @@
 endif
 
 override_dh_install:
-       PYTHON=python3 ./configure --prefix=/usr
+       PYTHON=python3 dh_auto_configure
        cd bindings/python/ && DESTDIR=../../debian/tmp make install && cd ../..
        dh_install -X.la -X.a -X.pyc -X.pyo
 

Reply via email to