From 1c59633fbbf77b69f38c1f17439ba766f7734c3e Mon Sep 17 00:00:00 2001 From: Peter Marquardt Date: Wed, 9 May 2018 09:40:29 +0200 Subject: [PATCH] go: update from 1.10 to 1.10.2 - new bootstrapper - disabled nagging build warnings --- go.be0 | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/go.be0 b/go.be0 index 63b75f123..36670f0e9 100755 --- a/go.be0 +++ b/go.be0 @@ -1,8 +1,8 @@ #!/usr/bin/env beesh -# BEE_VERSION go-1.10-0 +# BEE_VERSION go-1.10.2-0 -SRCURL[0]="https://storage.googleapis.com/golang/go1.4-bootstrap-20170531.tar.gz" +SRCURL[0]="https://storage.googleapis.com/golang/go1.4-bootstrap-20171003.tar.gz" SRCURL[1]="https://redirector.gvt1.com/edgedl/go/go${PKGVERSION}.src.tar.gz" # PATCHURL+=() @@ -17,7 +17,7 @@ mee_extract() { # extract bootstrap version of go-1.4 to arbitrary location mkdir ${S}/bootstrap bee_extract_do_tar "${1}" ${S}/bootstrap --strip-components 1 - shift + shift bee_extract "${@}" } @@ -27,19 +27,23 @@ mee_extract() { #mee_configure() { # bee_configure -#} +#}mee_install() mee_build() { cd ${S}/../bootstrap/src + + # https://github.com/golang/go/issues/16906 "cannot load DWARF output ..." + CGO_ENABLED=0 \ + CFLAGS='-Wno-implicit-fallthrough -Wno-shift-negative-value' \ ./make.bash + echo "---- bootstrap built ----" cd ${S} export GOROOT_BOOTSTRAP=${S}/../bootstrap export GOROOT_FINAL=${LIBDIR}/go - - ./make.bash + ./make.bash --no-clean } @@ -62,7 +66,7 @@ mee_install() { fmt html internal log os regexp strconv syscall time vendor" echo "LIBS=${LIBS}" - + mkdir -p ${D}${LIBDIR}/go/src for i in $LIBS; do cp -r ${S}/${i} ${D}${LIBDIR}/go/src