Patches for aports can be sent to this list

[alpine-aports] [PATCH 1/2] community/go-bootstrap: remove unsupported archs

alpine-mips-patches
Details
Message ID
<20190115061138.4FEEE5FBA6@mx12.valuehost.ru>
Sender timestamp
1547529432
DKIM signature
missing
Download raw message
Patch: +6 -8
go-1.4.3 supports only 386, amd64, arm (32-bit) so:
 - remove mips*, the specs are incomplete even for later mips-aware
   versions of go;
 - pass correct option for 386 FPU, otherwise it is autodetected at
   build time (to sse2);
 - pass ARM architecture version explicitly for arm*;

This change affects the x86 package so bump pkgrel.

---
 community/go-bootstrap/APKBUILD | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/community/go-bootstrap/APKBUILD b/community/go-bootstrap/APKBUILD
index 9b46f0783c..54b36f0ace 100644
--- a/community/go-bootstrap/APKBUILD
+++ b/community/go-bootstrap/APKBUILD
@@ -4,10 +4,10 @@
 pkgname=go-bootstrap
 _realname="${pkgname%-*}"
 pkgver=1.4.3
-pkgrel=2
+pkgrel=3
 pkgdesc="Go programming language compiler used for bootstraping"
 url="http://www.golang.org/"
-arch="all !aarch64 !ppc64le !s390x"
+arch="armel armhf armv7 x86 x86_64"
 license="BSD"
 depends=""
 depends_dev=""
@@ -39,13 +39,11 @@ build() {
 	export CGO_ENABLED=0
 
 	case "$CARCH" in
-	x86)      export GOARCH="386" ;;
+	armel)    export GOARCH="arm" GOARM="5" ;;
+	armhf)    export GOARCH="arm" GOARM="6" ;;
+	armv7)    export GOARCH="arm" GOARM="7" ;;
+	x86)      export GOARCH="386" GO386="387" ;;
 	x86_64)   export GOARCH="amd64" ;;
-	arm*)     export GOARCH="arm" ;;
-	mips)     export GOARCH="mips" ;;
-	mips64)   export GOARCH="mips64" ;;
-	mips64el) export GOARCH="mips64le" ;;
-	mipsel)   export GOARCH="mipsle" ;;
 	*)        return 1 ;;
 	esac
 
-- 
2.20.1




---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---