forked from rosa/hakurei
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
51e4426a4f
|
|||
|
316edeb17b
|
|||
|
8facae53c7
|
|||
|
7881bfd027
|
@@ -107,7 +107,7 @@ func skipGNUTests(tests ...int64) string {
|
|||||||
buf.WriteString(strconv.Itoa(int(n - 1)))
|
buf.WriteString(strconv.Itoa(int(n - 1)))
|
||||||
buf.WriteString(" ")
|
buf.WriteString(" ")
|
||||||
}
|
}
|
||||||
if i == len(tests)-1 || tests[i+1] != n+1 {
|
if i == len(tests)-1 || (tests[i+1] != n+1 && tests[i+1] != n+2) {
|
||||||
buf.WriteString(strconv.Itoa(int(n + 1)))
|
buf.WriteString(strconv.Itoa(int(n + 1)))
|
||||||
buf.WriteString("-")
|
buf.WriteString("-")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ func TestSkipGNUTests(t *testing.T) {
|
|||||||
}{
|
}{
|
||||||
{[]int64{764}, "1-763 765-"},
|
{[]int64{764}, "1-763 765-"},
|
||||||
{[]int64{764, 0xcafe, 37, 9}, "1-8 10-36 38-763 765-51965 51967-"},
|
{[]int64{764, 0xcafe, 37, 9}, "1-8 10-36 38-763 765-51965 51967-"},
|
||||||
|
{[]int64{168, 170, 623, 764}, "1-167 169 171-622 624-763 765-"},
|
||||||
{[]int64{1, 2, 0xbed}, "3-3052 3054-"},
|
{[]int64{1, 2, 0xbed}, "3-3052 3054-"},
|
||||||
{[]int64{3, 4}, "1-2 5-"},
|
{[]int64{3, 4}, "1-2 5-"},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ var (
|
|||||||
_musl = H("musl")
|
_musl = H("musl")
|
||||||
|
|
||||||
_bash = H("bash")
|
_bash = H("bash")
|
||||||
_gawk = H("gawk")
|
_awk = H("awk")
|
||||||
_pythonEarly = H("python-early")
|
_pythonEarly = H("python-early")
|
||||||
_coreutils = H("coreutils")
|
_coreutils = H("coreutils")
|
||||||
_diffutils = H("diffutils")
|
_diffutils = H("diffutils")
|
||||||
@@ -372,7 +372,7 @@ ln -s clang++ /work/system/bin/c++
|
|||||||
_perl,
|
_perl,
|
||||||
_diffutils,
|
_diffutils,
|
||||||
_bash,
|
_bash,
|
||||||
_gawk,
|
_awk,
|
||||||
_coreutils,
|
_coreutils,
|
||||||
_findutils,
|
_findutils,
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestLLVMInputs(t *testing.T) {
|
func TestLLVMInputs(t *testing.T) {
|
||||||
const wantInputCount = 431
|
const wantInputCount = 467
|
||||||
|
|
||||||
_, llvm := rosa.Native().Std().MustLoad(rosa.H("llvm"))
|
_, llvm := rosa.Native().Std().MustLoad(rosa.H("llvm"))
|
||||||
var n int
|
var n int
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ func (attr *MakeHelper) extra(flag int) P {
|
|||||||
extra := P{_make}
|
extra := P{_make}
|
||||||
if (attr == nil || !attr.OmitDefaults) && flag&TEarly == 0 {
|
if (attr == nil || !attr.OmitDefaults) && flag&TEarly == 0 {
|
||||||
extra = append(extra,
|
extra = append(extra,
|
||||||
_gawk,
|
_awk,
|
||||||
_coreutils,
|
_coreutils,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,8 +15,10 @@ package awk {
|
|||||||
chmod = true;
|
chmod = true;
|
||||||
|
|
||||||
exec = make {
|
exec = make {
|
||||||
|
omitDefaults = true;
|
||||||
inPlace = true;
|
inPlace = true;
|
||||||
skipConfigure = true;
|
skipConfigure = true;
|
||||||
|
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";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -10,10 +10,15 @@ package bison {
|
|||||||
compress = gzip;
|
compress = gzip;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// awk dependency loop
|
||||||
|
toyboxEarly = true;
|
||||||
|
|
||||||
exec = make {
|
exec = make {
|
||||||
check = [
|
check = [
|
||||||
"TESTSUITEFLAGS=" + jobsFlagE + "' " + skipGNUTests {
|
"TESTSUITEFLAGS=" + jobsFlagE + "' " + skipGNUTests {
|
||||||
tests = [
|
tests = [
|
||||||
|
// GNU-isms not implemented in toybox
|
||||||
|
168, 170, 623,
|
||||||
// clang miscompiles (SIGILL)
|
// clang miscompiles (SIGILL)
|
||||||
764,
|
764,
|
||||||
];
|
];
|
||||||
@@ -22,9 +27,5 @@ package bison {
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
inputs = [
|
inputs = [ m4 ];
|
||||||
m4,
|
|
||||||
diffutils,
|
|
||||||
sed,
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ package cairo {
|
|||||||
};
|
};
|
||||||
|
|
||||||
inputs = [
|
inputs = [
|
||||||
gawk,
|
awk,
|
||||||
|
|
||||||
zlib,
|
zlib,
|
||||||
libpng,
|
libpng,
|
||||||
|
|||||||
@@ -12,6 +12,9 @@ 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
|
||||||
@@ -220,25 +223,6 @@ test_disable '#!/bin/sh' tests/need-filename
|
|||||||
exec = make {};
|
exec = make {};
|
||||||
}
|
}
|
||||||
|
|
||||||
package gawk {
|
|
||||||
description = "an implementation of awk with GNU extensions";
|
|
||||||
website = "https://www.gnu.org/software/gawk";
|
|
||||||
anitya = 868;
|
|
||||||
|
|
||||||
version# = "5.4.0";
|
|
||||||
source = remoteTar {
|
|
||||||
url = "https://ftpmirror.gnu.org/gnu/gawk/gawk-"+version+".tar.gz";
|
|
||||||
checksum = "m0RkIolC-PI7EY5q8pcx5Y-0twlIW0Yp3wXXmV-QaHorSdf8BhZ7kW9F8iWomz0C";
|
|
||||||
compress = gzip;
|
|
||||||
};
|
|
||||||
|
|
||||||
toyboxEarly = true;
|
|
||||||
exec = make {
|
|
||||||
// dependency loop
|
|
||||||
skipCheck = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
package grep {
|
package grep {
|
||||||
description = "searches input for lines containing a match to a pattern";
|
description = "searches input for lines containing a match to a pattern";
|
||||||
website = "https://www.gnu.org/software/grep";
|
website = "https://www.gnu.org/software/grep";
|
||||||
@@ -451,7 +435,7 @@ package texinfo {
|
|||||||
|
|
||||||
runtime = [
|
runtime = [
|
||||||
perl,
|
perl,
|
||||||
gawk,
|
awk,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ rm -v "/work/system/lib/modules/$(make -f /usr/src/kernel/Makefile kernelversion
|
|||||||
perl,
|
perl,
|
||||||
bc,
|
bc,
|
||||||
sed,
|
sed,
|
||||||
gawk,
|
awk,
|
||||||
coreutils,
|
coreutils,
|
||||||
diffutils,
|
diffutils,
|
||||||
bash,
|
bash,
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ cp -r \
|
|||||||
inputs = [
|
inputs = [
|
||||||
perl,
|
perl,
|
||||||
python,
|
python,
|
||||||
gawk,
|
awk,
|
||||||
coreutils,
|
coreutils,
|
||||||
|
|
||||||
zlib,
|
zlib,
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ echo 'int main(){}' > tests/sanity-test.c
|
|||||||
};
|
};
|
||||||
|
|
||||||
inputs = [
|
inputs = [
|
||||||
gawk,
|
awk,
|
||||||
diffutils,
|
diffutils,
|
||||||
|
|
||||||
libffi,
|
libffi,
|
||||||
|
|||||||
@@ -720,7 +720,7 @@ package xserver {
|
|||||||
};
|
};
|
||||||
|
|
||||||
inputs = [
|
inputs = [
|
||||||
gawk,
|
awk,
|
||||||
|
|
||||||
xorgproto,
|
xorgproto,
|
||||||
libxtrans,
|
libxtrans,
|
||||||
@@ -791,7 +791,7 @@ package xwayland {
|
|||||||
|
|
||||||
inputs = [
|
inputs = [
|
||||||
bash,
|
bash,
|
||||||
gawk,
|
awk,
|
||||||
|
|
||||||
mesa,
|
mesa,
|
||||||
libglvnd,
|
libglvnd,
|
||||||
|
|||||||
Reference in New Issue
Block a user