internal/rosa: libpsl artifact
All checks were successful
Test / Create distribution (push) Successful in 33s
Test / Sandbox (push) Successful in 1m46s
Test / Hakurei (push) Successful in 2m59s
Test / ShareFS (push) Successful in 3m2s
Test / Hpkg (push) Successful in 4m2s
Test / Sandbox (race detector) (push) Successful in 5m14s
Test / Hakurei (race detector) (push) Successful in 6m17s
Test / Flake checks (push) Successful in 2m28s
All checks were successful
Test / Create distribution (push) Successful in 33s
Test / Sandbox (push) Successful in 1m46s
Test / Hakurei (push) Successful in 2m59s
Test / ShareFS (push) Successful in 3m2s
Test / Hpkg (push) Successful in 4m2s
Test / Sandbox (race detector) (push) Successful in 5m14s
Test / Hakurei (race detector) (push) Successful in 6m17s
Test / Flake checks (push) Successful in 2m28s
Required by curl. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -33,6 +33,7 @@ const (
|
|||||||
KernelHeaders
|
KernelHeaders
|
||||||
LibXau
|
LibXau
|
||||||
Libexpat
|
Libexpat
|
||||||
|
Libpsl
|
||||||
Libffi
|
Libffi
|
||||||
Libgd
|
Libgd
|
||||||
Libtool
|
Libtool
|
||||||
@@ -118,6 +119,7 @@ func ResolveName(name string) (p PArtifact, ok bool) {
|
|||||||
"kernel-headers": KernelHeaders,
|
"kernel-headers": KernelHeaders,
|
||||||
"libXau": LibXau,
|
"libXau": LibXau,
|
||||||
"libexpat": Libexpat,
|
"libexpat": Libexpat,
|
||||||
|
"libpsl": Libpsl,
|
||||||
"libseccomp": Libseccomp,
|
"libseccomp": Libseccomp,
|
||||||
"libxml2": Libxml2,
|
"libxml2": Libxml2,
|
||||||
"libffi": Libffi,
|
"libffi": Libffi,
|
||||||
|
|||||||
28
internal/rosa/libpsl.go
Normal file
28
internal/rosa/libpsl.go
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
package rosa
|
||||||
|
|
||||||
|
import "hakurei.app/internal/pkg"
|
||||||
|
|
||||||
|
func (t Toolchain) newLibpsl() pkg.Artifact {
|
||||||
|
const (
|
||||||
|
version = "0.21.5"
|
||||||
|
checksum = "XjfxSzh7peG2Vg4vJlL8z4JZJLcXqbuP6pLWkrGCmRxlnYUFTKNBqWGHCxEOlCad"
|
||||||
|
)
|
||||||
|
return t.NewViaMake("libpsl", version, pkg.NewHTTPGetTar(
|
||||||
|
nil, "https://github.com/rockdaboot/libpsl/releases/download/"+
|
||||||
|
version+"/libpsl-"+version+".tar.gz",
|
||||||
|
mustDecode(checksum),
|
||||||
|
pkg.TarGzip,
|
||||||
|
), &MakeAttr{
|
||||||
|
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),
|
||||||
|
)
|
||||||
|
}
|
||||||
|
func init() { artifactsF[Libpsl] = Toolchain.newLibpsl }
|
||||||
Reference in New Issue
Block a user