From bc3dd6fbb0048bfdbb50f90873c0f7e3f952981a Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 30 Jan 2026 00:29:15 +0900 Subject: 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 --- internal/rosa/cmake.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'internal/rosa/cmake.go') diff --git a/internal/rosa/cmake.go b/internal/rosa/cmake.go index b15ec9d5..5dab313d 100644 --- a/internal/rosa/cmake.go +++ b/internal/rosa/cmake.go @@ -17,9 +17,6 @@ func (t Toolchain) newCMake() pkg.Artifact { t.Load(Make), t.Load(KernelHeaders), }, nil, nil, ` -# expected to be writable in the copy made during bootstrap -chmod -R +w /usr/src/cmake/Tests - cd "$(mktemp -d)" /usr/src/cmake/bootstrap \ --prefix=/system \ @@ -28,13 +25,15 @@ cd "$(mktemp -d)" -DCMAKE_USE_OPENSSL=OFF make "-j$(nproc)" make DESTDIR=/work install -`, pkg.Path(AbsUsrSrc.Append("cmake"), true, - pkg.NewHTTPGetTar( +`, pkg.Path(AbsUsrSrc.Append("cmake"), true, t.NewPatchedSource( + // expected to be writable in the copy made during bootstrap + "cmake", version, pkg.NewHTTPGetTar( nil, "https://github.com/Kitware/CMake/releases/download/"+ "v"+version+"/cmake-"+version+".tar.gz", mustDecode(checksum), pkg.TarGzip, - ))) + ), false, + ))) } func init() { artifactsF[CMake] = Toolchain.newCMake } -- cgit v1.3.1