internal/rosa/ninja: build in $TMPDIR
All checks were successful
Test / Create distribution (push) Successful in 32s
Test / Sandbox (push) Successful in 2m44s
Test / Hakurei (push) Successful in 4m19s
Test / ShareFS (push) Successful in 4m15s
Test / Hpkg (push) Successful in 4m55s
Test / Sandbox (race detector) (push) Successful in 5m15s
Test / Hakurei (race detector) (push) Successful in 3m36s
Test / Flake checks (push) Successful in 1m45s

This used to build in /work/system/bin/ and unfortunately leaves its garbage there. This behaviour is from very early stages of this package, and was never fixed. This change updates it to use the "$(mktemp -d)" convention that every other artifact uses.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-01-30 00:36:43 +09:00
parent bc3dd6fbb0
commit 8c4fd00c50

View File

@@ -12,12 +12,15 @@ func (t Toolchain) newNinja() pkg.Artifact {
t.Load(Python), t.Load(Python),
t.Load(Bash), t.Load(Bash),
}, nil, nil, ` }, nil, nil, `
mkdir -p /work/system/bin/ && cd /work/system/bin/ cd "$(mktemp -d)"
python3 /usr/src/ninja/configure.py \ python3 /usr/src/ninja/configure.py \
--bootstrap \ --bootstrap \
--gtest-source-dir=/usr/src/googletest --gtest-source-dir=/usr/src/googletest
./ninja all ./ninja all
./ninja_test ./ninja_test
mkdir -p /work/system/bin/
cp ninja /work/system/bin/
`, pkg.Path(AbsUsrSrc.Append("googletest"), false, `, pkg.Path(AbsUsrSrc.Append("googletest"), false,
pkg.NewHTTPGetTar( pkg.NewHTTPGetTar(
nil, "https://github.com/google/googletest/releases/download/"+ nil, "https://github.com/google/googletest/releases/download/"+