internal/rosa/make: migrate to helper interface

This also updates all affected artifacts to use new behaviour.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-03-01 23:54:40 +09:00
parent 9deaf853f0
commit cc60e0d15d
41 changed files with 698 additions and 740 deletions

View File

@@ -7,27 +7,24 @@ func (t Toolchain) newMuslObstack() pkg.Artifact {
version = "1.2.3"
checksum = "tVRY_KjIlkkMszcaRlkKdBVQHIXTT_T_TiMxbwErlILXrOBosocg8KklppZhNdCG"
)
return t.NewViaMake("musl-obstack", version, pkg.NewHTTPGetTar(
return t.NewPackage("musl-obstack", version, pkg.NewHTTPGetTar(
nil, "https://github.com/void-linux/musl-obstack/archive/refs/tags/"+
"v"+version+".tar.gz",
mustDecode(checksum),
pkg.TarGzip,
), &MakeAttr{
Writable: true,
), &PackageAttr{
Env: []string{
"CC=cc -fPIC",
},
ScriptEarly: `
cd /usr/src/musl-obstack
./bootstrap.sh
`,
}, &MakeHelper{
Generate: "./bootstrap.sh",
},
t.Load(M4),
t.Load(Perl),
t.Load(Autoconf),
t.Load(Automake),
t.Load(Libtool),
t.Load(PkgConfig),
M4,
Perl,
Autoconf,
Automake,
Libtool,
PkgConfig,
)
}
func init() { artifactsF[MuslObstack] = Toolchain.newMuslObstack }