postgres_exporter takes its version from a variable in
github.com/prometheus/common/version. Upstream's release build sets it
at link time with -X. The port didn't set it, so the build_info
metric, the startup log and --version all showed an empty version.
Set Version to DISTVERSION, as net-mgmt/blackbox_exporter does. Leave
BuildUser and BuildDate unset, because they would make the package
depend on who built it and when. The source comes from the module
proxy, so the revision and branch aren't known and stay unset too.
MFH: 2026Q4
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>