Skip to content

go: update 1.21.1 to 1.22.0 #3075

Merged
merged 1 commit into from
Feb 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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