aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/package/go/package.az
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-08-25 16:27:05 +0900
committerOphestra <cat@gensokyo.uk>2026-08-25 16:27:05 +0900
commitcfede152c824aaf77e5abd75c804cb1553358478 (patch)
treea53cff0c61c348e0a665e57fc5aad862c6b40adc /internal/rosa/package/go/package.az
parentce53fa9249df44e0321f880adf8dd1d4ba0e8c60 (diff)
internal/rosa/package/go: added PMULL gate on carryless multiply test
Fixes go.dev/issues/80991. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/package/go/package.az')
-rw-r--r--internal/rosa/package/go/package.az58
1 files changed, 58 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..d06720b5
--- /dev/null
+++ b/internal/rosa/package/go/package.az
@@ -0,0 +1,58 @@
+package go {
+ description = "the Go programming language toolchain";
+ website = "https://go.dev";
+ anitya = 1227;
+
+ version# = "1.27.0";
+ source = remoteTar {
+ url = "https://go.dev/dl/go"+version+".src.tar.gz";
+ checksum = "Ookl2vP6KMfJuxaxX6nXZ1gnL43wZPl5GjpVsrI7IJiB4b3xr1PbnbYIOJ8v5jzG";
+ compress = gzip;
+ };
+ patches = [ "820480.patch" ];
+
+ env = [
+ "CC=cc",
+ "GOCACHE=/tmp/gocache",
+ "GOROOT_BOOTSTRAP=/system/go",
+ "TMPDIR=/dev/shm/go",
+ ];
+
+ enterSource = true;
+
+ exec = generic {
+ chdir = false;
+ 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 \
+ runtime/crash_cgo_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 ];
+}