From a77a80295551cf383df2ef828e9e8740088aa9ef Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 3 May 2026 04:11:46 +0900 Subject: [PATCH] internal/rosa/x: xlib artifact Required by mesa. Signed-off-by: Ophestra --- internal/rosa/all.go | 1 + internal/rosa/x.go | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) diff --git a/internal/rosa/all.go b/internal/rosa/all.go index 3caf543e..6cf1cb96 100644 --- a/internal/rosa/all.go +++ b/internal/rosa/all.go @@ -73,6 +73,7 @@ const ( IPTables Kmod LIT + LibX11 LibXau Libbsd Libcap diff --git a/internal/rosa/x.go b/internal/rosa/x.go index 2c3c78fc..11751b1c 100644 --- a/internal/rosa/x.go +++ b/internal/rosa/x.go @@ -127,6 +127,50 @@ func init() { } } +func (t Toolchain) newLibX11() (pkg.Artifact, string) { + const ( + version = "1.8.13" + checksum = "ARh-cuZY_U2v3DbPS1byc7ybh9NInZc-yav7SJiusk_C7408s058qWV83ocMd2pT" + ) + return t.NewPackage("libX11", version, newFromGitLab( + "gitlab.freedesktop.org", + "xorg/lib/libx11", + "libX11-"+version, + checksum, + ), nil, &MakeHelper{ + Generate: "NOCONFIGURE=1 ./autogen.sh", + + Configure: []KV{ + {"enable-static"}, + {"without-xmlto"}, + }, + }, + Automake, + Libtool, + PkgConfig, + + utilMacros, + Libxtrans, + XorgProto, + XCB, + ), version +} +func init() { + artifactsM[LibX11] = Metadata{ + f: Toolchain.newLibX11, + + Name: "libX11", + Description: `Core X11 protocol client library (aka "Xlib")`, + Website: "https://gitlab.freedesktop.org/xorg/lib/libx11", + + Dependencies: P{ + XCB, + }, + + ID: 1764, + } +} + func (t Toolchain) newLibpciaccess() (pkg.Artifact, string) { const ( version = "0.19"