DH_GIREPOSITORY(1)
π DH_GIREPOSITORY β the girlies' guide π
okay so bestie, welcome to dh_girepository π this is a page from the gobject-introspection manual, and she is here to compute dependencies for GObject introspection packages. no cap, she's the moment.
β¨ NAME β¨
dh_girepository β compute dependencies for GObject introspection packages π¦
πΈ SYNOPSIS πΈ
dh_girepository [debhelper options] [-ldirectory] [-pdirectory] [-Xitem]
[private [...]]
literally just run her like that, mwah π
π DESCRIPTION π
so dh_girepository is a debhelper program, and her whole job is computing dependencies for packages that ship GObject introspection data. she's the backstage queen making sure everything links up π
the dependencies she makes get dropped into the ${gir:Depends} substitution variable. that's the vibe. β¨
the minimal version of the generated dependencies gets calculated by looking first at the version of the packages declared in the build-dependencies of the building package. but bestie, if a package is not declared in the build-dependencies, then the minimal version of that package is calculated by looking at the version of the package containing the corresponding .gir file defined in the build-dependencies. like, she goes looking for the receipts π
okay IMPORTANT:dh_girepositorywill not be executed automatically bydh. you have to literally say"dh $@ --with gir"fordhto include her. she does not show up uninvited, she's classy like that π
π OPTIONS π
real talk first: the-poption conflicts with the-poption defined bydebhelper(7)(see Debian bug #703941 <https://bugs.debian.org/703941>). yes, it's giving drama π. to rundh_girepositoryon a single package, use"dh_girepository --package=gir1.2-foo-1.0"instead of the usual-p. iykyk π
-ldirectoryβ specify a directory (or a colon-separated list of directories) where to look for the.girXML files that were used to generate the.typelibfiles that are scanned. this option is only necessary if those files aren't shipped in another, architecture-dependent package. so, like, only pull this out when you need it, queen π-pdirectoryβ specify a directory (or a colon-separated list of directories) where to look for the dependencies. super useful when a dependency ships the.typelibin a private directory. private, exclusive, main character energy only π-Xitemβ exclude files that contain item anywhere in their filename from being analyzed. bye bestie, you're not invited to the analysis party πprivate [...]β list of directories where to look for typelibs and the corresponding.girfiles. useful when the package installs its typelibs in a private directory, such as/usr/lib/<package>. library dependencies are also looked there, in case your typelib depends on a library that you ship in a private directory. she checks everywhere, fr fr π¦
π CONFORMS TO π
GObject introspection mini policy as of 2011-03-30. she follows the rules, and the rules are old but iconic β
π SEE ALSO π
this program is a part of gobject-introspection but is made to work with debhelper. she contains multitudes β¨
π AUTHOR π
Josselin Mouette <joss@debian.org> β thank you for your service, legend π«Ά
aaaand that's the whole page bestie!! this one shipped in version 1.86.0-6build1, dated 2026-01-22, and honestly? she ate. go compute those dependencies, periodt π
πβ¨
π¦ where this page comes from
- ubuntu resolute: gobject-introspection-bin 1.86.0-6build1 Β· GPL-2.0-or-later
- ubuntu stonking: gobject-introspection-bin 1.86.0-6build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms