DH_GOLANG(1p)
β¨ DH_GOLANG(1p) β¨
okay so bestie, welcome to the DH_GOLANG(1p) page β it lives in the User Contributed Perl Documentation section, and it's genuinely such a slay little tool. let's get into it π
πΈ NAME πΈ
dh_golang β Generates Static-Built-Using substvar for Go programs π
π¦ SYNOPSIS π¦
dh_golang [debhelper options]
π DESCRIPTION π
so dh_golang is a debhelper program, and what it does is add the misc:Static-Built-Using substvar based on the dependencies of the package you're building. that's the whole vibe. β¨
how does it figure that out? two little helpers, no cap:
- it uses
go listto determine the packages imported - it uses
dpkg-queryto find the source package and version that provided that package
and now for the lore, because this tool has history π«Ά β dh_golang started out in 2013 by generating the misc:Built-Using substvar. but then in 2017 it was clarified in Debian Policy that the Built-Using field was intended only for license-required dependencies. so yeah, that's why the switch to the new Static-Built-Using field happened in 2022. era-defining behaviour, honestly. π
for backward compatibility, dh_golang will continue to generate the misc:Built-Using substvar until all Go packages have transitioned to misc:Static-Built-Using. it's holding on for the stragglers, and honestly? respectful. π
π NOTES π
the best way to invoke dh_golang β like, the main character way to do it β is either:
- add
dh-sequence-golangto the package build dependencies and usedh, or - use
dh --with=golang
pick your fighter, both are iconic. π
π₯ SEE ALSO π₯
go read them, iykyk ππ
π AUTHORS π
- Michael Stapelberg <stapelberg@debian.org>
- Debian Go Packaging Team <team+pkg-go@tracker.debian.org>
π«Ά aww and that's the page!! no notes, she ate. also just fyi, this whole thing is running onperl v5.42.3and the date on it is2026-09-02β so yeah, that's the source/version + date sign-off, mwah π π¦
k bye bestie, go generate some substvars π β¨
π¦ where this page comes from
- ubuntu stonking: dh-golang 1.67
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms