DH_COQ(1)
π DH_COQ(1) β bestie edition π
okay so this is dh_coq, straight outta the User Contributed Perl Documentation section of the manual, and it's about to be your new fave little debhelper gremlin. buckle up π
β¨ NAME β¨
dh_coq β she computes Coq packages provides, and partial dependencies. that's it, that's the job, and she does it flawlessly π
πΈ SYNOPSIS πΈ
dh_coq [debhelper options]
literally just that. she takes the standard debhelper options and nothing else, no cap.
π¦ DESCRIPTION π¦
so dh_coq is a debhelper program and her whole moment is being responsible for filling in the ${coq:Provides} and ${coq:Depends} substitutions, and then adding them to the substvars files. iconic behavior honestly β¨
she only acts on one single type of binary package: the ones shipping Coq theories. those are usually named libcoq-XXXX, BUT β and this is the important part, bestie, do not get it twisted π β she does not touch libcoq-XXX-ocaml and she does not touch libcoq-XXX-ocaml-dev. those are OCaml library packages and they're managed by dh_ocaml. different girl, different job, we respect the division of labor π
on the packages she does take responsibility for, she's gonna go looking at the Coq compiled files and compute a checksum. that checksum gets stored in the registry over in /var/lib/coq/md5sums/, and already that lets you say the current package provides a checksummed-versioned virtual package. then the build-depends get scanned, their checksums get retrieved, and boom β now the current package also depends on checksummed virtual packages. she ate π
now, why all this setup? why the checksum drama? because without the checksum, with just dependencies on libcoq-XXX, ABI breakage can happen π because a new libcoq-XXX won't be seen as incompatible, so it'll get installed and then trigger incoherent assumptions errors. not cute. but with fully checksummed packages, apt-get will not upgrade anything until all packages have migrated to the new ABI. queen behavior, honestly π
and one more thing before you go, and it's lowkey crucial: the dependencies are not extracted automatically from the compiled project. they come from the build-depends of the built package. so it is crucial that those are accurate, fr fr. no vibes-based dependency lists, please π
π FILES π
debian/libcoq-XXX.volistβ by default, the list of Coq compiled files shipped by your package is automatically computed β¨ but if you need to override that, this file makes it possible to fix the list. just know that files are considered relative to the package build directory π«Ά
π SEE ALSO π
this program is a part of debhelper π
π AUTHORS π
Julien Puydt <jpuydt@debian.org> β thank you for your service, legend π«‘π
and that's the whole page, bestie!! go forth and checksum responsibly π
this was perl v5.42.3, dated 2026-08-25, mwah ππβ¨
π¦ where this page comes from
- ubuntu stonking: dh-coq 0.17 Β· 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