The DH_GOPKG variable defaults to the value of the XS-Go-Import-Path debian/control field.
If you don’t reference DH_GOPKG in any of the rules, you can therefore omit it. The example you found should be updated to no longer include DH_GOPKG, but to include XS-Go-Import-Path. Could you send a pull request please? Thank you, On Sun, Dec 16, 2018 at 5:24 AM Tong Sun <[email protected]> wrote: > Does Binary-only package still need to set the DH_GOPKG variable? > > >From https://go-team.pages.debian.net/packaging.html, it says: > > - - - - - - - - > dh-golang comes with an example debian/rules file: > > https://salsa.debian.org/go-team/packages/dh-golang/blob/master/example/rules > > You will need to change the value of DH_GOPKG to correspond to your > program’s upstream package name. > - - - - - - - - > > Is such "changing the value of DH_GOPKG" step still necessary? > > Comparing to > https://salsa.debian.org/go-team/packages/dh-golang/blob/master/example/rules > my rule file at > https://salsa.debian.org/go-team/packages/ffcvt/blob/master/debian/rules > doesn't have the DH_GOPKG variable but it still builds OK. > > Hence the question. > > My whole build log is at: > http://paste.debian.net/1056050/ > > Thx. > > -- Best regards, Michael
