internal/rosa/mesa: libdrm artifact
All checks were successful
Test / Create distribution (push) Successful in 1m23s
Test / Sandbox (push) Successful in 3m21s
Test / Hakurei (push) Successful in 4m34s
Test / ShareFS (push) Successful in 4m41s
Test / Sandbox (race detector) (push) Successful in 6m0s
Test / Hakurei (race detector) (push) Successful in 7m3s
Test / Flake checks (push) Successful in 1m29s

Required by mesa.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-04-13 03:26:32 +09:00
parent 0ca301219f
commit f1c2ca4928
2 changed files with 29 additions and 0 deletions

View File

@@ -78,6 +78,7 @@ const (
Libbsd
Libcap
Libclc
Libdrm
Libev
Libexpat
Libffi

View File

@@ -27,3 +27,31 @@ func init() {
ID: 12098,
}
}
func (t Toolchain) newLibdrm() (pkg.Artifact, string) {
const (
version = "2.4.131"
checksum = "riHPSpvTnvCPbR-iT4jt7_X-z4rpwm6oNh9ZN2zP6RBFkFVxBRKmedG4eEXSADIh"
)
return t.NewPackage("libdrm", version, pkg.NewHTTPGetTar(
nil, "https://gitlab.freedesktop.org/mesa/libdrm/-/archive/"+
"libdrm-"+version+"/libdrm-libdrm-"+version+".tar.bz2",
mustDecode(checksum),
pkg.TarBzip2,
), nil, (*MesonHelper)(nil),
Binutils, // symbols check fail with llvm nm
KernelHeaders,
), version
}
func init() {
artifactsM[Libdrm] = Metadata{
f: Toolchain.newLibdrm,
Name: "libdrm",
Description: "a userspace library for accessing the DRM",
Website: "https://dri.freedesktop.org/",
ID: 1596,
}
}