From bf2867d653c4a51a281f935e6a17e8789101dea5 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 3 May 2026 04:35:39 +0900 Subject: [PATCH] internal/rosa/x: libxshmfence artifact Required by mesa. Signed-off-by: Ophestra --- internal/rosa/all.go | 1 + internal/rosa/x.go | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/internal/rosa/all.go b/internal/rosa/all.go index 2c0b01d2..ef3275d6 100644 --- a/internal/rosa/all.go +++ b/internal/rosa/all.go @@ -95,6 +95,7 @@ const ( Libtool Libucontext Libunistring + Libxshmfence Libxml2 Libxslt Libxtrans diff --git a/internal/rosa/x.go b/internal/rosa/x.go index 16ad27ef..b10aa31d 100644 --- a/internal/rosa/x.go +++ b/internal/rosa/x.go @@ -208,6 +208,39 @@ func init() { } } +func (t Toolchain) newLibxshmfence() (pkg.Artifact, string) { + const ( + version = "1.3.3" + checksum = "JamExTPg81By2fs3vWdeo_dzlpBQeAwXr2sDXeHJqm9XBoLW5pamiD6FgAWtAKyA" + ) + return t.NewPackage("libxshmfence", version, newFromGitLab( + "gitlab.freedesktop.org", + "xorg/lib/libxshmfence", + "libxshmfence-"+version, + checksum, + ), nil, &MakeHelper{ + Generate: "NOCONFIGURE=1 ./autogen.sh", + }, + Automake, + Libtool, + PkgConfig, + + utilMacros, + XorgProto, + ), version +} +func init() { + artifactsM[Libxshmfence] = Metadata{ + f: Toolchain.newLibxshmfence, + + Name: "libxshmfence", + Description: "shared memory 'SyncFence' synchronization primitive", + Website: "https://gitlab.freedesktop.org/xorg/lib/libxshmfence", + + ID: 1792, + } +} + func (t Toolchain) newLibpciaccess() (pkg.Artifact, string) { const ( version = "0.19"