[Pkg-ayatana-devel] Bug#1117668: libayatana-appindicator FTCBFS: fails running gtk-doc scanner

Helmut Grohne helmut at subdivi.de
Mon Oct 6 14:41:11 BST 2025


Source: libayatana-appindicator
Version: 0.5.94-1
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs

libayatana-appindicator fails to cross build from source, because it 
fails running the gtk-doc scanner. Fortunately, documentation has been 
separated to a -doc package and therefore running it is not necessary 
during an arch-only build. Just disabling it fixes the cross build. I'm 
attaching a patch for your convenience. It slightly speeds up arch-only 
builds while not affecting the binary output (in a reproducible builds 
sense).

Helmut
-------------- next part --------------
diff -Nru libayatana-appindicator-0.5.94/debian/changelog libayatana-appindicator-0.5.94/debian/changelog
--- libayatana-appindicator-0.5.94/debian/changelog	2025-03-12 09:33:12.000000000 +0100
+++ libayatana-appindicator-0.5.94/debian/changelog	2025-10-06 14:04:57.000000000 +0200
@@ -1,3 +1,10 @@
+libayatana-appindicator (0.5.94-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Disable gtkdoc in the arch-only build. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Mon, 06 Oct 2025 14:04:57 +0200
+
 libayatana-appindicator (0.5.94-1) unstable; urgency=medium
 
   * New upstream release.
diff -Nru libayatana-appindicator-0.5.94/debian/rules libayatana-appindicator-0.5.94/debian/rules
--- libayatana-appindicator-0.5.94/debian/rules	2023-10-29 10:10:53.000000000 +0100
+++ libayatana-appindicator-0.5.94/debian/rules	2025-10-06 14:04:57.000000000 +0200
@@ -10,8 +10,12 @@
 
 API_VERSION = 0.1
 
+DO_PACKAGES := $(shell dh_listpackages)
+
 CONFIGURE_COMMON_FLAGS = -DENABLE_TESTS=ON -DENABLE_BINDINGS_MONO=OFF
-CONFIGURE_FLAGS_gtk3 = -DFLAVOUR_GTK3=ON -DENABLE_GTKDOC=ON
+CONFIGURE_FLAGS_gtk3 = \
+	-DFLAVOUR_GTK3=ON \
+	-DENABLE_GTKDOC=$(if $(filter libayatana-appindicator-doc,$(DO_PACKAGES)),ON,OFF)
 
 export DPKG_GENSYMBOLS_CHECK_LEVEL = 4
 
@@ -41,7 +45,9 @@
 	rm -rf debian/tmp/*/usr/lib/mono
 	rm -rf debian/tmp/*/usr/share/vala/vapi/ayatana-appindicator*-0.1.deps
 	mkdir -p debian/tmp/gtk3/usr/share/doc/libayatana-appindicator3-dev/
+ifneq ($(filter libayatana-appindicator-doc,$(DO_PACKAGES)),)
 	mv debian/tmp/gtk3/usr/share/gtk-doc/html/libayatana-appindicator3 debian/tmp/gtk3/usr/share/doc/libayatana-appindicator3-dev/html
+endif
 
 	ln -s libayatana-appindicator3.so   debian/tmp/gtk3/usr/lib/$(DEB_HOST_MULTIARCH)/libappindicator3.so
 	ln -s libayatana-appindicator3.so.1 debian/tmp/gtk3/usr/lib/$(DEB_HOST_MULTIARCH)/libappindicator3.so.1


More information about the Pkg-ayatana-devel mailing list