• Bug#1100054: gir-rust-code-generator: Does not grok output of newer gob

    From Samuel Thibault@21:1/5 to All on Mon Mar 10 19:40:01 2025
    Package: gir-rust-code-generator
    Version: 0.20.5-1
    Severity: serious
    Justification: Makes rust packages FTBFS

    Hello,

    After e.g. rebuilding gtk4 with the latest gobject-introspection
    (1.83.2-2), e.g. Gdk-4.0.gir contains an additional line:

    <include name="cairo" version="1.0"/>
    <package name="gtk4"/>
    <c:include name="gdk/gdk.h"/>
    + <doc:format name="unknown"/>
    <namespace name="Gdk"
    version="4.0"
    shared-library="libgtk-4.so.1"

    which gir does not grok, when e.g. building rust-gtk4:

    Error: "GirXml: ./Gdk-4.0.gir:16:29 Element doc:format prefix is unbound"

    thus making e.g. rust-gtk4 fail to build.

    I guess it's gir-rust-code-generator that somehow needs to be taught the
    format that the newer gobject-introspection produces.

    Samuel

    -- System Information:
    Debian Release: trixie/sid
    APT prefers testing
    APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'oldstable-proposed-updates-debug'), (500, 'oldoldstable'), (500, 'buildd-unstable'), (500, 'unstable'), (500, 'stable'
    ), (500, 'oldstable'), (1, 'experimental-debug'), (1, 'buildd-experimental'), (1, 'experimental')
    Architecture: amd64 (x86_64)
    Foreign Architectures: i386, arm64

    Kernel: Linux 6.13.0 (SMP w/8 CPU threads; PREEMPT)
    Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
    Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
    Shell: /bin/sh linked to /usr/bin/dash
    Init: systemd (via /run/systemd/system)
    LSM: AppArmor: enabled

    Versions of packages gir-rust-code-generator depends on:
    ii libc6 2.40-7
    ii libgcc-s1 15-20241220-1

    gir-rust-code-generator recommends no packages.

    gir-rust-code-generator suggests no packages.

    -- no debconf information

    --
    Samuel
    <D> m'enfin, le 5 juillet, le mec vient visiter le labo...
    * D a marque d'une croix rouge le 5 juillet sur son agenda
    <y> niarc niarc niarc
    <D> cet homme va souffrir
    <B> c'est donc le 5 juillet qu'il meurt d'un accident de la route écrasé par un truck muni d'un pare buffle
    -+- #ens-mim - repaire de terroristes -+-

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Matthias Geiger@21:1/5 to sthibault@debian.org on Mon Mar 10 22:00:02 2025
    On Mon, 10 Mar 2025 19:31:04 +0100 Samuel Thibault <sthibault@debian.org> wrote:
    Package: gir-rust-code-generator
    Version: 0.20.5-1
    Severity: serious
    Justification: Makes rust packages FTBFS

    Hello,

    After e.g. rebuilding gtk4 with the latest gobject-introspection
    (1.83.2-2), e.g. Gdk-4.0.gir contains an additional line:

    <include name="cairo" version="1.0"/>
    <package name="gtk4"/>
    <c:include name="gdk/gdk.h"/>
    + <doc:format name="unknown"/>
    <namespace name="Gdk"
    version="4.0"
    shared-library="libgtk-4.so.1"

    which gir does not grok, when e.g. building rust-gtk4:

    Error: "GirXml: ./Gdk-4.0.gir:16:29 Element doc:format prefix is unbound"

    thus making e.g. rust-gtk4 fail to build.

    I guess it's gir-rust-code-generator that somehow needs to be taught the format that the newer gobject-introspection produces.

    Samuel

    Hi Samuel,
    thanks for this report. Upstream is aware and fixing it, but for the
    time being I'd fix it locally via xmlstarlet in d/rules. Do you happen
    to know if that field only appears in Gdk-4.0.gir or in other .gir files
    too ?

    best,

    werdahias

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)