diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-07-10 15:51:57 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-07-10 15:51:57 +0900 |
| commit | 5161fc24ec425a8e3c28158a431383e48353d143 (patch) | |
| tree | 12957bf549f5b989560f9ccb1f909a7cea441ef8 /internal/rosa/package/go/package.az | |
| parent | e1f16e77209bc5acc7e41afecc15672627a0fafa (diff) | |
internal/rosa/package/go: 1.26.4 to 1.26.5
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/package/go/package.az')
| -rw-r--r-- | internal/rosa/package/go/package.az | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/internal/rosa/package/go/package.az b/internal/rosa/package/go/package.az new file mode 100644 index 00000000..d2ab4f9d --- /dev/null +++ b/internal/rosa/package/go/package.az @@ -0,0 +1,63 @@ +package go { + description = "the Go programming language toolchain"; + website = "https://go.dev"; + anitya = 1227; + + version# = "1.26.5"; + source = remoteTar { + url = "https://go.dev/dl/go"+version+".src.tar.gz"; + checksum = "13yt1u_NGOd62LO-WZ8W6CUXodOrEF5CdkiTTiH9E635IHn1luvlXYjsHpBXNFSw"; + compress = gzip; + }; + + patches = [ + // https://go.dev/issue/77674 + "746640.patch", + // https://go.dev/issue/80308 + "799064.patch", + ]; + + env = [ + "CC=cc", + "GOCACHE=/tmp/gocache", + "GOROOT_BOOTSTRAP=/system/go", + "TMPDIR=/dev/shm/go", + ]; + + enterSource = true; + + exec = generic { + inPlace = true; + build = ` +mkdir /work/system/ "${TMPDIR}" +cp -r . /work/system/go +cd /work/system/go/src/ +chmod -R +w .. + +sed -i \ + 's,/lib/ld-musl-`+linuxArch+`.so.1,/system/bin/linker,' \ + cmd/link/internal/`+arch+`/obj.go + +rm \ + os/root_unix_test.go \ + cmd/cgo/internal/testsanitizers/tsan_test.go \ + cmd/cgo/internal/testsanitizers/cshared_test.go + +set +u +. ./make.bash "$@" --no-banner +set -u +`; + check = "bash run.bash --no-rebuild\n"; + install = ` +../bin/go tool dist banner # print build info + +mkdir /work/system/bin +ln -s \ + ../go/bin/go \ + ../go/bin/gofmt \ + /work/system/bin +`; + }; + + inputs = [ bash, go-bootstrap ]; +} |
