From 4b3c1d9bf6e657a7dc8773c76c09b16075e269e3 Mon Sep 17 00:00:00 2001 From: Duncan Overbruck Date: Sun, 28 Dec 2014 18:07:05 +0100 Subject: [PATCH] syncthing: disable cgo to fix cross compiling --- srcpkgs/syncthing/template | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/srcpkgs/syncthing/template b/srcpkgs/syncthing/template index 9371519ad5..b6b133d9d7 100644 --- a/srcpkgs/syncthing/template +++ b/srcpkgs/syncthing/template @@ -1,7 +1,7 @@ # Template file for 'syncthing' pkgname=syncthing version=0.10.13 -revision=2 +revision=3 hostmakedepends="go>=1.3" if [ "$CROSS_BUILD" ]; then hostmakedepends+=" go-cross-linux" @@ -22,11 +22,12 @@ do_build() { esac export GOPATH="${PWD}/gopath" + export CGO_ENABLED=0 mkdir -p $GOPATH/src/github.com/syncthing ln -s $PWD $GOPATH/src/github.com/syncthing/${pkgname} mkdir tmp - TMPDIR=${PWD}/tmp/ go run build.go -goos linux -goarch ${goarch} -no-upgrade + TMPDIR=${PWD}/tmp/ go run build.go -goos linux -goarch ${goarch} -no-upgrade -version "v${version}" rm -rf tmp }