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