Ubuntu Pastebin

Paste from mwhudson at Tue, 22 Mar 2016 04:30:46 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
diff --git a/debian/rules b/debian/rules
index 6acb71e..7da1377 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,7 +15,7 @@ ifneq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
 endif
 
 DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
-golang_archs = armel armhf amd64 i386 arm64 ppc64 ppc64el s390x
+golang_archs = armel armhf i386 arm64 ppc64 ppc64el s390x
 IS_GOLANG_ARCH := true
 ifeq (,$(filter $(DEB_HOST_ARCH),$(golang_archs)))
 	IS_GOLANG_ARCH := false
@@ -84,12 +84,15 @@ override_dh_strip:
 override_dh_installdeb:
 	dh_installdeb
 ifeq (false, $(IS_GOLANG_ARCH))
-	: # these are empty dependency packages
+	: # these are almost empty dependency packages
 	rm -f debian/golang-go/DEBIAN/p*
 	rm -rf debian/golang-go/usr/share/man
 	install -d -m 755 debian/golang-src/usr/share/go/src
 	install -d -m 755 debian/golang-src/usr/share/go/include
 	install -d -m 755 debian/golang-src/usr/share/go/test
+	mkdir -p deb/golang-go/usr/bin/go
+	ln -s go-5 deb/golang-go/usr/bin/go
+	ln -s gofmt-5 deb/golang-go/usr/bin/gofmt-5
 endif
 
 override_dh_shlibdeps:
Download as text