Skip to content

Commit

Permalink
Merge pull request #3075 from mariux64/update-go-122
Browse files Browse the repository at this point in the history
go: update 1.21.1 to 1.22.0
  • Loading branch information
wwwutz authored Feb 28, 2024
2 parents 8da94f7 + 36c6ee8 commit 59f62ba
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions go.be0
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
#!/usr/bin/env beesh

# BEE_VERSION go-1.21.1-1
# BEE_VERSION go-1.22.0-0

# see also: https://golang.org/doc/install/source

# SRCURL[0]="https://dl.google.com/go/go1.4-bootstrap-20171003.tar.gz"
#SRCURL[1]="https://redirector.gvt1.com/edgedl/go/go${PKGVERSION}.src.tar.gz"
SRCURL[0]="https://beehive.molgen.mpg.de/dbf727a4b0e365bf88d97cbfde590016/go1.4-bootstrap-20171003.tar.gz"
SRCURL[1]="https://beehive.molgen.mpg.de/4476707f05cf6915ec1173038dc357a9/go1.17.13.src.tar.gz"
#SRCURL[2]="https://go.dev/dl/go1.21.1.src.tar.gz"
SRCURL[2]="https://beehive.molgen.mpg.de/00ef7b2f4c47990c37dd60bd15fa8c0f/go1.21.1.src.tar.gz"
#SRCURL[2]="https://go.dev/dl/go1.20.6.src.tar.gz"
SRCURL[2]="https://beehive.molgen.mpg.de/1dc2d18790cfaede7df1e73a1eff8b7b/go1.20.6.src.tar.gz"
# SRCURL[3]="https://go.dev/dl/go1.22.0.src.tar.gz"
SRCURL[3]="https://beehive.molgen.mpg.de/a1918eb3b5daba5b9eb58090944db1bd/go1.22.0.src.tar.gz"


# PATCHURL+=()

Expand All @@ -25,6 +28,9 @@ mee_extract() {
mkdir ${B}/bootstrap-1.17.13
bee_extract_do_tar "${1}" ${B}/bootstrap-1.17.13 --strip-components 1
shift
mkdir ${B}/bootstrap-1.20.6
bee_extract_do_tar "${1}" ${B}/bootstrap-1.20.6 --strip-components 1
shift
bee_extract "${@}"
}

Expand Down Expand Up @@ -58,9 +64,20 @@ mee_build() {

echo "---- bootstrap 1.17.13 built ----"

cd ${S}/src
cd ${B}/bootstrap-1.20.6/src

# https://github.com/golang/go/issues/16906 "cannot load DWARF output ..."
export GOROOT_BOOTSTRAP=${B}/bootstrap-1.17.13

CGO_ENABLED=0 \
CFLAGS='-Wno-implicit-fallthrough -Wno-shift-negative-value' \
./make.bash

echo "---- bootstrap 1.20.6 built ----"

cd ${S}/src

export GOROOT_BOOTSTRAP=${B}/bootstrap-1.20.6
. ./make.bash --no-banner
$GOTOOLDIR/dist banner

Expand Down

0 comments on commit 59f62ba

Please sign in to comment.