aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/elfutils.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/elfutils.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/elfutils.go')
-rw-r--r--internal/rosa/elfutils.go24
1 files changed, 12 insertions, 12 deletions
diff --git a/internal/rosa/elfutils.go b/internal/rosa/elfutils.go
index ea9dcb67..5c47ebae 100644
--- a/internal/rosa/elfutils.go
+++ b/internal/rosa/elfutils.go
@@ -7,18 +7,18 @@ func (t Toolchain) newElfutils() pkg.Artifact {
version = "0.194"
checksum = "Q3XUygUPv9vR1TkWucwUsQ8Kb1_F6gzk-KMPELr3cC_4AcTrprhVPMvN0CKkiYRa"
)
- return t.NewViaMake("elfutils", version, pkg.NewHTTPGetTar(
+ return t.NewPackage("elfutils", version, pkg.NewHTTPGetTar(
nil, "https://sourceware.org/elfutils/ftp/"+
version+"/elfutils-"+version+".tar.bz2",
mustDecode(checksum),
pkg.TarBzip2,
- ), &MakeAttr{
+ ), &PackageAttr{
Env: []string{
"CC=cc" +
// nonstandard glibc extension
" -DFNM_EXTMATCH=0",
},
-
+ }, &MakeHelper{
// nonstandard glibc extension
SkipCheck: true,
@@ -26,16 +26,16 @@ func (t Toolchain) newElfutils() pkg.Artifact {
{"enable-deterministic-archives"},
},
},
- t.Load(M4),
- t.Load(PkgConfig),
+ M4,
+ PkgConfig,
- t.Load(Zlib),
- t.Load(Bzip2),
- t.Load(Zstd),
- t.Load(ArgpStandalone),
- t.Load(MuslFts),
- t.Load(MuslObstack),
- t.Load(KernelHeaders),
+ Zlib,
+ Bzip2,
+ Zstd,
+ ArgpStandalone,
+ MuslFts,
+ MuslObstack,
+ KernelHeaders,
)
}
func init() { artifactsF[Elfutils] = Toolchain.newElfutils }