• Bug#1063806: clutter-imcontext FTCBFS: fails running gtk-doc scanner

    From Helmut Grohne@21:1/5 to All on Mon Feb 12 23:10:01 2024
    Source: clutter-imcontext
    Version: 0.1.4-3.1
    Tags: patch
    User: debian-cross@lists.debian.org
    Usertags: ftcbfs

    clutter-imcontext fails to cross build from source, because it fails
    running the gtk-doc scanner with an Exec format error. It already has
    its documentation split out to an Arch:all package, so running the
    scanner does not bring any benefit in an arch-only build. Hence, I
    propose fixing this cross build failure by disabling gtk-doc in
    arch-only builds. I'm attaching a patch for your convenience. I verified
    that the arch-only and indep-only .debs match those produced by a full
    build that enables gtk-doc via reproducible builds.

    Helmut

    diff --minimal -Nru clutter-imcontext-0.1.4/debian/changelog clutter-imcontext-0.1.4/debian/changelog
    --- clutter-imcontext-0.1.4/debian/changelog 2020-12-25 18:19:08.000000000 +0100
    +++ clutter-imcontext-0.1.4/debian/changelog 2024-02-11 14:11:48.000000000 +0100
    @@ -1,3 +1,10 @@
    +clutter-imcontext (0.1.4-3.2) UNRELEASED; urgency=medium
    +
    + * Non-maintainer upload.
    + * Fix FTCBFS: Disable gtk-doc in arch-only builds. (Closes: #-1)
    +
    + -- Helmut Grohne <helmut@subdivi.de> Sun, 11 Feb 2024 14:11:48 +0100
    +
    clutter-imcontext (0.1.4-3.1) unstable; urgency=medium

    * Non maintainer upload by the Reproducible Builds team.
    diff --minimal -Nru clutter-imcontext-0.1.4/debian/rules clutter-imcontext-0.1.4/debian/rules
    --- clutter-imcontext-0.1.4/debian/rules 2012-06-27 17:47:50.000000000 +0200
    +++ clutter-imcontext-0.1.4/debian/rules 2024-02-11 14:11:48.000000000 +0100
    @@ -4,7 +4,12 @@
    include /usr/share/cdbs/1/class/autotools.mk
    include /usr/share/cdbs/1/rules/utils.mk

    -DEB_CONFIGURE_EXTRA_FLAGS := --enable-gtk-doc --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)
    +build-arch binary-arch: DE