mid-kid
9 months ago
7 changed files with 32 additions and 43 deletions
@ -1,32 +0,0 @@ |
|||||
#!/bin/sh |
|
||||
set -eu |
|
||||
|
|
||||
version_go19=1.19.12 |
|
||||
|
|
||||
dir_download="$PWD/download" |
|
||||
mkdir -p build; cd build |
|
||||
dir_install="$PWD/install-go19" |
|
||||
|
|
||||
# Prepare source |
|
||||
mkdir -p "go$version_go19" |
|
||||
tar xf "$dir_download/go$version_go19.src.tar.gz" -C "go$version_go19" --strip-components 1 |
|
||||
cd "go$version_go19" |
|
||||
|
|
||||
# Build and install |
|
||||
(cd src; GOROOT_BOOTSTRAP="$PWD/../../install-bootstrap" ./make.bash) |
|
||||
|
|
||||
find src -type f \( ! -name '*.go' \ |
|
||||
-a ! -name '*.c' \ |
|
||||
-a ! -name '*.h' \ |
|
||||
-a ! -name '*.s' \ |
|
||||
-a ! -name '*.S' \ |
|
||||
-a ! -name 'p256_asm_table.bin' \ |
|
||||
\) -print -delete |
|
||||
find src -type f -name '*_test.go' -print -delete |
|
||||
find src -type d -name 'testdata' -print0 | xargs -0 rm -vrf |
|
||||
find src -type d -empty -print -delete |
|
||||
find pkg -type f -name '*.a' -print -delete |
|
||||
find pkg -type d -empty -print -delete |
|
||||
|
|
||||
mkdir -p "$dir_install" |
|
||||
cp -at "$dir_install" bin pkg src |
|
@ -1,3 +1,4 @@ |
|||||
ee5d50e0a7fd74ba1b137cb879609aaaef9880bf72b5d1742100e38ae72bb557 go1.19.12.src.tar.gz |
ccf36b53fb0024a017353c3ddb22c1f00bc7a8073c6aac79042da24ee34434d3 go1.19.13.src.tar.gz |
||||
818d46ede85682dd551ad378ef37a4d247006f12ec59b5b755601d2ce114369a go1.21.0.src.tar.gz |
00197ab20f33813832bff62fd93cca1c42a08cc689a32a6672ca49591959bff6 go1.21.7.src.tar.gz |
||||
|
4d196c3d41a0d6c1dfc64d04e3cc1f608b0c436bd87b7060ce3e23234e1f4d5c go1.22.0.src.tar.gz |
||||
f4ff5b5eb3a3cae1c993723f3eab519c5bae18866b5e5f96fe1102f0cb5c3e52 go1.4-bootstrap-20171003.tar.gz |
f4ff5b5eb3a3cae1c993723f3eab519c5bae18866b5e5f96fe1102f0cb5c3e52 go1.4-bootstrap-20171003.tar.gz |
||||
|
@ -0,0 +1,11 @@ |
|||||
|
# Update with GO_BOOTSTRAP_MIN version in dev-lang/go |
||||
|
GO_BOOTSTRAP_MIN=1.20.14 |
||||
|
|
||||
|
sudo rsync -rvP build/install-go/ /usr/lib/go-bootstrap |
||||
|
sudo mkdir -p /var/db/pkg/dev-lang/go-bootstrap-$GO_BOOTSTRAP_MIN |
||||
|
echo 0 | sudo tee /var/db/pkg/dev-lang/go-bootstrap-$GO_BOOTSTRAP_MIN/SLOT > /dev/null |
||||
|
|
||||
|
sudo emerge dev-lang/go |
||||
|
|
||||
|
sudo rm -rf /usr/lib/go-bootstrap |
||||
|
sudo rm -rf /var/db/pkg/dev-lang/go-bootstrap-$GO_BOOTSTRAP_MIN |
Loading…
Reference in new issue