Subject: [alpine-aports] [PATCH 2/2] community/go: enable build on armel

From: alpine-mips-patches <[email-masked]>
Date: Tue, 15 Jan 2019 05:19:10 +0000

There were ARMv5TE boards with 512 MiB (as in RPi1), that is enough
for go.

Also remove go-bootstrap from makedepends. In a cross-build it ends
up with depending on itself which is safe (abuild handles this) but
ugly. In normal build it is duplicated which is safe but ugly too.

Do not bump pkgrel since
 - no previous armel packages exist;
 - makedepends change makes no difference for the created apks.

---
 community/go/APKBUILD | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/community/go/APKBUILD b/community/go/APKBUILD
index 72872752d5..70cf8219f5 100644
--- a/community/go/APKBUILD
+++ b/community/go/APKBUILD
@@ -9,7 +9,7 @@ arch="all"
 license="BSD"
 depends="binutils gcc"
 depends_dev=""
-makedepends="bash go-bootstrap"
+makedepends="bash"
 install=""
 subpackages="$pkgname-doc"
 source="https://golang.org/dl/go${pkgver/_/}.src.tar.gz
@@ -48,6 +48,7 @@ fi
 
 case "$CTARGET_ARCH" in
 aarch64)export GOARCH="arm64" ;;
+armel)  export GOARCH="arm" GOARM=5 ;;
 armhf)  export GOARCH="arm" GOARM=6 ;;
 armv7)  export GOARCH="arm" GOARM=7 ;;
 s390x)  export GOARCH="s390x" ;;
-- 
2.20.1

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---