Bug#793829:
Here's a patch which fixes things in my testing. diff -Nru gocode-20150303/debian/changelog gocode-20150303/debian/changelog --- gocode-20150303/debian/changelog2015-05-27 21:25:48.0 + +++ gocode-20150303/debian/changelog2015-07-27 22:58:17.0 + @@ -1,3 +1,9 @@ +gocode (20150303-3) unstable; urgency=medium + + * Fix packaging stuff. + + -- Michael Hudson-Doyle Mon, 27 Jul 2015 22:57:38 + + gocode (20150303-2) unstable; urgency=medium * Remove vim-syntax-go from vim-gocomplete dependency list (Closes: #786891) diff -Nru gocode-20150303/debian/gocode.install gocode-20150303/debian/gocode.install --- gocode-20150303/debian/gocode.install 2014-06-22 19:39:07.0 + +++ gocode-20150303/debian/gocode.install 2015-07-27 22:56:48.0 + @@ -1 +1 @@ -gocode usr/bin +usr/bin/gocode usr/bin diff -Nru gocode-20150303/debian/rules gocode-20150303/debian/rules --- gocode-20150303/debian/rules2015-04-03 20:32:22.0 + +++ gocode-20150303/debian/rules2015-07-27 22:54:56.0 + @@ -1,16 +1,12 @@ #!/usr/bin/make -f # -*- makefile -*- -export GOPATH=`pwd` export DH_GOPKG := github.com/nsf/gocode %: dh $@ --buildsystem=golang -override_dh_auto_build: - go build -o gocode $(filter-out os_windows.go,$(wildcard *.go)) - override_dh_auto_clean: dh_auto_clean rm -f gocode
Bug#793829: gocode: fails to build with Go 1.5
Source: gocode Version: 20150303-2 Severity: normal Dear Maintainer, The package fails to build with Go 1.5 because debian/rules appears to think make is shell and sets GOPATH to '`pwd`'. Go 1.5 is stricter about detecting bogus GOPATH values and the build fails. The fix is to remove chunks of debian/rules and have dh-golang do more of the work. -- System Information: Debian Release: jessie/sid APT prefers vivid-updates APT policy: (500, 'vivid-updates'), (500, 'vivid-security'), (500, 'vivid'), (100, 'vivid-backports') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.19.0-23-generic (SMP w/4 CPU cores) Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org