diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-01-30 00:29:15 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-01-30 00:29:44 +0900 |
| commit | bc3dd6fbb0048bfdbb50f90873c0f7e3f952981a (patch) | |
| tree | 5695198e3a709d40bbff335e73421be636f9efbb /internal/rosa/ninja.go | |
| parent | 616ed29edf92fb2d60962058a3e2c545d3b652ea (diff) | |
internal/rosa: chmod via patch helper
This works around the zfs overlay mount overhead and significantly reduces I/O in general.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/ninja.go')
| -rw-r--r-- | internal/rosa/ninja.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/rosa/ninja.go b/internal/rosa/ninja.go index 1eee63ef..5b84f8c4 100644 --- a/internal/rosa/ninja.go +++ b/internal/rosa/ninja.go @@ -12,7 +12,6 @@ func (t Toolchain) newNinja() pkg.Artifact { t.Load(Python), t.Load(Bash), }, nil, nil, ` -chmod -R +w /usr/src/ninja/ mkdir -p /work/system/bin/ && cd /work/system/bin/ python3 /usr/src/ninja/configure.py \ --bootstrap \ @@ -25,12 +24,13 @@ python3 /usr/src/ninja/configure.py \ "v1.16.0/googletest-1.16.0.tar.gz", mustDecode("NjLGvSbgPy_B-y-o1hdanlzEzaYeStFcvFGxpYV3KYlhrWWFRcugYhM3ZMzOA9B_"), pkg.TarGzip, - )), pkg.Path(AbsUsrSrc.Append("ninja"), true, - pkg.NewHTTPGetTar( + )), pkg.Path(AbsUsrSrc.Append("ninja"), true, t.NewPatchedSource( + "ninja", version, pkg.NewHTTPGetTar( nil, "https://github.com/ninja-build/ninja/archive/refs/tags/"+ "v"+version+".tar.gz", mustDecode(checksum), pkg.TarGzip, - ))) + ), false, + ))) } func init() { artifactsF[Ninja] = Toolchain.newNinja } |
