[Pkg-golang-commits] [golang] 05/07: Add 0001-Fix-FTBFS-with-Perl-526.patch

Michael Stapelberg michael at stapelberg.de
Tue Jul 25 06:28:26 UTC 2017


This is an automated email from the git hooks/post-receive script.

stapelberg pushed a commit to branch golang-1.7
in repository golang.

commit cf981ed4c1877b957f2ad9f0bf02e03a60b58ecc
Author: Michael Stapelberg <stapelberg at debian.org>
Date:   Mon Jul 24 09:49:50 2017 +0200

    Add 0001-Fix-FTBFS-with-Perl-526.patch
---
 debian/patches/0001-Fix-FTBFS-with-Perl-526.patch | 29 +++++++++++++++++++++++
 debian/patches/series                             |  1 +
 2 files changed, 30 insertions(+)

diff --git a/debian/patches/0001-Fix-FTBFS-with-Perl-526.patch b/debian/patches/0001-Fix-FTBFS-with-Perl-526.patch
new file mode 100644
index 0000000..a8d753a
--- /dev/null
+++ b/debian/patches/0001-Fix-FTBFS-with-Perl-526.patch
@@ -0,0 +1,29 @@
+Description: cmd/vet: make tests safe for perl 5.26
+Author: Josh Bleecher Snyder <josharian at gmail.com>
+Applied-Upstream: https://github.com/golang/go/commit/2e45310caff101ea7de8873523faab96eb3a87ca
+Last-Updated: 2017-07-24
+
+---
+
+Index: golang/src/cmd/vet/testdata/copylock_func.go
+===================================================================
+--- golang.orig/src/cmd/vet/testdata/copylock_func.go
++++ golang/src/cmd/vet/testdata/copylock_func.go
+@@ -87,7 +87,7 @@ func FuncCallInterfaceArg(f func(a int,
+ 	f(2, &t)
+ 	f(3, &sync.Mutex{})
+ 	f(4, m) // ERROR "function call copies lock value: sync.Mutex"
+-	f(5, t) // ERROR "function call copies lock value: struct{lock sync.Mutex} contains sync.Mutex"
++	f(5, t) // ERROR "function call copies lock value: struct.lock sync.Mutex. contains sync.Mutex"
+ }
+ 
+ // Returning lock via interface value
+@@ -103,7 +103,7 @@ func ReturnViaInterface(x int) (int, int
+ 	case 2:
+ 		return 2, m // ERROR "return copies lock value: sync.Mutex"
+ 	default:
+-		return 3, t // ERROR "return copies lock value: struct{lock sync.Mutex} contains sync.Mutex"
++		return 3, t // ERROR "return copies lock value: struct.lock sync.Mutex. contains sync.Mutex"
+ 	}
+ }
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 25ec2c4..92a7e84 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 cl-37964--tzdata-2017a.patch
+0001-Fix-FTBFS-with-Perl-526.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-golang/golang.git



More information about the pkg-golang-commits mailing list