All checks were successful
Test / Create distribution (push) Successful in 50s
Test / Sandbox (push) Successful in 2m34s
Test / Hakurei (push) Successful in 3m46s
Test / ShareFS (push) Successful in 3m59s
Test / Hpkg (push) Successful in 4m32s
Test / Sandbox (race detector) (push) Successful in 5m0s
Test / Hakurei (race detector) (push) Successful in 6m8s
Test / Flake checks (push) Successful in 1m36s
This alleviates scheduler overhead when curing many artifacts. Signed-off-by: Ophestra <cat@gensokyo.uk>
30 lines
761 B
Go
30 lines
761 B
Go
package rosa
|
|
|
|
import "hakurei.app/internal/pkg"
|
|
|
|
func (t Toolchain) newLibffi() pkg.Artifact {
|
|
const (
|
|
version = "3.4.5"
|
|
checksum = "apIJzypF4rDudeRoI_n3K7N-zCeBLTbQlHRn9NSAZqdLAWA80mR0gXPTpHsL7oMl"
|
|
)
|
|
return t.New("libffi-"+version, false, []pkg.Artifact{
|
|
t.Load(Make),
|
|
t.Load(KernelHeaders),
|
|
}, nil, nil, `
|
|
cd "$(mktemp -d)"
|
|
/usr/src/libffi/configure \
|
|
--prefix=/system \
|
|
--build="${ROSA_TRIPLE}" \
|
|
--enable-static
|
|
make "-j$(nproc)" check
|
|
make DESTDIR=/work install
|
|
`, pkg.Path(AbsUsrSrc.Append("libffi"), false, pkg.NewHTTPGetTar(
|
|
nil,
|
|
"https://github.com/libffi/libffi/releases/download/"+
|
|
"v"+version+"/libffi-"+version+".tar.gz",
|
|
mustDecode(checksum),
|
|
pkg.TarGzip,
|
|
)))
|
|
}
|
|
func init() { artifactsF[Libffi] = Toolchain.newLibffi }
|