diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-01-31 03:38:16 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-01-31 05:01:22 +0900 |
| commit | 5f81aac0e23e0197b449373912aa995dd7bb004a (patch) | |
| tree | ec537ec178b0d3820d22754b18fe222a710d6212 /internal/rosa/libffi.go | |
| parent | 47490823be4d81643ed3895263feec1da64f751e (diff) | |
internal/rosa: make helper
This change only migrates artifacts that remain unchanged under the helper, so this change should not cause any rebuilds.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/libffi.go')
| -rw-r--r-- | internal/rosa/libffi.go | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/internal/rosa/libffi.go b/internal/rosa/libffi.go index b04ce863..01dcf834 100644 --- a/internal/rosa/libffi.go +++ b/internal/rosa/libffi.go @@ -7,26 +7,17 @@ func (t Toolchain) newLibffi() pkg.Artifact { version = "3.4.5" checksum = "apIJzypF4rDudeRoI_n3K7N-zCeBLTbQlHRn9NSAZqdLAWA80mR0gXPTpHsL7oMl" ) - return t.New("libffi-"+version, 0, []pkg.Artifact{ - t.Load(Make), - t.Load(Gawk), - t.Load(Coreutils), - - 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/"+ + return t.NewViaMake("libffi", version, pkg.NewHTTPGetTar( + nil, "https://github.com/libffi/libffi/releases/download/"+ "v"+version+"/libffi-"+version+".tar.gz", mustDecode(checksum), pkg.TarGzip, - ))) + ), &MakeAttr{ + Configure: [][2]string{ + {"enable-static"}, + }, + }, + t.Load(KernelHeaders), + ) } func init() { artifactsF[Libffi] = Toolchain.newLibffi } |
