On Fri, 2026-12-04 at 09:25 +0100, Simon Josefsson wrote:
> Maytham Alsudany <[email protected]> writes:
> 
> > On Thu, 2026-12-03 at 22:33 +0100, Lee Garrett wrote:
> > > Hi everyone,
> > > 
> > > While packaging sops I tried switching from dh-sequence-golang to the 
> > > newer 
> > > dh-go and noticed that the resulting binary had no Static-Built-Using and 
> > > no 
> > > Built-Using field. The whole package build (and also lintian) doesn't 
> > > fail or 
> > > warn about it.
> > > 
> > > The symptom is triggered when `Build-Depends: dh-go` is set, and d/rules 
> > > has 
> > > `--with golang` missing. `Build-Depends: dh-sequence-golang` does
> > > not have this
> > > issue.
> > 
> > Well yes, you need to specify `--with golang`. dh-sequence-golang is
> > just a shortcut for using dh-golang and specifying `--with golang` at
> > the same time, so you don't have to set it in d/rules. See the dh(1)
> > manpage :)
> 
> I confirmed that re-adding '--with golang' to debian/rules adds the
> *Built-Using to golang-golang-x-vuln.
> 
> Shouldn't 'dh-go' imply this, just like dh-sequence-golang does?

No. To clarify, this has nothing to do with Provides. debhelper checks
Build-Depends in d/control for any dh-sequence-foo and automatically
sets "--with foo"; it's just a regex. The "Provides: dh-sequence-foo" is
so is necessary though so that dpkg/apt actually pulls in dh-foo.

In https://bugs.debian.org/1149441#25 I suggest Provides: dh-sequence-go
and renaming the sequence from "golang" to "go" so we don't have this
conflict. If necessary we can also symlink golang.pm -> go.pm in
/usr/share/perl5/Debian/Debhelper/Sequence/ so that stuff already using
"--with golang" doesn't break.

> Also, shouldn't lintian have warned about a Go binary without
> Built-Using?  No lintian warnings for golang-golang-x-vuln 1.10.0-1.

Only packages containing binary programs need it, not Arch: all
libraries.

--
Maytham

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to