gir-package-name-does-not-match

Development packages that contain public GObject-Introspection XML files (/usr/share/gir-1.0/Foo-23.gir or /usr/lib/${DEB_HOST_MULTIARCH}/gir-1.0/Foo-23.gir) should be named gir1.2-foo-23-dev if the GIR XML is the only content of the package, or should have a versioned Provides for gir1.2-foo-23-dev (= ${binary:Version}) if the package contains other development files.

Since gobject-introspection 1.78.1-6 (Debian trixie), the recommended way to populate the Provides fields is to use debhelper and dh_girepository, via the gir addon or the dh-sequence-gir virtual package, and add Provides: ${gir:Provides} to packages that contain public GIR XML.

For example, libgtk-3-dev contains Gtk-3.0.gir, Gdk-3.0.gir and GdkX11-3.0.gir, so it should have Provides: gir1.2-gtk-3.0-dev, Provides: gir1.2-gdk-3.0-dev and Provides: gir1.2-gdkx11-3.0-dev.

Severity: warning
Experimental: false

See also