internal/rosa: fix up dependencies
All checks were successful
Test / Create distribution (push) Successful in 1m0s
Test / Sandbox (push) Successful in 2m39s
Test / Hakurei (push) Successful in 3m52s
Test / ShareFS (push) Successful in 4m2s
Test / Hpkg (push) Successful in 4m32s
Test / Sandbox (race detector) (push) Successful in 5m7s
Test / Hakurei (race detector) (push) Successful in 6m19s
Test / Flake checks (push) Successful in 1m42s

These are no longer provided by the (incomplete) toybox implementations, so they need to be specified explicitly.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-01-30 01:36:47 +09:00
parent 20a8519044
commit fd8b2fd522
11 changed files with 34 additions and 17 deletions

View File

@@ -10,6 +10,8 @@ func (t Toolchain) newAttr() pkg.Artifact {
return t.New("attr-"+version, 0, []pkg.Artifact{ return t.New("attr-"+version, 0, []pkg.Artifact{
t.Load(Make), t.Load(Make),
t.Load(Perl), t.Load(Perl),
t.Load(Gawk),
t.Load(Coreutils),
}, nil, nil, ` }, nil, nil, `
ln -s ../../system/bin/perl /usr/bin ln -s ../../system/bin/perl /usr/bin
@@ -77,6 +79,8 @@ func (t Toolchain) newACL() pkg.Artifact {
) )
return t.New("acl-"+version, 0, []pkg.Artifact{ return t.New("acl-"+version, 0, []pkg.Artifact{
t.Load(Make), t.Load(Make),
t.Load(Gawk),
t.Load(Coreutils),
t.Load(Attr), t.Load(Attr),
}, nil, nil, ` }, nil, nil, `

View File

@@ -304,6 +304,9 @@ func (t Toolchain) newGperf() pkg.Artifact {
) )
return t.New("gperf-"+version, 0, []pkg.Artifact{ return t.New("gperf-"+version, 0, []pkg.Artifact{
t.Load(Make), t.Load(Make),
t.Load(Gawk),
t.Load(Coreutils),
t.Load(Diffutils),
}, nil, nil, ` }, nil, nil, `
cd "$(mktemp -d)" cd "$(mktemp -d)"
/usr/src/gperf/configure \ /usr/src/gperf/configure \

View File

@@ -20,19 +20,7 @@ cp -r /usr/src/go /work
cd /work/go/src cd /work/go/src
chmod -R +w .. chmod -R +w ..
ln -s ../system/bin/toybox /bin/pwd ./make.bash
cat << EOF > /bin/hostname
#!/bin/sh
echo cure
EOF
chmod +x /bin/hostname
rm \
cmd/objdump/objdump_test.go \
syscall/creds_test.go \
net/multicast_test.go
./all.bash
cd /work/ cd /work/
mkdir system/ mkdir system/
mv go/ system/ mv go/ system/

View File

@@ -32,6 +32,7 @@ func (t Toolchain) newHakurei(script string) pkg.Artifact {
t.Load(Wayland), t.Load(Wayland),
t.Load(WaylandProtocols), t.Load(WaylandProtocols),
}, nil, []string{ }, nil, []string{
"CGO_ENABLED=1",
"GOCACHE=/tmp/gocache", "GOCACHE=/tmp/gocache",
"CC=clang -O3 -Werror", "CC=clang -O3 -Werror",
}, ` }, `
@@ -193,7 +194,7 @@ func main() {
func init() { func init() {
artifactsF[Hakurei] = func(t Toolchain) pkg.Artifact { artifactsF[Hakurei] = func(t Toolchain) pkg.Artifact {
return t.newHakurei(` return t.newHakurei(`
mkdir -p /work/system/{bin,libexec/hakurei} mkdir -p /work/system/libexec/hakurei/
echo '# Building hakurei.' echo '# Building hakurei.'
go generate -v ./... go generate -v ./...
@@ -210,9 +211,11 @@ echo '# Testing hakurei.'
go test -ldflags='-buildid= -extldflags=-static' ./... go test -ldflags='-buildid= -extldflags=-static' ./...
echo echo
mv \ mkdir -p /work/system/bin/
/work/system/libexec/hakurei/{hakurei,sharefs} \ (cd /work/system/libexec/hakurei && mv \
/work/system/bin hakurei \
sharefs \
../../bin/)
`) `)
} }
artifactsF[HakureiDist] = func(t Toolchain) pkg.Artifact { artifactsF[HakureiDist] = func(t Toolchain) pkg.Artifact {

View File

@@ -14,6 +14,8 @@ func (t Toolchain) newLibexpat() pkg.Artifact {
return t.New("libexpat-"+version, 0, []pkg.Artifact{ return t.New("libexpat-"+version, 0, []pkg.Artifact{
t.Load(Make), t.Load(Make),
t.Load(Bash), t.Load(Bash),
t.Load(Gawk),
t.Load(Coreutils),
}, nil, nil, ` }, nil, nil, `
cd "$(mktemp -d)" cd "$(mktemp -d)"
/usr/src/libexpat/configure \ /usr/src/libexpat/configure \

View File

@@ -12,7 +12,9 @@ func (t Toolchain) newLibseccomp() pkg.Artifact {
return t.New("libseccomp-"+version, 0, []pkg.Artifact{ return t.New("libseccomp-"+version, 0, []pkg.Artifact{
t.Load(Make), t.Load(Make),
t.Load(Bash), t.Load(Bash),
t.Load(Gawk),
t.Load(Coreutils), t.Load(Coreutils),
t.Load(Diffutils),
t.Load(Gperf), t.Load(Gperf),
t.Load(KernelHeaders), t.Load(KernelHeaders),

View File

@@ -13,6 +13,9 @@ func (t Toolchain) newLibxml2() pkg.Artifact {
) )
return t.New("libxml2-"+version, 0, []pkg.Artifact{ return t.New("libxml2-"+version, 0, []pkg.Artifact{
t.Load(Make), t.Load(Make),
t.Load(Gawk),
t.Load(Coreutils),
t.Load(Diffutils),
t.Load(XZ), t.Load(XZ),
}, nil, nil, ` }, nil, nil, `
cd /usr/src/ cd /usr/src/

View File

@@ -9,6 +9,8 @@ func (t Toolchain) newPkgConfig() pkg.Artifact {
) )
return t.New("pkg-config-"+version, 0, []pkg.Artifact{ return t.New("pkg-config-"+version, 0, []pkg.Artifact{
t.Load(Make), t.Load(Make),
t.Load(Gawk),
t.Load(Coreutils),
}, nil, nil, ` }, nil, nil, `
cd "$(mktemp -d)" cd "$(mktemp -d)"
/usr/src/pkg-config/configure \ /usr/src/pkg-config/configure \

View File

@@ -13,6 +13,8 @@ func (t Toolchain) newWayland() pkg.Artifact {
t.Load(PkgConfig), t.Load(PkgConfig),
t.Load(CMake), t.Load(CMake),
t.Load(Ninja), t.Load(Ninja),
t.Load(Gawk),
t.Load(Diffutils),
t.Load(Libffi), t.Load(Libffi),
t.Load(Libexpat), t.Load(Libexpat),

View File

@@ -9,6 +9,8 @@ func (t Toolchain) newXproto() pkg.Artifact {
) )
return t.New("xproto-"+version, 0, []pkg.Artifact{ return t.New("xproto-"+version, 0, []pkg.Artifact{
t.Load(Make), t.Load(Make),
t.Load(Gawk),
t.Load(Coreutils),
t.Load(PkgConfig), t.Load(PkgConfig),
}, nil, nil, ` }, nil, nil, `
cd "$(mktemp -d)" cd "$(mktemp -d)"
@@ -32,6 +34,8 @@ func (t Toolchain) newLibXau() pkg.Artifact {
) )
return t.New("libXau-"+version, 0, []pkg.Artifact{ return t.New("libXau-"+version, 0, []pkg.Artifact{
t.Load(Make), t.Load(Make),
t.Load(Gawk),
t.Load(Coreutils),
t.Load(PkgConfig), t.Load(PkgConfig),
t.Load(Xproto), t.Load(Xproto),

View File

@@ -9,6 +9,8 @@ func (t Toolchain) newXCBProto() pkg.Artifact {
) )
return t.New("xcb-proto-"+version, 0, []pkg.Artifact{ return t.New("xcb-proto-"+version, 0, []pkg.Artifact{
t.Load(Make), t.Load(Make),
t.Load(Gawk),
t.Load(Coreutils),
t.Load(Python), t.Load(Python),
}, nil, nil, ` }, nil, nil, `
cd "$(mktemp -d)" cd "$(mktemp -d)"
@@ -33,6 +35,8 @@ func (t Toolchain) newXCB() pkg.Artifact {
) )
return t.New("xcb-"+version, 0, []pkg.Artifact{ return t.New("xcb-"+version, 0, []pkg.Artifact{
t.Load(Make), t.Load(Make),
t.Load(Gawk),
t.Load(Coreutils),
t.Load(Python), t.Load(Python),
t.Load(PkgConfig), t.Load(PkgConfig),