aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/musl.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/rosa/musl.go')
-rw-r--r--internal/rosa/musl.go15
1 files changed, 7 insertions, 8 deletions
diff --git a/internal/rosa/musl.go b/internal/rosa/musl.go
index a90c5be3..78487226 100644
--- a/internal/rosa/musl.go
+++ b/internal/rosa/musl.go
@@ -48,18 +48,17 @@ rmdir -v /work/lib
), nil, slices.Concat([]string{
"ROSA_MUSL_TARGET=" + target,
}, attr.Env), `
-# expected to be writable in copies
-chmod -R +w /usr/src/musl/
-
cd "$(mktemp -d)"
/usr/src/musl/configure \
--prefix=/system \
--target="${ROSA_TRIPLE}"
make "-j$(nproc)" DESTDIR=/work "${ROSA_MUSL_TARGET}"
-`+script, pkg.Path(AbsUsrSrc.Append("musl"), true, pkg.NewHTTPGetTar(
- nil,
- "https://musl.libc.org/releases/musl-"+version+".tar.gz",
- mustDecode(checksum),
- pkg.TarGzip,
+`+script, pkg.Path(AbsUsrSrc.Append("musl"), false, t.NewPatchedSource(
+ // expected to be writable in copies
+ "musl", version, pkg.NewHTTPGetTar(
+ nil, "https://musl.libc.org/releases/musl-"+version+".tar.gz",
+ mustDecode(checksum),
+ pkg.TarGzip,
+ ), false,
)))
}