Source: libgtkdatabox
Version: 1:1.0.0-2.1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

libgtkdatabox fails to cross build from source, because the gtk-doc
scanner fails to run as it is a host executable. Fortunately, the
documentation has been separated to an Arch:all package, so we don't
actually have to run it. I propose disabling gtk-doc in arch-only builds
and doing so fixes the cross build without inducing changes to binary
artifacts of native builds. I'm attaching a patch for your convenience.

Helmut
diff --minimal -Nru libgtkdatabox-1.0.0/debian/changelog 
libgtkdatabox-1.0.0/debian/changelog
--- libgtkdatabox-1.0.0/debian/changelog        2024-02-28 13:32:12.000000000 
+0100
+++ libgtkdatabox-1.0.0/debian/changelog        2025-02-07 10:16:34.000000000 
+0100
@@ -1,3 +1,10 @@
+libgtkdatabox (1:1.0.0-2.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Disable gtk-doc in arch-only build. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Fri, 07 Feb 2025 10:16:34 +0100
+
 libgtkdatabox (1:1.0.0-2.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff --minimal -Nru libgtkdatabox-1.0.0/debian/rules 
libgtkdatabox-1.0.0/debian/rules
--- libgtkdatabox-1.0.0/debian/rules    2022-11-20 09:02:50.000000000 +0100
+++ libgtkdatabox-1.0.0/debian/rules    2025-02-07 10:16:13.000000000 +0100
@@ -15,11 +15,9 @@
 %:
        dh $@
 
-DEB_CONFIGURE_EXTRA_FLAGS += \
-                       --enable-gtk-doc
-
 override_dh_auto_configure:
-       dh_auto_configure -- $(DEB_CONFIGURE_EXTRA_FLAGS)
+       dh_auto_configure -- \
+               --$(if $(filter libgtkdatabox-doc,$(shell 
dh_listpackages)),en,dis)able-gtk-doc
 
 override_dh_compress:
        dh_compress --exclude=.devhelp

Reply via email to