golang: Enable user stubs without cgo
authorFredrik Fornwall <fredrik@fornwall.net>
Sat, 18 Mar 2017 00:38:54 +0000 (01:38 +0100)
committerFredrik Fornwall <fredrik@fornwall.net>
Sat, 18 Mar 2017 00:38:54 +0000 (01:38 +0100)
Fixes #848.

packages/golang/build.sh
packages/golang/src-os-user-lookup_stubs.go.patch [new file with mode: 0644]

index 2e2739f..0bd697b 100644 (file)
@@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Go programming language compiler"
 _MAJOR_VERSION=1.8
 # Use the ~ deb versioning construct in the future:
 TERMUX_PKG_VERSION=2:${_MAJOR_VERSION}
+TERMUX_PKG_REVISION=1
 TERMUX_PKG_SRCURL=https://storage.googleapis.com/golang/go${_MAJOR_VERSION}.src.tar.gz
 TERMUX_PKG_SHA256=406865f587b44be7092f206d73fc1de252600b79b3cacc587b74b5ef5c623596
 TERMUX_PKG_FOLDERNAME=go
diff --git a/packages/golang/src-os-user-lookup_stubs.go.patch b/packages/golang/src-os-user-lookup_stubs.go.patch
new file mode 100644 (file)
index 0000000..32b179f
--- /dev/null
@@ -0,0 +1,12 @@
+diff -u -r ../go/src/os/user/lookup_stubs.go ./src/os/user/lookup_stubs.go
+--- ../go/src/os/user/lookup_stubs.go  2017-02-16 20:12:24.000000000 +0100
++++ ./src/os/user/lookup_stubs.go      2017-03-18 01:30:48.037398455 +0100
+@@ -2,7 +2,7 @@
+ // Use of this source code is governed by a BSD-style
+ // license that can be found in the LICENSE file.
+-// +build !cgo,!windows,!plan9,!android
++// +build !cgo,!windows,!plan9
+ package user