From 8a550e596cf7df735383fc2a2c3b79c51ac0a589 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 23 Feb 2024 23:40:53 +0000 Subject: gentoo auto-resync : 23:02:2024 - 23:40:53 --- dev-lang/Manifest.gz | Bin 21853 -> 21848 bytes dev-lang/go/Manifest | 1 + dev-lang/go/files/make-go-bootstraps | 55 +++++++++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100755 dev-lang/go/files/make-go-bootstraps (limited to 'dev-lang') diff --git a/dev-lang/Manifest.gz b/dev-lang/Manifest.gz index 64111b10f4b8..222232524e71 100644 Binary files a/dev-lang/Manifest.gz and b/dev-lang/Manifest.gz differ diff --git a/dev-lang/go/Manifest b/dev-lang/go/Manifest index 4457c0ba3c14..1b9fca9ed8fa 100644 --- a/dev-lang/go/Manifest +++ b/dev-lang/go/Manifest @@ -1,5 +1,6 @@ AUX go-never-download-newer-toolchains.patch 368 BLAKE2B 0c90f46492af80622f430b2d506b143f3b553b5276085f78f41b93fee8219745179038302462603b5b1677554d92911eb4865084d0488aaa4c71ae1abc307f71 SHA512 b5acf97ccf96c6a353fcb7bd97113c38562defd82338828124fcc72c71334feda9c4e839d2aae5b66b809bc8a692eac96396c54a478e17a7ffd8d2c68fea95e6 AUX go-sets.conf 256 BLAKE2B 670afd72a2fa961e2b3882ac48d10e9d047af7a68f47bc8c8985b2de7a84022410fb1acfe2c710f8b3804ec3b043bf18c948478cf7d31c982cff47714b309cdf SHA512 028fba72c2d82ef893416970c27cb277be15f7c5c67773c0a62cd8ce2c192813ba851339596f10a6f5394c479e67b62dd4e4520379cc03f764ed4a4ab834fba6 +AUX make-go-bootstraps 1424 BLAKE2B 422a3db136f81941ddbdc8c47996daad345c44e03086b80f72f026c734dcbfb0ebb34c24a83dad204024dd1931a057813510654500e61c297f3cfef5d255d615 SHA512 682f9797ef1f693f7e5fe661b267b731bbec2144a7661d87ddeeabafcbb93929cd413de3ffbc892940c9582e1b589d50622561a2245dc279f5e88319f5ae4197 DIST go-1.20.14-darwin-amd64-bootstrap.tbz 94549781 BLAKE2B 604d6b183b6be19f98f330a73fd07db1824442b14c3870447340e628b3fd13c87972d9a192f888e329b1d0337a48d66651f35c0237e4a5a609091e73385925d7 SHA512 ef2b179a096319dca8cd3907ad7c9d80bc61d409ce198a323073fbceb3b6ab3f5752eaeeb8f37f9287ba1c009f5e37da341e359228d0509ab766340f61a10c68 DIST go-1.20.14-darwin-arm64-bootstrap.tbz 92159553 BLAKE2B 28a95dafd3126e95fd997744ca20385bf634c3bc08be5698bc314c8e902e261d66ebae754492997562ba3bd2635f68ad8173cbd84aa6e59bcf38fe0c2cd35a65 SHA512 1f39a132037f9b1141cac752c20c34da0f87583dba9094965ffb7f65015d3d5273a1b63201e1f68e00d436aa1b1d79972f6f50a195a3d5799f012fb3fbaa20b6 DIST go-1.20.14-linux-386-bootstrap.tbz 96003553 BLAKE2B c3a07e7dd840387281b065aebd216fa0cdd1c2e7bc71cce63f4a0fd7fa2ce1848f2b3b91c2506bea1a5b747ca7eece9aff08fe67dcf6b63f8afcc4a92e382f6b SHA512 236423e5b65078afd7a44f83f91f0b2bf11c78871d01adce942651ec24d02ae96021dfdb00640034dff9b43c636b1975402b68955bf6572c680dfbbb9bdb266e diff --git a/dev-lang/go/files/make-go-bootstraps b/dev-lang/go/files/make-go-bootstraps new file mode 100755 index 000000000000..a929fd988377 --- /dev/null +++ b/dev-lang/go/files/make-go-bootstraps @@ -0,0 +1,55 @@ +#!/bin/bash +set -e + +# This creates go bootstrap tarballs for the version of go currently +# installed on your system. +# It should be run as part of bumping dev-lang/go when a newer version +# of go is required for bootstrapping. +# Make sure the version of go required for bootstrapping is installed +# then run this script. +# The script will output the location where the bootstrap tarballs are +# stored. +# Next, update the GO_BV variable in the new version of the dev-lang/go +# ebuild to the version in the bootstrap tarballs file name. + +go_tuples=( + darwin-amd64 + darwin-arm64 + linux-386 + linux-amd64 + linux-arm + linux-arm64 + linux-loong64 + linux-mips + linux-mipsle + linux-mips64 + linux-mips64le + linux-ppc64 + linux-ppc64le + linux-riscv64 + linux-s390x + solaris-amd64 +) + +go_version=$(go version) +go_version=${go_version##*go} +go_version=${go_version%% *} +build_path=$(mktemp -d /tmp/go-bootstraps-XXXXXX) +pushd "${build_path}" +git clone https://github.com/golang/go.git +cd go +git checkout go"${go_version}" +cd src +for tuple in ${go_tuples[@]}; do + printf "Building go version %s bootstrap tarball for %s\n" "${go_version}" "${tuple}" + GOOS=${tuple%%-*} GOARCH=${tuple##*-} ./bootstrap.bash + rm -fr ../../go-${tuple}-bootstrap +done +cd ../.. +rm -fr go +for f in *tbz; do + mv "${f}" "${f/go/go-${go_version}}" + done +popd +mv "${build_path}" "${build_path%-*}" +printf "The bootstrap tarballs are stored in %s\n" "${build_path%-*}" -- cgit v1.2.3