LINTIAN

# `typelib-package-name-does-not-match`

GObject-Introspection binary typelibs (`Foo-23.typelib`) should normally be made available in a package named gir1.2-foo-23.

If multiple typelibs are shipped in the same package, then that package should have versioned `Provides` for the names that would have been used for separate packages. This arrangement should only be used if the included typelibs' versions are expected to remain the same at all times.

For example, `gir1.2-gtk-3.0` is named for the `Gtk-3.0` typelib, but also contains the `Gdk-3.0` and `GdkX11-3.0` typelibs. It should have versioned `Provides` entries for `gir1.2-gdk-3.0 (= ${binary:Version})` and `gir1.2-gdkx11-3.0 (= ${binary:Version})` to indicate this.

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 any package that contains public typelibs not matching its package name.

Severity: | `warning`
Experimental: | `false`

## See also

- usr/share/doc/gobject-introspection/policy.txt

- list of all the affected packages
- the source of this tag