aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/gnu.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-02-17 00:32:04 +0900
committerOphestra <cat@gensokyo.uk>2026-02-17 00:32:04 +0900
commita3515a6ef5f26d2a3a863c727457ad5078b13576 (patch)
tree651b0831f405b616c5bfdd978bbd3370321a552e /internal/rosa/gnu.go
parent7f05baab286b2ff5ac56595d8caae129e46a2079 (diff)
internal/rosa: bison artifact
Required by dtc, which is required by qemu. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/gnu.go')
-rw-r--r--internal/rosa/gnu.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/internal/rosa/gnu.go b/internal/rosa/gnu.go
index 0e9614eb..a5a79a4a 100644
--- a/internal/rosa/gnu.go
+++ b/internal/rosa/gnu.go
@@ -23,6 +23,23 @@ chmod +w tests/test-c32ispunct.sh && echo '#!/bin/sh' > tests/test-c32ispunct.sh
}
func init() { artifactsF[M4] = Toolchain.newM4 }
+func (t Toolchain) newBison() pkg.Artifact {
+ const (
+ version = "3.8.2"
+ checksum = "BhRM6K7URj1LNOkIDCFDctSErLS-Xo5d9ba9seg10o6ACrgC1uNhED7CQPgIY29Y"
+ )
+ return t.NewViaMake("bison", version, pkg.NewHTTPGetTar(
+ nil, "https://ftpmirror.gnu.org/gnu/bison/bison-"+version+".tar.gz",
+ mustDecode(checksum),
+ pkg.TarGzip,
+ ), nil,
+ t.Load(M4),
+ t.Load(Diffutils),
+ t.Load(Sed),
+ )
+}
+func init() { artifactsF[Bison] = Toolchain.newBison }
+
func (t Toolchain) newSed() pkg.Artifact {
const (
version = "4.9"