internal/rosa: replace busybox with toybox
All checks were successful
Test / Create distribution (push) Successful in 1m48s
Test / Sandbox (push) Successful in 4m0s
Test / ShareFS (push) Successful in 5m22s
Test / Hakurei (push) Successful in 5m26s
Test / Hpkg (push) Successful in 5m56s
Test / Sandbox (race detector) (push) Successful in 6m4s
Test / Hakurei (race detector) (push) Successful in 7m5s
Test / Flake checks (push) Successful in 2m2s

The busybox artifact does not run on aarch64, and the workarounds required for it to compile successfully on x86_64 is unacceptably shaky. This change fully replaces it with toybox.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-01-29 19:51:18 +09:00
parent 6c90e879da
commit abf96d2283
8 changed files with 21 additions and 7 deletions

View File

@@ -31,6 +31,7 @@ func (t Toolchain) newM4() pkg.Artifact {
)
return t.New("m4-"+version, false, []pkg.Artifact{
t.Load(Make),
t.Load(Coreutils),
}, nil, nil, `
cd /usr/src/m4
chmod +w tests/test-c32ispunct.sh && echo '#!/bin/sh' > tests/test-c32ispunct.sh
@@ -84,6 +85,7 @@ func (t Toolchain) newAutoconf() pkg.Artifact {
t.Load(M4),
t.Load(Perl),
t.Load(Bash),
t.Load(Coreutils),
}, nil, nil, `
cd "$(mktemp -d)"
/usr/src/autoconf/configure \
@@ -133,6 +135,9 @@ func (t Toolchain) newGettext() pkg.Artifact {
)
return t.New("gettext-"+version, false, []pkg.Artifact{
t.Load(Make),
t.Load(Coreutils),
t.Load(Gzip),
t.Load(Sed),
}, nil, nil, `
cd /usr/src/gettext
test_disable() { chmod +w "$2" && echo "$1" > "$2"; }
@@ -147,6 +152,8 @@ test_disable '#!/bin/sh' gettext-tools/tests/format-c-5
test_disable '#!/bin/sh' gettext-tools/gnulib-tests/test-c32ispunct.sh
test_disable 'int main(){return 0;}' gettext-tools/gnulib-tests/test-stdcountof-h.c
touch gettext-tools/misc/archive.dir.tar
cd "$(mktemp -d)"
/usr/src/gettext/configure \
--prefix=/system \
@@ -175,6 +182,7 @@ test_disable() { chmod +w "$2" && echo "$1" > "$2"; }
test_disable '#!/bin/sh' gnulib-tests/test-c32ispunct.sh
test_disable 'int main(){return 0;}' gnulib-tests/test-c32ispunct.c
test_disable '#!/bin/sh' tests/cmp
cd "$(mktemp -d)"
/usr/src/diffutils/configure \
@@ -315,7 +323,7 @@ cd "$(mktemp -d)"
--build="${ROSA_TRIPLE}"
make "-j$(nproc)"
make DESTDIR=/work install
`, pkg.Path(AbsUsrSrc.Append("gawk"), true, pkg.NewHTTPGetTar(
`, pkg.Path(AbsUsrSrc.Append("gawk"), false, pkg.NewHTTPGetTar(
nil, "https://ftp.gnu.org/gnu/gawk/gawk-"+version+".tar.gz",
mustDecode(checksum),
pkg.TarGzip,
@@ -333,9 +341,9 @@ func (t Toolchain) newFindutils() pkg.Artifact {
t.Load(XZ),
t.Load(Sed),
}, nil, nil, `
cd /usr/src
xzcat findutils.tar.xz | tar -x
mv 'findutils-`+version+`' findutils
cd /usr/src/
tar xf findutils.tar.xz
mv findutils-`+version+` findutils
cd findutils
echo '#!/bin/sh' > gnulib-tests/test-c32ispunct.sh