internal/rosa/gnu: gnutls disable arm64 hardware acceleration
All checks were successful
Test / Create distribution (push) Successful in 1m36s
Test / ShareFS (push) Successful in 7m39s
Test / Sandbox (race detector) (push) Successful in 8m11s
Test / Hakurei (race detector) (push) Successful in 9m55s
Test / Sandbox (push) Successful in 1m43s
Test / Hakurei (push) Successful in 2m57s
Test / Flake checks (push) Successful in 1m29s

Hardware on arm64 is quite messy, this miscompiles.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-04-04 22:37:54 +09:00
parent 04fe3b24ce
commit 0188a3f0c7

View File

@@ -1,6 +1,10 @@
package rosa package rosa
import "hakurei.app/internal/pkg" import (
"runtime"
"hakurei.app/internal/pkg"
)
func (t Toolchain) newM4() (pkg.Artifact, string) { func (t Toolchain) newM4() (pkg.Artifact, string) {
const ( const (
@@ -876,6 +880,15 @@ func (t Toolchain) newGnuTLS() (pkg.Artifact, string) {
version = "3.8.12" version = "3.8.12"
checksum = "VPdP-nRydQQRJcnma-YA7CJYA_kzTJ2rb3QFeP6D27emSyInJ8sQ-Wzn518I38dl" checksum = "VPdP-nRydQQRJcnma-YA7CJYA_kzTJ2rb3QFeP6D27emSyInJ8sQ-Wzn518I38dl"
) )
var configureExtra []KV
switch runtime.GOARCH {
case "arm64":
configureExtra = []KV{
{"disable-hardware-acceleration"},
}
}
return t.NewPackage("gnutls", version, t.NewViaGit( return t.NewPackage("gnutls", version, t.NewViaGit(
"https://gitlab.com/gnutls/gnutls.git", "https://gitlab.com/gnutls/gnutls.git",
"refs/tags/"+version, "refs/tags/"+version,
@@ -992,7 +1005,7 @@ index 1b78b8cf1..350156a86 100644
}, &MakeHelper{ }, &MakeHelper{
Generate: "./bootstrap --skip-po --no-git --gnulib-srcdir=gnulib", Generate: "./bootstrap --skip-po --no-git --gnulib-srcdir=gnulib",
Configure: []KV{ Configure: append([]KV{
{"disable-doc"}, {"disable-doc"},
{"disable-openssl-compatibility"}, {"disable-openssl-compatibility"},
@@ -1001,7 +1014,7 @@ index 1b78b8cf1..350156a86 100644
{"with-zlib", "link"}, {"with-zlib", "link"},
{"with-zstd", "link"}, {"with-zstd", "link"},
}, }, configureExtra...),
}, },
Gzip, Gzip,
Automake, Automake,