diff -Nru go-md2man-1.0.2/debian/changelog go-md2man-1.0.2/debian/changelog --- go-md2man-1.0.2/debian/changelog 2015-06-17 08:52:27.000000000 -0400 +++ go-md2man-1.0.2/debian/changelog 2016-02-04 17:47:35.000000000 -0500 @@ -1,3 +1,11 @@ +go-md2man (1.0.2-1ubuntu1~14.04.2) trusty; urgency=medium + + * Fix building on non-golang architectures: + - Allow gccgo-go to fulfill the build-dependency (LP: #1510288). + - Disable stripping of gccgo binaries (LP: #1318027). + + -- dann frazier Thu, 04 Feb 2016 17:44:52 -0500 + go-md2man (1.0.2-1ubuntu1~14.04.1) trusty; urgency=medium * Backport to Ubuntu 14.04 to support Docker SRU (LP: #1454719). diff -Nru go-md2man-1.0.2/debian/control go-md2man-1.0.2/debian/control --- go-md2man-1.0.2/debian/control 2015-05-28 10:52:38.000000000 -0400 +++ go-md2man-1.0.2/debian/control 2016-02-04 17:48:24.000000000 -0500 @@ -7,7 +7,7 @@ Build-Depends: debhelper (>= 9), dh-golang, - gccgo [!amd64 !armhf !i386], + gccgo (>= 5-20150128-0ubuntu1) [!amd64 !armhf !i386] | gccgo-go [!amd64 !armhf !i386], golang-blackfriday-dev, golang-go [amd64 armhf i386] Standards-Version: 3.9.6 diff -Nru go-md2man-1.0.2/debian/rules go-md2man-1.0.2/debian/rules --- go-md2man-1.0.2/debian/rules 2015-05-28 10:38:16.000000000 -0400 +++ go-md2man-1.0.2/debian/rules 2016-02-04 17:21:27.000000000 -0500 @@ -6,6 +6,10 @@ export DH_GOPKG := github.com/cpuguy83/go-md2man export DH_GOLANG_INSTALL_ALL := 1 +include /usr/share/dpkg/architecture.mk + +GOLANG_ARCHS := amd64 armhf i386 + %: dh $@ --buildsystem=golang --with=golang @@ -13,6 +17,14 @@ dh_auto_build $(CURDIR)/obj-$(DEB_BUILD_GNU_TYPE)/bin/go-md2man -in go-md2man.1.md -out go-md2man.1 +override_dh_strip: +ifeq ($(DEB_HOST_ARCH),$(filter $(DEB_HOST_ARCH),$(GOLANG_ARCHS))) + dh_strip +else + # gccgo binaries cannot be stripped. See: + # http://bugs.launchpad/bugs/1318027 +endif + override_dh_auto_clean: dh_auto_clean rm -f go-md2man.1