Package: lintian
Version: 2.142.0
Severity: normal
Tags: patch

A package that build depends on dh-go and runs "dh --with=golang" gets this,
and an override is the only way out:

  E: foo source: missing-build-dependency-for-dh-addon golang
     (does not satisfy dh-golang:any) [debian/rules]

dh-go ships the add-on (Debian/Debhelper/Sequence/golang.pm) but
add_ons.json only lists dh-golang, and dh-go conflicts with dh-golang. It
cannot provide dh-golang either, that would satisfy Build-Depends: dh-golang
for everyone else and dh-go builds in module mode.

The field already takes a list, see phpcomposer and single_binary:

--- a/data/debhelper/add_ons.json
+++ b/data/debhelper/add_ons.json
@@ -182,7 +182,8 @@
       },
       "golang" : {
          "installed_by" : [
-            "dh-golang"
+            "dh-golang",
+            "dh-go"
          ]
       },
       "grantlee" : {

Tried on a copy of /usr/share/lintian with a dh-go source package: tag gone
with the patch, back when I put the original file in the same tree.

Reply via email to