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

2024-01-21 Thread Helmut Grohne
Hi Simon,

On Sun, Jan 21, 2024 at 03:29:54PM +, Simon McVittie wrote:
> On Sat, 20 Jan 2024 at 22:49:18 +0100, Helmut Grohne wrote:
> > clutter-gtk fails to cross build from source, because it fails running
> > the gtk-doc scanner, which is a host architecture executable.
> 
> The changes look fine in principle, but clutter-gtk is dead upstream and
> should ideally not be released in trixie at all, so this is unlikely to be
> a particularly high priority for anyone to (test and) upload.

This turned up on my radar as I use popcon as a measure of interest and
clutter-gtk still has a popcon rank of about 1500. I recognize that
popcon favours deprecated packages. If you can suggest a metter sorting
metric for ordering packages, I'm all ears. Other than that, I'm happy
to have this closed with removing the package from unstable soon.
Otherwise, I hope the next upload can include this change.

Helmut



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

2024-01-21 Thread Simon McVittie
On Sat, 20 Jan 2024 at 22:49:18 +0100, Helmut Grohne wrote:
> clutter-gtk fails to cross build from source, because it fails running
> the gtk-doc scanner, which is a host architecture executable.

The changes look fine in principle, but clutter-gtk is dead upstream and
should ideally not be released in trixie at all, so this is unlikely to be
a particularly high priority for anyone to (test and) upload.

smcv



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

2024-01-21 Thread Helmut Grohne
Source: clutter-gtk
Version: 1.8.4-4
Tags: patch
User: debian-cr...@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
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.0 +0100
+++ clutter-gtk-1.8.4/debian/changelog  2024-01-20 22:19:24.0 +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   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.0 +0100
+++ clutter-gtk-1.8.4/debian/rules  2024-01-20 22:19:22.0 +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: