Source: libu2f-host
Version: 1.1.10-4
Tags: patch
User: [email protected]
Usertags: cross-satisfiability ftcbfs

libu2f-host fails to cross build from source for two distinct reason.
One aspect is its build dependency on the host architecture Python
interpreter. That package is not available, because it fails postinst
for foreign architectures. I checked the source code and it is no longer
mentioned anywhere. This has become an unused dependency and can be
dropped with no replacement.

The other aspect is the gtk-doc scanner. It fails in a cross build.
Fortunately, the documentation is separated to an Arch:all package, so
running it is not exactly required. Disabling gtk-doc in an arch-only
build is perfectly fine.

I used reproducible builds to verify that the proposed changes do not
affect output artifacts of a native amd64 build. Please consider
applying the attached patch.

Note that gtk-doc-tools usually cannot be moved to Build-Depends-Indep,
because autoreconf uses its files.

Helmut
diff -Nru libu2f-host-1.1.10/debian/changelog 
libu2f-host-1.1.10/debian/changelog
--- libu2f-host-1.1.10/debian/changelog 2025-08-29 20:00:33.000000000 +0200
+++ libu2f-host-1.1.10/debian/changelog 2026-02-01 13:08:23.000000000 +0100
@@ -1,3 +1,12 @@
+libu2f-host (1.1.10-4.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Drop unused python3 dependency.
+    + Skip gtk-doc in arch-only build. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Sun, 01 Feb 2026 13:08:23 +0100
+
 libu2f-host (1.1.10-4) unstable; urgency=medium
 
   * Team upload.
diff -Nru libu2f-host-1.1.10/debian/control libu2f-host-1.1.10/debian/control
--- libu2f-host-1.1.10/debian/control   2025-08-29 20:00:33.000000000 +0200
+++ libu2f-host-1.1.10/debian/control   2026-02-01 13:08:23.000000000 +0100
@@ -12,7 +12,6 @@
  libhidapi-dev,
  libjson-c-dev,
  pkgconf,
- python3,
 Standards-Version: 4.7.2
 Rules-Requires-Root: no
 Homepage: https://github.com/Yubico/libu2f-host
diff -Nru libu2f-host-1.1.10/debian/rules libu2f-host-1.1.10/debian/rules
--- libu2f-host-1.1.10/debian/rules     2025-08-29 20:00:33.000000000 +0200
+++ libu2f-host-1.1.10/debian/rules     2026-02-01 13:08:23.000000000 +0100
@@ -5,12 +5,19 @@
 %:
        dh $@
 
+ALL_PACKAGES := $(shell dh_listpackages)
+ifneq (,$(filter libu2f-host-doc,$(ALL_PACKAGES)))
+SWITCH_GTK_DOC := enable
+else
+SWITCH_GTK_DOC := disable
+endif
+
 override_dh_auto_configure:
        dh_auto_configure -- \
                --disable-silent-rules \
                --with-udevrulesdir=/lib/udev/rules.d \
-               --enable-gtk-doc \
-               --enable-gtk-doc-html
+               --$(SWITCH_GTK_DOC)-gtk-doc \
+               --$(SWITCH_GTK_DOC)-gtk-doc-html
 
 override_dh_installchangelogs:
        dh_installchangelogs NEWS

Reply via email to