golang: Enable user stubs without cgo

Fixes #848.
This commit is contained in:
Fredrik Fornwall 2017-03-18 01:38:54 +01:00
parent dcd0fa6ba9
commit 906d1bbedb
2 changed files with 13 additions and 0 deletions

View 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

View File

@ -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