ref: d3f82d64da6f68675651b8271fb126fb502c0125
parent: a8eedc80972f224d30d6a5184dee0e089032e3c6
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Fri Nov 27 02:26:42 EST 2020
building go: update to 1.15.5
--- a/building-go.md
+++ b/building-go.md
@@ -6,8 +6,8 @@
mkdir -p /sys/lib/go
cd /sys/lib/go
- hget https://golang.org/dl/go1.15.2.src.tar.gz | gunzip -c | tar x
- mv go amd64-1.15.2
+ hget https://golang.org/dl/go1.15.5.src.tar.gz | gunzip -c | tar x
+ mv go amd64-1.15.5
If you don't already have some version of Go installed it's best to
grab a bootstrap tarball built by the 9legacy folks:
@@ -22,8 +22,8 @@
Next we'll need to configure both 'GOROOT' and 'GOROOT_BOOTSTRAP':
GOROOT_BOOTSTRAP=/sys/lib/go/go-plan9-amd64-bootstrap
- GOROOT=/sys/lib/go/amd64-1.15.2
- cd amd64-1.15.2/src
+ GOROOT=/sys/lib/go/amd64-1.15.5
+ cd amd64-1.15.5/src
make.rc
This will build the binaries under `$GOROOT/bin`. You can install these with:
@@ -40,14 +40,14 @@
mkdir -p /sys/lib/go/
ramfs
cd /tmp
- hget https://golang.org/dl/go1.15.2.src.tar.gz | gunzip -c | tar x
+ hget https://golang.org/dl/go1.15.5.src.tar.gz | gunzip -c | tar x
hget http://www.9legacy.org/download/go/go1.14.1-plan9-amd64-bootstrap.tbz | bunzip2 -c | tar x
- mv go amd64-1.15.2
+ mv go amd64-1.15.5
GOROOT_BOOTSTRAP=/tmp/go-plan9-amd64-bootstrap
- GOROOT_FINAL=/sys/lib/go/amd64-1.15.2
- cd amd64-1.15.2/src
+ GOROOT_FINAL=/sys/lib/go/amd64-1.15.5
+ cd amd64-1.15.5/src
make.rc
- dircp /tmp/amd64-1.15.2 /sys/lib/go/
+ dircp /tmp/amd64-1.15.5 /sys/lib/go/
You can verify that 'GOROOT' has been set properly using: