On Mon, 10 Mar 2025 19:31:04 +0100 Samuel Thibault <sthiba...@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