diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-01-21 21:44:49 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-01-21 21:44:49 +0900 |
| commit | eb1060f395f3b2b506b601b5ecd4c95528436577 (patch) | |
| tree | 8e64c804e679f8c8d887004b8b80de76a81160f6 /internal | |
| parent | 0e08254595483c03320c3dae515089394748a626 (diff) | |
internal/rosa: autoconf artifact
Required by git to reconfigure some options.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/rosa/gnu.go | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/internal/rosa/gnu.go b/internal/rosa/gnu.go index d31996f8..d114e96b 100644 --- a/internal/rosa/gnu.go +++ b/internal/rosa/gnu.go @@ -47,3 +47,28 @@ make DESTDIR=/work install ))) } + +// NewAutoconf returns a [pkg.Artifact] containing an installation of GNU Autoconf. +func (t Toolchain) NewAutoconf() pkg.Artifact { + const ( + version = "2.72" + checksum = "-c5blYkC-xLDer3TWEqJTyh1RLbOd1c5dnRLKsDnIrg_wWNOLBpaqMY8FvmUFJ33" + ) + return t.New("autoconf-"+version, []pkg.Artifact{ + t.NewMake(), + t.NewM4(), + t.NewPerl(), + }, nil, nil, ` +cd "$(mktemp -d)" +/usr/src/autoconf/configure \ + --prefix=/system \ + --build="${ROSA_TRIPLE}" +make "-j$(nproc)" +make DESTDIR=/work install +`, pkg.Path(AbsUsrSrc.Append("autoconf"), false, pkg.NewHTTPGetTar( + nil, + "https://ftp.gnu.org/gnu/autoconf/autoconf-"+version+".tar.gz", + mustDecode(checksum), + pkg.TarGzip, + ))) +} |
