[Pkg-golang-commits] [SCM] Packaging for Google Go branch, debian-sid, updated. debian/2%1.0.1-1-50-g5775df4

Michael Stapelberg michael at stapelberg.de
Thu Jun 6 19:55:25 UTC 2013


The following commit has been merged in the debian-sid branch:
commit 5775df42605ddf6c984570597bd36764d3c45841
Author: Michael Stapelberg <stapelberg at debian.org>
Date:   Thu Jun 6 21:54:49 2013 +0200

    race detector: install the std lib with race detector enabled

diff --git a/debian/rules b/debian/rules
index 5f48972..13b18a6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -60,6 +60,13 @@ debian/build.stamp:
 	rm -f debian/build.stamp
 	mkdir -p $(GOBIN)
 	+cd src && bash ./make.bash --no-banner
+	# For the race detector to work (go test -race), we need to install the
+	# std library with the race detector enabled. This will result in
+	# having an additional “architecture” directory, e.g. linux_amd64_race.
+	#
+	# The race detector currently only works on linux/amd64. The following
+	# check works precisely the same way src/race.bash does.
+	-[ "$(shell uname -m)" = "x86_64" ] && [ "$(shell uname)" = "Linux" ] && $(CURDIR)/bin/go install -race std
 	>debian/build.stamp
 
 opt_no_act =

-- 
Packaging for Google Go



More information about the pkg-golang-commits mailing list