internal/rosa/package: byacc
Test / Create distribution (push) Successful in 2m9s
Test / Sandbox (push) Successful in 7m31s
Test / ShareFS (push) Successful in 9m54s
Test / Sandbox (race detector) (push) Successful in 2m27s
Test / Hakurei (push) Successful in 2m58s
Test / Hakurei (race detector) (push) Successful in 4m0s
Test / Flake checks (push) Successful in 1m16s

Much cleaner than bison and compiles much faster. This should be used whenever possible.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-07-24 17:04:42 +09:00
parent 1a8212ee02
commit 6c2ca507b9
7 changed files with 30 additions and 11 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ import (
) )
func TestLLVMInputs(t *testing.T) { func TestLLVMInputs(t *testing.T) {
const wantInputCount = 467 const wantInputCount = 473
_, llvm := rosa.Native().Std().MustLoad(rosa.H("llvm")) _, llvm := rosa.Native().Std().MustLoad(rosa.H("llvm"))
var n int var n int
+2 -1
View File
@@ -18,13 +18,14 @@ package awk {
omitDefaults = true; omitDefaults = true;
inPlace = true; inPlace = true;
skipConfigure = true; skipConfigure = true;
make = [ "YACC='yacc -d -b awkgram'" ];
preCheck = "install -vD a.out /system/bin/awk\n"; preCheck = "install -vD a.out /system/bin/awk\n";
install = "install -vD a.out /work/system/bin/awk"; install = "install -vD a.out /work/system/bin/awk";
}; };
inputs = [ inputs = [
m4, m4,
bison, byacc,
diffutils, diffutils,
]; ];
} }
+1 -3
View File
@@ -10,9 +10,6 @@ package bison {
compress = gzip; compress = gzip;
}; };
// awk dependency loop
toyboxEarly = true;
exec = make { exec = make {
check = [ check = [
"TESTSUITEFLAGS=" + jobsFlagE + "' " + skipGNUTests { "TESTSUITEFLAGS=" + jobsFlagE + "' " + skipGNUTests {
@@ -27,5 +24,6 @@ package bison {
]; ];
}; };
toyboxEarly = true;
inputs = [ m4 ]; inputs = [ m4 ];
} }
+22
View File
@@ -0,0 +1,22 @@
package byacc {
description = "Berkeley Yacc";
website = "https://invisible-island.net/byacc";
anitya = 233;
version# = "20260126";
source = remoteTar {
url = "https://invisible-island.net/archives/byacc/"+
"byacc-"+version+".tgz";
compress = gzip;
checksum = "3IXzewZmFUW3hkFKBuweR0hUSftlI2zE0lBZf16I8oK3mFEyj51FzVv1wvA12uoC";
};
// awk dependency loop
toyboxEarly = true;
// test suite assumes writable source
writable = true;
chmod = true;
exec = make {};
}
+1 -3
View File
@@ -12,9 +12,6 @@ package m4 {
compress = bzip2; compress = bzip2;
}; };
// awk dependency loop
toyboxEarly = true;
writable = true; writable = true;
early = ` early = `
chmod +w tests/test-c32ispunct.sh && echo '#!/bin/sh' > tests/test-c32ispunct.sh chmod +w tests/test-c32ispunct.sh && echo '#!/bin/sh' > tests/test-c32ispunct.sh
@@ -22,6 +19,7 @@ chmod +w tests/test-c32ispunct.sh && echo '#!/bin/sh' > tests/test-c32ispunct.sh
exec = make {}; exec = make {};
toyboxEarly = true;
inputs = [ inputs = [
diffutils, diffutils,
+2 -2
View File
@@ -28,7 +28,7 @@ package iproute2 {
"prefix": "/system"; "prefix": "/system";
"color": "auto"; "color": "auto";
}; };
make = [ "CC=cc" ]; make = [ "CC=cc", "YACC=yacc" ];
// wants root // wants root
skipCheck = true; skipCheck = true;
}; };
@@ -36,7 +36,7 @@ package iproute2 {
inputs = [ inputs = [
pkg-config, pkg-config,
m4, m4,
bison, byacc,
flex, flex,
libbpf, libbpf,
+1 -1
View File
@@ -562,7 +562,7 @@ package xkbcomp {
automake, automake,
libtool, libtool,
pkg-config, pkg-config,
bison, byacc,
util-macros, util-macros,
libxkbfile, libxkbfile,