diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-01-30 01:36:47 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-01-30 03:11:16 +0900 |
| commit | fd8b2fd52229b10092fca7fb520ed33e14f3f50c (patch) | |
| tree | 9ff7dbb102ed1ed8747cb36ad5d24e0dc70e1429 /internal/rosa/hakurei.go | |
| parent | 20a85190442e0f3262038dba37e602b456fcebab (diff) | |
internal/rosa: fix up dependencies
These are no longer provided by the (incomplete) toybox implementations, so they need to be specified explicitly.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/hakurei.go')
| -rw-r--r-- | internal/rosa/hakurei.go | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/internal/rosa/hakurei.go b/internal/rosa/hakurei.go index 1fdf73e7..41572965 100644 --- a/internal/rosa/hakurei.go +++ b/internal/rosa/hakurei.go @@ -32,6 +32,7 @@ func (t Toolchain) newHakurei(script string) pkg.Artifact { t.Load(Wayland), t.Load(WaylandProtocols), }, nil, []string{ + "CGO_ENABLED=1", "GOCACHE=/tmp/gocache", "CC=clang -O3 -Werror", }, ` @@ -193,7 +194,7 @@ func main() { func init() { artifactsF[Hakurei] = func(t Toolchain) pkg.Artifact { return t.newHakurei(` -mkdir -p /work/system/{bin,libexec/hakurei} +mkdir -p /work/system/libexec/hakurei/ echo '# Building hakurei.' go generate -v ./... @@ -210,9 +211,11 @@ echo '# Testing hakurei.' go test -ldflags='-buildid= -extldflags=-static' ./... echo -mv \ - /work/system/libexec/hakurei/{hakurei,sharefs} \ - /work/system/bin +mkdir -p /work/system/bin/ +(cd /work/system/libexec/hakurei && mv \ + hakurei \ + sharefs \ + ../../bin/) `) } artifactsF[HakureiDist] = func(t Toolchain) pkg.Artifact { |
