internal/rosa: GNU make artifact
Some checks failed
Test / Create distribution (push) Successful in 50s
Test / ShareFS (push) Failing after 56s
Test / Sandbox (race detector) (push) Failing after 1m11s
Test / Sandbox (push) Failing after 1m14s
Test / Hakurei (push) Failing after 1m31s
Test / Hakurei (race detector) (push) Failing after 1m39s
Test / Hpkg (push) Failing after 1m43s
Test / Flake checks (push) Has been skipped

This compiles GNU make from source. This is unfortunately required by many programs, but is a cure dependency only.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-01-19 00:35:17 +09:00
parent 88e9a143d6
commit 783012c3fc

25
internal/rosa/gnu.go Normal file
View File

@@ -0,0 +1,25 @@
package rosa
import "hakurei.app/internal/pkg"
// NewMake returns a [pkg.Artifact] containing an installation of GNU Make.
func (t Toolchain) NewMake() pkg.Artifact {
const (
version = "4.4.1"
checksum = "YS_B07ZcAy9PbaK5_vKGj64SrxO2VMpnMKfc9I0Q9IC1rn0RwOH7802pJoj2Mq4a"
)
return t.New("make-"+version, nil, nil, nil, `
cd "$(mktemp -d)"
/usr/src/make/configure --prefix=/system \
--build="${ROSA_TRIPLE}" \
--disable-dependency-tracking
./build.sh
./make DESTDIR=/work install
`, pkg.Path(AbsUsrSrc.Append("make"), false, pkg.NewHTTPGetTar(
nil,
"https://ftp.gnu.org/gnu/make/make-"+version+".tar.gz",
mustDecode(checksum),
pkg.TarGzip,
)))
}