forked from security/hakurei
internal/rosa/ninja: build in $TMPDIR
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:
@@ -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/"+
|
||||||
|
|||||||
Reference in New Issue
Block a user