internal/rosa: gperf artifact

Required by libseccomp.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-01-26 05:25:01 +09:00
parent 4d29333807
commit 3eadd5c580
3 changed files with 25 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ const (
Gettext
Git
Go
Gperf
KernelHeaders
Libexpat
Libffi

View File

@@ -223,3 +223,25 @@ make DESTDIR=/work install
)))
}
func init() { artifactsF[Coreutils] = Toolchain.newCoreutils }
func (t Toolchain) newGperf() pkg.Artifact {
const (
version = "3.3"
checksum = "RtIy9pPb_Bb8-31J2Nw-rRGso2JlS-lDlVhuNYhqR7Nt4xM_nObznxAlBMnarJv7"
)
return t.New("gperf-"+version, []pkg.Artifact{
t.Load(Make),
}, nil, nil, `
cd "$(mktemp -d)"
/usr/src/gperf/configure \
--prefix=/system \
--build="${ROSA_TRIPLE}"
make "-j$(nproc)" check
make DESTDIR=/work install
`, pkg.Path(AbsUsrSrc.Append("gperf"), true, pkg.NewHTTPGetTar(
nil, "https://ftp.gnu.org/pub/gnu/gperf/gperf-"+version+".tar.gz",
mustDecode(checksum),
pkg.TarGzip,
)))
}
func init() { artifactsF[Gperf] = Toolchain.newGperf }