summaryrefslogtreecommitdiff
path: root/dev-lang/go-bootstrap
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lang/go-bootstrap')
-rw-r--r--dev-lang/go-bootstrap/Manifest19
-rwxr-xr-xdev-lang/go-bootstrap/files/make-go-bootstraps32
-rw-r--r--dev-lang/go-bootstrap/go-bootstrap-1.22.12.ebuild51
3 files changed, 84 insertions, 18 deletions
diff --git a/dev-lang/go-bootstrap/Manifest b/dev-lang/go-bootstrap/Manifest
index e0d188575039..7403cef7a9c1 100644
--- a/dev-lang/go-bootstrap/Manifest
+++ b/dev-lang/go-bootstrap/Manifest
@@ -1,4 +1,4 @@
-AUX make-go-bootstraps 1440 BLAKE2B 9ff79d6209a5b7b9b843e66e800155d738b8c2164af38b410ec71cc7c9b4737d2fa89be90ad122e3afe355ceb8268ca8cc82e2f615f046f77cccca894f0ed9e6 SHA512 0d815704dcda842f9873073e15f7b533741d472386e6424b0262cf010fa5ec1e03e484fffb5c400b07abf7a8f121ae900e4991d7aceb3c810e25dd3bfa9194ce
+AUX make-go-bootstraps 1568 BLAKE2B 1570c17b5908c3bfaaf6fc67ef6326744f91f9cc289f1db01cb8706f8ae9e81913585ee8c507f2612cbe10f472e77ba9a55163b61ce30d7102049d65c9cbb097 SHA512 280112d98672cf0d8fea95faefd87c758ce4a6df33e3dcd3b756a0aa5c107337b136d845b63e285629ebb83661eb8f32bb0ab13c2bae8ef835e8084d0b9ddf3f
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 96049477 BLAKE2B 63e52312a2ea5edf9fc3aa2f6dbcf7438ddaa5d41705426ee6e1060d56ff7837e6b16e74e90567aa96b1e1b90088503936614caf5d41f3a83dd278cc252975f1 SHA512 c9fc51ce495b3b48915e8da2bb404adfe59c957480dbf174491c63b528f7e0fc4bcadbfb8395a2885cc83523e9245c0e4718637313b4fbaeb53bf0f18be0c7ce
@@ -15,5 +15,22 @@ DIST go-1.20.14-linux-ppc64le-bootstrap.tbz 90575770 BLAKE2B 0c76ba27d41d329a7c5
DIST go-1.20.14-linux-riscv64-bootstrap.tbz 93091456 BLAKE2B 197811a57c728ef546b9660328ab6624b87ae085e98264e5b3317fc66581fc0ee8ef95af3040c07a6cebfe30da88d209bf5bdb8ee11a647b716fa3122031724a SHA512 a3faaeaac90354a9be130d01108c8fdb178a0427d7dab0362c570428216ddd362f55044021082cbbb466f3a69458869d4978bd28652f7a4e55295d357c9c7c54
DIST go-1.20.14-linux-s390x-bootstrap.tbz 94671247 BLAKE2B 7ff60a7c1245b66cbe852662589fe3a87c4fc29a1134dd46ad76272b9bc619b7ffba823374658a0f8d54a440d808d3eb8d97788483bbe69628bda167f4377109 SHA512 bc6c7efddfcc90fe2f1bbb2dee7f4396eb5b478eee7236216ca00c5bd4ce1dc0e3315edb58bf6ef3f7a7e5c45950e6f5be9163cfffd1cf5c36004aaa4916a1b7
DIST go-1.20.14-solaris-amd64-bootstrap.tbz 95085901 BLAKE2B aed378201db555121bae1ab049d44b297dc922d7cd977c3d6f2dbff1b3cc46f59a697a211c244ed2f012d5c8ea6211501527512325188e34a3ccd2946ef6dbe8 SHA512 22a8b79ab2eb08319d1d9fb517458cdafd1a4fcbba2da70935d65ccdcc3808978ca0dbb045a7cfde2ca43eb6effd3ce687d2f99ee24dedcae9967b414fd6fe57
+DIST go-bootstrap-1.22.12-darwin-amd64.tbz 64955332 BLAKE2B 8b5f2a60f2e2d250e5e944decaafe4bbae02b989467a30ad01542b5b95820b2bd5127ce42467e82d10bcdd6985b097b2b38a6e61b19071916b8f9dfab04b8ea7 SHA512 d143031c7032620460190618ccbc0112dd0f01e2cf64c48a75b554538be0d49b979d02050189e81a50b4f172bb5ffe4db5163936c1d8a6bfc09c5e2ea12bbed8
+DIST go-bootstrap-1.22.12-darwin-arm64.tbz 62274977 BLAKE2B 2fb43878eff785652fa41edbcdb9fbb7c2d54b3f012a594a8c14d997a10b31aba347fc93a9887b39cad5b1817e9249224e22fba3a2ced90241c75f93b9eee2fa SHA512 161312a2a8ea953215b006ff73cf2e0345db4a7079429fabe022e2a0f3dfa2dba441bf05b0ef9450d39a20f4d2e5ac1a5d1dd659030551a996c869670d0e4bdc
+DIST go-bootstrap-1.22.12-linux-386.tbz 61905608 BLAKE2B 036006e1d73663c9adc0746c1e6b048df0630fd6dcb35513e3085f92225e71e3e0678b551d9b6bcae8efbb71684c0718bf49d06941661c88f56c4e9473464778 SHA512 be643e1a327221ccffe6b9bdeeeea38b6bad0fcea9bd8305a774a0a93103042f3f96b2d51983d87f92971cb71d8f1817a3da57048646a8b76f83641fae94bb36
+DIST go-bootstrap-1.22.12-linux-amd64.tbz 64061301 BLAKE2B eee49d2ffe36dc50bdffad69bc2e106736f62e04d1bca3da55400f47f032f2bb79ef772eb6eac0f9fac17bc340770a6bed5c86e4968da4c8613d032bff4dd426 SHA512 3ba2083435af5be97cd02f36d27d100b62285d1f680d519309619d47e07fd0184a4dbf92c5f00b2c661b62ffc66ab03e0add0331a122730e35270a2dc9a83b5c
+DIST go-bootstrap-1.22.12-linux-arm.tbz 61282567 BLAKE2B 4ca77e3d4488973f4ea190003d9ab181de0bb6a216074bbc85118e39420e03749bb83b326d1f5221a8ca117e78656af15bfde3e28b1b276d999476892ea87e59 SHA512 0d3a8fa91872c94de22bf07969573196593b556592c017dcdde794dd620cee92d1ac33a2d3505cd1d3ca55df167595b82c18991e7cb06d8399a6d25adf3bf6fd
+DIST go-bootstrap-1.22.12-linux-arm64.tbz 60296549 BLAKE2B 29417911aa5c9096c1fddb6bff4684865c873a51a2acbdf8fff18556cd3d920d92bce6df8cf8401e34c187ee44dd840e521bd9457aef76ba8948170ef755e337 SHA512 7bb3a375a65eab9d5e5a66bf070948034734af245b4cb06825009fb10f122a7a41f0f718f3838e2a8d37dcf8440348c1dfbc12370f65651388c473400850e84f
+DIST go-bootstrap-1.22.12-linux-loong64.tbz 60917942 BLAKE2B 59904642dcf0874afafb714dc31e2dd71920615d45f4111933661786921436a20f10bd1625e3742f040d250934b103f9ffe37f317ca1ba55dd92bd96bbb759cf SHA512 f170b92ed621a7ec0c83c77b4cdd8ce7ccac3fa05f659a40cbf729b3e28a20181dc0295464ca627100cc8141e3a3d7f05e0a811d55d7abf661020faf7511755c
+DIST go-bootstrap-1.22.12-linux-mips.tbz 58135007 BLAKE2B f84fddc176549fa3b903c307c90df9b5177d79322b61b6647795fbdfc728fd9d642c7eda0634e41f6ed3563c5fdc1ce7d4d26ff179a19c60270ac9c9752cae03 SHA512 eb0642cbf7f5cef2ea40809f98fb66f882236defb948c0034deeb6e7b332ed7eabda6f4028bd417d1b6a48c06d7c970dff818f54dd9f20db3bcff9322070382a
+DIST go-bootstrap-1.22.12-linux-mips64.tbz 57252236 BLAKE2B 1ef06b548fbeb7fbafde5119b62259bec42e234deedc48e7909bd5699eede30dd5ef019416879959e302775f7e685079e1f8ebc393c48c8b6321722d5ed139cc SHA512 ade5f0e2b5d9de43e09bf281b6ce83784684a03e6fde5197283efba24bdefba20d938378f0c6d7a31db74762a0542de1473f866abf41f0e6271d140f993c7b6e
+DIST go-bootstrap-1.22.12-linux-mips64le.tbz 57548639 BLAKE2B edb1866b1940f3c213f3a4090086e4be814947bccf5b27b492584e241ca3a723bd5b895d87d4fb8e68cb50b7f046aeb76f734a17290e61a4cd1e1b1b9bc42238 SHA512 2956596b9ae5c98b5b78d95db68ce424857510bcdcb82682bb135606ada8c987ac888840de9b4e0b3700120734665b8e880590d459ffd249c426baef61c964ae
+DIST go-bootstrap-1.22.12-linux-mipsle.tbz 58434883 BLAKE2B d926b7990b8e458bbc8f0890a29ae1959b2e1926e8e29a708a7076ceb53e02c0294f15708dcd8a99e1141d09b519dfa686a164e3e81faa793ba0b2e0a2a4b93d SHA512 ca5cf6fb254267e66d80a6a140da3bbeee532f2c8200370e81db315cd4e88837f9fc640f23286b843f6bfb432a10f7b53a63da14f0bb0538fecf7740f3657ac5
+DIST go-bootstrap-1.22.12-linux-ppc64.tbz 59542900 BLAKE2B 81ed60e3f64f76bd8f97aac7a79f4026fc7f4a644e92ed011d7b4295398ef52838dfcef2e8c9e8163bf7f2949611a77246a086bcaf713755768a147690656b2f SHA512 b6230a2dc29cd5547e15f06bcfdb5f74a6060ce5050c0ac9a4ab1ee3c4046dbea22a7f59ad8351302d2d697bccee0426edd27105b67b6c0d330e655db3ed7036
+DIST go-bootstrap-1.22.12-linux-ppc64le.tbz 60214299 BLAKE2B 9506975d7ed9170c28078d6d10bf9fcbd11040368360803964c178f015dba5fc73e3a8e69af62e00cea014a712a2dec619e39826255f7c15ecc160ce9255b97d SHA512 3c24fe4979b7c6c3eed39fd7ba477c32d68c6555126085696d54531323f6c96776f83ace18bb4b0a305827bbb5449bfabf90fe9bc4bdbf74c99392b0a69a10d6
+DIST go-bootstrap-1.22.12-linux-riscv64.tbz 61337982 BLAKE2B 04bad675e1d0bbd7578acf8ac545b09bb0542cc8336b3e7ed0d62c0a2620ab63c3d1e28644bfdce984130ef851d19e59375ab9ffe8e3cea6f9dbb8cd0ac56246 SHA512 b0002a0a1fa976b1b575920053bb88cd89fb5b76ff1e34bde1ef001cc87f70541a60f755d9dd9d898ca05bfb59a4b79e6892082f43b5cb78c62c8703b14c10d1
+DIST go-bootstrap-1.22.12-linux-s390x.tbz 62183020 BLAKE2B f6fb0f28e2e24523b49263cc5f74c7d0c54e7933ce56fd3c6774b4d003cc0d8ae774d86133f84cc475bb6270b2c3f44f6576f81689f38e8fffd679f097d0963b SHA512 34144ead46490c57b486f01ca86e78025c45b74c721128047095bab02fc9e31c7681e172f4726bb87d422889eb78b3e9762de242e7c9eb1770ac322edb1c933f
+DIST go-bootstrap-1.22.12-solaris-amd64.tbz 63917252 BLAKE2B ec274db725ae7e27174e708c8e719494a2053de01d829d594c29d16c23576bd1118968855b0b9ac4e904817c3f06ce6ac49301d749f3c8c4615066d92af5f5ea SHA512 22021ce136c6885a5f90cb42a6f8683c5ad1f6dae5f2f6f0c296556ddc571ec4d5b0c200b1739dda6121d717729a1f1ab27eeac46d9589187d96105996423d0a
EBUILD go-bootstrap-1.20.14.ebuild 1905 BLAKE2B fa27a4c302b5f21f27f8dda30c46d4b776452fff4d68147623beecbbf73e21ded056cebc91efd315615f765ee438405ef3fb0d1a8ae4826383922b4a758e3e2f SHA512 ae4485db8e3765d1bd9373b5f1b5ab9bef21156361bcfde98ca4fe24c589e85c1d04520de403f2a5663ca23c3ce863f32324b44304419a92c63d6de6ca0dd42c
+EBUILD go-bootstrap-1.22.12.ebuild 1686 BLAKE2B 1d1b743aed78a812044e5aef122fb695dfe9dec253a72b6aa8428f972360034697237ec332bd1055cbe849ca3b734996f985a504b4437122130def46560dbc95 SHA512 f9712a8c0b5b7d6350dcf8f668f19ce1f0b36a6813649e098dc1fd3c4b01c73c36182b441e143429c8dce2c30586f7f6c87c859e32b4a68c991f5c8809295483
MISC metadata.xml 416 BLAKE2B 160ffa2aa64cbf398e08b31e47fc4d44dd4488b1f416bcdd2aa67269588c6869c3aecfa98d697c2930b1d8f7843117ff3d1e3fc665e796022276fd2e37cb6518 SHA512 8a75c24b4fc5f61c612fb297b3ff761bd30884618aba4bafedcc1bed1a091584275a03e673365cc5f91d3f7f021409528de418d4361e3a250bc67ad747f0a5fa
diff --git a/dev-lang/go-bootstrap/files/make-go-bootstraps b/dev-lang/go-bootstrap/files/make-go-bootstraps
index 8340dbaecfd8..6ad27296b57e 100755
--- a/dev-lang/go-bootstrap/files/make-go-bootstraps
+++ b/dev-lang/go-bootstrap/files/make-go-bootstraps
@@ -31,25 +31,23 @@ go_tuples=(
solaris-amd64
)
-go_version=$(go version)
-go_version=${go_version##*go}
-go_version=${go_version%% *}
+go_tag=$(go env GOVERSION)
+go_version=${go_tag#go}
+go_repo="https://github.com/golang/go"
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
+pushd "${build_path}" > /dev/null
+git clone --depth 1 --quiet --branch "${go_tag}" "${go_repo}" "${build_path}/go"
+for tuple in "${go_tuples[@]}"; do
printf "Building go version %s bootstrap tarball for %s\n" "${go_version}" "${tuple}"
+ pushd go/src > /dev/null
GO386=softfloat GOOS=${tuple%%-*} GOARCH=${tuple##*-} ./bootstrap.bash
- rm -fr ../../go-${tuple}-bootstrap
+ git clean -d -f -x
+ popd > /dev/null
+ rm -fr "go-${tuple}-bootstrap"
+ mv "go-${tuple}-bootstrap.tbz" "go-bootstrap-${go_version}-${tuple}.tbz"
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%-*}"
+popd /dev/null
+final_path="${HOME}/go-bootstrap-${go_version}"
+mv "${build_path}" "${final_path}"
+printf "The bootstrap tarballs are stored in %s\n" "${final_path}"
diff --git a/dev-lang/go-bootstrap/go-bootstrap-1.22.12.ebuild b/dev-lang/go-bootstrap/go-bootstrap-1.22.12.ebuild
new file mode 100644
index 000000000000..e590f0e854ac
--- /dev/null
+++ b/dev-lang/go-bootstrap/go-bootstrap-1.22.12.ebuild
@@ -0,0 +1,51 @@
+# Copyright 2020-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Bootstrap package for dev-lang/go"
+HOMEPAGE="https://golang.org"
+BOOTSTRAP_DIST="https://dev.gentoo.org/~williamh/dist"
+SRC_URI="
+ x64-macos? ( ${BOOTSTRAP_DIST}/${P}-darwin-amd64.tbz )
+ arm64-macos? ( ${BOOTSTRAP_DIST}/${P}-darwin-arm64.tbz )
+ x86? ( ${BOOTSTRAP_DIST}/${P}-linux-386.tbz )
+ amd64? ( ${BOOTSTRAP_DIST}/${P}-linux-amd64.tbz )
+ arm64? ( ${BOOTSTRAP_DIST}/${P}-linux-arm64.tbz )
+ arm? ( ${BOOTSTRAP_DIST}/${P}-linux-arm.tbz )
+ loong? ( ${BOOTSTRAP_DIST}/${P}-linux-loong64.tbz )
+ mips? (
+ abi_mips_n64? (
+ !big-endian? ( ${BOOTSTRAP_DIST}/${P}-linux-mips64le.tbz )
+ big-endian? ( ${BOOTSTRAP_DIST}/${P}-linux-mips64.tbz )
+ )
+ abi_mips_o32? (
+ !big-endian? ( ${BOOTSTRAP_DIST}/${P}-linux-mipsle.tbz )
+ big-endian? ( ${BOOTSTRAP_DIST}/${P}-linux-mips.tbz )
+ )
+ )
+ ppc64? (
+ !big-endian? ( ${BOOTSTRAP_DIST}/${P}-linux-ppc64le.tbz )
+ big-endian? ( ${BOOTSTRAP_DIST}/${P}-linux-ppc64.tbz )
+ )
+ riscv? ( ${BOOTSTRAP_DIST}/${P}-linux-riscv64.tbz )
+ s390? ( ${BOOTSTRAP_DIST}/${P}-linux-s390x.tbz )
+ x64-solaris? ( ${BOOTSTRAP_DIST}/${P}-solaris-amd64.tbz )
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~arm ~arm64 ~loong ~mips ~ppc64 ~riscv ~s390 ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~x64-macos ~x64-solaris"
+IUSE="abi_mips_n64 abi_mips_o32 big-endian"
+RESTRICT="strip"
+QA_PREBUILT="*"
+
+S="${WORKDIR}"
+
+src_install() {
+ dodir /usr/lib
+ mv go-*-bootstrap "${ED}/usr/lib/go-bootstrap" || die
+
+ # testdata directories are not needed on the installed system
+ rm -fr $(find "${ED}"/usr/lib/go-bootstrap -iname testdata -type d -print)
+}