aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/libpsl.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-03-01 23:54:40 +0900
committerOphestra <cat@gensokyo.uk>2026-03-02 01:24:50 +0900
commitcc60e0d15d79916a69c8a1caeb3c4611351bb6c4 (patch)
tree67f4f59ed7ba7b18af51338e56ffa8d9acf52da6 /internal/rosa/libpsl.go
parent9deaf853f0676ee4475468bffd35aae7e1160a74 (diff)
internal/rosa/make: migrate to helper interface
This also updates all affected artifacts to use new behaviour. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/libpsl.go')
-rw-r--r--internal/rosa/libpsl.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/internal/rosa/libpsl.go b/internal/rosa/libpsl.go
index 6b0bbf49..27b382f5 100644
--- a/internal/rosa/libpsl.go
+++ b/internal/rosa/libpsl.go
@@ -7,22 +7,20 @@ func (t Toolchain) newLibpsl() pkg.Artifact {
version = "0.21.5"
checksum = "XjfxSzh7peG2Vg4vJlL8z4JZJLcXqbuP6pLWkrGCmRxlnYUFTKNBqWGHCxEOlCad"
)
- return t.NewViaMake("libpsl", version, pkg.NewHTTPGetTar(
+ return t.NewPackage("libpsl", version, pkg.NewHTTPGetTar(
nil, "https://github.com/rockdaboot/libpsl/releases/download/"+
version+"/libpsl-"+version+".tar.gz",
mustDecode(checksum),
pkg.TarGzip,
- ), &MakeAttr{
+ ), &PackageAttr{
Writable: true,
ScriptEarly: `
-cd /usr/src/libpsl
-
test_disable() { chmod +w "$2" && echo "$1" > "$2"; }
test_disable 'int main(){return 0;}' tests/test-is-public-builtin.c
`,
- },
- t.Load(Python),
+ }, (*MakeHelper)(nil),
+ Python,
)
}
func init() { artifactsF[Libpsl] = Toolchain.newLibpsl }