internal/rosa/x: libpciaccess artifact
All checks were successful
Test / Create distribution (push) Successful in 1m17s
Test / Sandbox (push) Successful in 3m19s
Test / Hakurei (push) Successful in 7m51s
Test / ShareFS (push) Successful in 8m40s
Test / Sandbox (race detector) (push) Successful in 4m32s
Test / Hakurei (race detector) (push) Successful in 4m14s
Test / Flake checks (push) Successful in 1m34s

Required by userspace gpu drivers.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-04-13 19:04:38 +09:00
parent 15c9f6545d
commit 503c7f953c
3 changed files with 43 additions and 1 deletions

View File

@@ -87,6 +87,7 @@ const (
Libiconv Libiconv
Libmd Libmd
Libmnl Libmnl
Libpciaccess
Libnftnl Libnftnl
Libpsl Libpsl
Libseccomp Libseccomp

View File

@@ -38,9 +38,14 @@ func (t Toolchain) newLibdrm() (pkg.Artifact, string) {
"mesa/libdrm", "mesa/libdrm",
"libdrm-"+version, "libdrm-"+version,
checksum, checksum,
), nil, (*MesonHelper)(nil), ), nil, &MesonHelper{
Setup: []KV{
{"Dintel", "enabled"},
},
},
Binutils, // symbols check fail with llvm nm Binutils, // symbols check fail with llvm nm
Libpciaccess,
KernelHeaders, KernelHeaders,
), version ), version
} }
@@ -52,6 +57,10 @@ func init() {
Description: "a userspace library for accessing the DRM", Description: "a userspace library for accessing the DRM",
Website: "https://dri.freedesktop.org/", Website: "https://dri.freedesktop.org/",
Dependencies: P{
Libpciaccess,
},
ID: 1596, ID: 1596,
} }
} }

View File

@@ -95,3 +95,35 @@ func init() {
ID: 1765, 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,
}
}