aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--community/go/APKBUILD14
1 files changed, 8 insertions, 6 deletions
diff --git a/community/go/APKBUILD b/community/go/APKBUILD
index 006ca2c832..596038903e 100644
--- a/community/go/APKBUILD
+++ b/community/go/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=go
pkgver=1.11
-pkgrel=3
+pkgrel=4
pkgdesc="Go programming language compiler"
url="http://www.golang.org/"
arch="all"
@@ -24,6 +24,10 @@ source="https://golang.org/dl/go${pkgver/_/}.src.tar.gz
# NOTE: building go for x86 with grsec kernel requires:
# sysctl -w kernel.modify_ldt=1
+# The following tests fail currently, most of them fail due to linking
+# errors likely related to `default-buildmode-pie.patch` or musl libc.
+_brokentests="runtime debug/gosym cmd/.* cgo.* ^test.*"
+
if [ "$CBUILD" = "$CTARGET" ]; then
makedepends="go-bootstrap $makedepends"
provides="go-bootstrap=$pkgver-r$pkgrel"
@@ -80,14 +84,12 @@ build() {
rm -rf "../pkg/${gohostos}_${gohostarch}"* "../pkg/tool/${gohostos}_${gohostarch}"*
rm -rf ../pkg/bootstrap ../pkg/obj
fi
-
- # FIXME some tests fail:
- # PATH="$GOROOT/bin:$PATH" ./run.bash -no-rebuild
}
check() {
- cd "$builddir"
- ./bin/go run doc/play/hello.go
+ cd "$builddir/src"
+ PATH="$builddir/bin:$PATH" ./run.bash -no-rebuild \
+ -run "!($(echo "$_brokentests" | tr " " "|"))$"
}
package() {