From 906d1bbedbdb8c548a717738fb80e1208da14e29 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Sat, 18 Mar 2017 01:38:54 +0100 Subject: [PATCH] golang: Enable user stubs without cgo Fixes #848. --- packages/golang/build.sh | 1 + packages/golang/src-os-user-lookup_stubs.go.patch | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 packages/golang/src-os-user-lookup_stubs.go.patch diff --git a/packages/golang/build.sh b/packages/golang/build.sh index 2e2739f46..0bd697bb6 100644 --- a/packages/golang/build.sh +++ b/packages/golang/build.sh @@ -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 index 000000000..32b179f51 --- /dev/null +++ b/packages/golang/src-os-user-lookup_stubs.go.patch @@ -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 +