I’m having some trouble understanding what exactly the bug is that you’re reporting here.
With regards to -dev dependencies ending up in Build-Depends _and_ Depends, that was fixed in dh-make-golang already, see https://github.com/Debian/dh-make-golang/commit/1f158eb4ab41ba72a8ba9386864a10a9d9bf2ded With regards to putting source and binaries into different packages, I don’t understand why dh-golang would be involved at all? dh_install can be used for this, see https://anonscm.debian.org/cgit/collab-maint/codesearch.git/tree/debian for an example. Can you please clarify if anything remains to be done, or whether that addresses the issue? On Sun, Feb 14, 2016 at 11:24 AM, Julian Gilbey <[email protected]> wrote: > Package: dh-golang > Version: 1.12 > Severity: normal > > Hello Michael, > > I've recently received Bug#814488 against go-mtpfs, which is a package > providing a binary /usr/bin/go-mtpfs. I've used dh-golang to build > it, and debian/rules basically says: > > export DH_GOPKG := github.com/hanwen/go-mtpfs > > %: > dh $@ --buildsystem=golang --with=golang > > (It was created using dh-make-golang.) I've included run-time > dependencies on the relevant -dev packages which go-mtpfs requires in > order to build the package, since the source is included in the binary > package. > > But actually, this doesn't seem to make so much sense: the package > *user* only requires the binary /usr/bin/go-mtpfs. It would be better > to split the package into two packages: go-mtpfs containing just the > binary, and go-mtpfs-dev which contains the Go source code. I can > hack the debian/rules file to achieve this, but it would seem to make > sense to have a more general solution, as this is unlikely to be the > only package of this nature. > > So perhaps something like --buildsystem=golang-bin in these cases, and > that places the source files in the -dev package? > > Best wishes, > > Julian > > -- System Information: > Debian Release: stretch/sid > APT prefers testing > APT policy: (500, 'testing'), (500, 'stable') > Architecture: amd64 (x86_64) > Foreign Architectures: i386 > > Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores) > Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: > LC_ALL set to en_GB.UTF-8) > Shell: /bin/sh linked to /bin/dash > Init: systemd (via /run/systemd/system) > > Versions of packages dh-golang depends on: > ii debhelper 9.20160115 > ii dpkg 1.18.4 > ii libdpkg-perl 1.18.4 > ii perl 5.22.1-5 > > dh-golang recommends no packages. > > dh-golang suggests no packages. > > -- no debconf information > -- Best regards, Michael

