Package: golang-go
Version: 2:1.5.1-1
Severity: grave

When I tried upgrading today, I got:

,----
| Preconfiguring packages ...
| (Reading database ... 750549 files and directories currently installed.)
| Preparing to unpack .../golang-go_2%3a1.5.1-1_amd64.deb ...
| Unpacking golang-go (2:1.5.1-1) over (2:1.4.3-3) ...
| dpkg: error processing archive 
/var/cache/apt/archives/golang-go_2%3a1.5.1-1_amd64.deb (--unpack):
|  trying to overwrite '/usr/lib/go/pkg/tool/linux_amd64/vet', which is also in 
package golang-golang-x-tools 1:0.0~git20150716.0.87156cb+dfsg1-4
| dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
`----

Since vet and cover are shipped with the main distribution now, they
should no longer be shipped with golang-golang-x-tools and golang-go
should conflict with versions of golang-golang-x-tools that still
contain them.

The attached patches should fix this.

Cheers,
-Hilko
>From 89eb32084e10c733439c947876a205e79279aaf3 Mon Sep 17 00:00:00 2001
From: Hilko Bengen <ben...@debian.org>
Date: Sun, 25 Oct 2015 14:21:25 +0100
Subject: [PATCH] Add Conflicts for golang-golang-x-tools that still contain
 vet, cover

---
 debian/control | 1 +
 1 file changed, 1 insertion(+)

diff --git a/debian/control b/debian/control
index dd82625..36244d1 100644
--- a/debian/control
+++ b/debian/control
@@ -35,6 +35,7 @@ Replaces: golang-go-darwin-386,
           golang-go-netbsd-amd64,
           golang-go-windows-386,
           golang-go-windows-amd64
+Conflicts: golang-golang-x-tools (<< 1:0.0~git20150716.0.87156cb+dfsg1-5~)
 Recommends: g++, gcc, libc6-dev, pkg-config
 Suggests: bzr, ca-certificates, git, golang-golang-x-tools, mercurial, subversion
 Description: Go programming language compiler, linker, compiled stdlib
-- 
2.6.1

>From 1d7a492f00c7f9fe04e19b6917efd2158cb3b946 Mon Sep 17 00:00:00 2001
From: Hilko Bengen <ben...@debian.org>
Date: Sun, 25 Oct 2015 14:17:54 +0100
Subject: [PATCH] Do not ship vet and cover binaries

---
 debian/rules | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debian/rules b/debian/rules
index b1c1840..091bd64 100755
--- a/debian/rules
+++ b/debian/rules
@@ -65,6 +65,10 @@ override_dh_auto_install:
 	ln -s /usr/share/javascript/jquery/jquery.min.js $(CURDIR)/debian/tmp/usr/share/gocode/src/golang.org/x/tools/godoc/static/jquery.js
 	-rm $(CURDIR)/debian/tmp/usr/share/gocode/src/golang.org/x/tools/cmd/present/static/jquery-ui.js && \
 	ln -s /usr/share/javascript/jquery-ui/jquery-ui.min.js $(CURDIR)/debian/tmp/usr/share/gocode/src/golang.org/x/tools/cmd/present/static/jquery-ui.js
+	# Don't ship vet and cover as they have been moved to the main
+	# repository.
+	-rm $(CURDIR)/debian/tmp//usr/lib/go/pkg/tool/*/cover
+	-rm $(CURDIR)/debian/tmp//usr/lib/go/pkg/tool/*/vet
 
 %:
 	dh $@ --buildsystem=golang --with=golang
-- 
2.6.1

Reply via email to