Bug#1061249: clutter-gtk FTCBFS: fails running gtk-doc scanner

Helmut Grohne helmut at subdivi.de
Sat Jan 20 21:49:18 GMT 2024


Source: clutter-gtk
Version: 1.8.4-4
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs

clutter-gtk fails to cross build from source, because it fails running
the gtk-doc scanner, which is a host architecture executable. I note
that clutter-gtk already splits out its documentation into an Arch:all
package and that since cross builds are always arch-only builds, this
failure can be avoided by not building the documentation. I'm attaching
a patch to that end and have verified that the binary artifacts of an
arch-only build exactly match those of a full build on amd64. Thanks to
reproducible builds!

Helmut
-------------- next part --------------
diff --minimal -Nru clutter-gtk-1.8.4/debian/changelog clutter-gtk-1.8.4/debian/changelog
--- clutter-gtk-1.8.4/debian/changelog	2018-12-24 00:40:41.000000000 +0100
+++ clutter-gtk-1.8.4/debian/changelog	2024-01-20 22:19:24.000000000 +0100
@@ -1,3 +1,10 @@
+clutter-gtk (1.8.4-4.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Skip documentations in arch-only build. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Sat, 20 Jan 2024 22:19:24 +0100
+
 clutter-gtk (1.8.4-4) unstable; urgency=medium
 
   * Bump debhelper compat to 11
diff --minimal -Nru clutter-gtk-1.8.4/debian/rules clutter-gtk-1.8.4/debian/rules
--- clutter-gtk-1.8.4/debian/rules	2018-12-24 00:40:41.000000000 +0100
+++ clutter-gtk-1.8.4/debian/rules	2024-01-20 22:19:22.000000000 +0100
@@ -3,11 +3,15 @@
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs -Wl,--as-needed
 
+DO_PACKAGES = $(shell dh_listpackages)
+
 %:
 	dh $@ --with gnome,gir
 
 autoreconf:
+ifneq (,$(filter libclutter-gtk-1.0-doc,$(DO_PACKAGES)))
 	gtkdocize --copy
+endif
 	autoreconf --force --install --verbose
 
 override_dh_autoreconf:
@@ -15,7 +19,7 @@
 
 override_dh_auto_configure:
 	dh_auto_configure -- \
-		--enable-gtk-doc \
+		--$(if $(filter libclutter-gtk-1.0-doc,$(DO_PACKAGES)),en,dis)able-gtk-doc \
 		--enable-introspection=yes
 
 override_dh_strip:


More information about the pkg-gnome-maintainers mailing list