Skip to content

Commit

Permalink
go: update from 1.10 to 1.10.2
Browse files Browse the repository at this point in the history
- new bootstrapper
- disabled nagging build warnings
  • Loading branch information
wwwutz committed May 9, 2018
1 parent 1fd8fb9 commit 1c59633
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions go.be0
Original file line number Diff line number Diff line change
@@ -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+=()
Expand All @@ -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 "${@}"
}

Expand All @@ -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
}


Expand All @@ -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
Expand Down

0 comments on commit 1c59633

Please sign in to comment.