From 503c7f953c412d220365aa50ffef31f331d37f6c Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 13 Apr 2026 19:04:38 +0900 Subject: [PATCH] internal/rosa/x: libpciaccess artifact Required by userspace gpu drivers. Signed-off-by: Ophestra --- internal/rosa/all.go | 1 + internal/rosa/mesa.go | 11 ++++++++++- internal/rosa/x.go | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+), 1 deletion(-) diff --git a/internal/rosa/all.go b/internal/rosa/all.go index 220a41c2..5b20909b 100644 --- a/internal/rosa/all.go +++ b/internal/rosa/all.go @@ -87,6 +87,7 @@ const ( Libiconv Libmd Libmnl + Libpciaccess Libnftnl Libpsl Libseccomp diff --git a/internal/rosa/mesa.go b/internal/rosa/mesa.go index 33881a29..814cde4e 100644 --- a/internal/rosa/mesa.go +++ b/internal/rosa/mesa.go @@ -38,9 +38,14 @@ func (t Toolchain) newLibdrm() (pkg.Artifact, string) { "mesa/libdrm", "libdrm-"+version, checksum, - ), nil, (*MesonHelper)(nil), + ), nil, &MesonHelper{ + Setup: []KV{ + {"Dintel", "enabled"}, + }, + }, Binutils, // symbols check fail with llvm nm + Libpciaccess, KernelHeaders, ), version } @@ -52,6 +57,10 @@ func init() { Description: "a userspace library for accessing the DRM", Website: "https://dri.freedesktop.org/", + Dependencies: P{ + Libpciaccess, + }, + ID: 1596, } } diff --git a/internal/rosa/x.go b/internal/rosa/x.go index 23ec203e..e233099d 100644 --- a/internal/rosa/x.go +++ b/internal/rosa/x.go @@ -95,3 +95,35 @@ func init() { ID: 1765, } } + +func (t Toolchain) newLibpciaccess() (pkg.Artifact, string) { + const ( + version = "0.19" + checksum = "84H0c_U_7fMqo81bpuwyXGXtk4XvvFH_YK00UiOriv3YGsuAhmbo2IkFhmJnvu2x" + ) + return t.NewPackage("libpciaccess", version, newFromGitLab( + "gitlab.freedesktop.org", + "xorg/lib/libpciaccess", + "libpciaccess-"+version, + checksum, + ), nil, &MesonHelper{ + Setup: []KV{ + {"Dzlib", "enabled"}, + }, + }), version +} +func init() { + artifactsM[Libpciaccess] = Metadata{ + f: Toolchain.newLibpciaccess, + + Name: "libpciaccess", + Description: "generic PCI access library", + Website: "https://gitlab.freedesktop.org/xorg/lib/libpciaccess", + + Dependencies: P{ + Zlib, + }, + + ID: 1703, + } +}