Browse Source

golang: Enable user stubs without cgo

Fixes #848.
android-5
Fredrik Fornwall 8 years ago
parent
commit
906d1bbedb
  1. 1
      packages/golang/build.sh
  2. 12
      packages/golang/src-os-user-lookup_stubs.go.patch

1
packages/golang/build.sh

@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Go programming language compiler"
_MAJOR_VERSION=1.8 _MAJOR_VERSION=1.8
# Use the ~ deb versioning construct in the future: # Use the ~ deb versioning construct in the future:
TERMUX_PKG_VERSION=2:${_MAJOR_VERSION} 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_SRCURL=https://storage.googleapis.com/golang/go${_MAJOR_VERSION}.src.tar.gz
TERMUX_PKG_SHA256=406865f587b44be7092f206d73fc1de252600b79b3cacc587b74b5ef5c623596 TERMUX_PKG_SHA256=406865f587b44be7092f206d73fc1de252600b79b3cacc587b74b5ef5c623596
TERMUX_PKG_FOLDERNAME=go TERMUX_PKG_FOLDERNAME=go

12
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
Loading…
Cancel
Save