internal/rosa/x: migrate to xorgproto
All checks were successful
Test / Create distribution (push) Successful in 1m4s
Test / Sandbox (push) Successful in 2m50s
Test / Hakurei (push) Successful in 3m54s
Test / ShareFS (push) Successful in 3m52s
Test / Sandbox (race detector) (push) Successful in 5m14s
Test / Hakurei (race detector) (push) Successful in 6m23s
Test / Flake checks (push) Successful in 1m31s

This is much cleaner than the many protocol packages.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-05-03 03:56:33 +09:00
parent e024d3184a
commit 4407e14dfc
2 changed files with 15 additions and 16 deletions

View File

@@ -167,7 +167,7 @@ const (
XCBProto
XDGDBusProxy
XZ
Xproto
XorgProto
Zlib
Zstd

View File

@@ -58,19 +58,18 @@ func init() {
}
}
func (t Toolchain) newXproto() (pkg.Artifact, string) {
func (t Toolchain) newXorgProto() (pkg.Artifact, string) {
const (
version = "7.0.31"
checksum = "Cm69urWY5RctKpR78eGzuwrjDEfXGkvHRdodj6sjypOGy5FF4-lmnUttVHYV1ydg"
version = "2025.1"
checksum = "pTwJiBJHKA6Rgm3cVDXy1lyvXNIUzTRaukvvYdk1xWoJ_1G-Dfjm9MyewuyIjoHz"
)
return t.NewPackage("xproto", version, newTar(
"https://www.x.org/releases/individual/proto/"+
"xproto-"+version+".tar.bz2",
return t.NewPackage("xorgproto", version, newFromGitLab(
"gitlab.freedesktop.org",
"xorg/proto/xorgproto",
"xorgproto-"+version,
checksum,
pkg.TarBzip2,
), nil, &MakeHelper{
// ancient configure script
Generate: "autoreconf -if",
Generate: "NOCONFIGURE=1 ./autogen.sh",
},
Automake,
PkgConfig,
@@ -79,14 +78,14 @@ func (t Toolchain) newXproto() (pkg.Artifact, string) {
), version
}
func init() {
artifactsM[Xproto] = Metadata{
f: Toolchain.newXproto,
artifactsM[XorgProto] = Metadata{
f: Toolchain.newXorgProto,
Name: "xproto",
Name: "xorgproto",
Description: "X Window System unified protocol definitions",
Website: "https://gitlab.freedesktop.org/xorg/proto/xorgproto",
ID: 13650,
ID: 17190,
}
}
@@ -109,7 +108,7 @@ func (t Toolchain) newLibXau() (pkg.Artifact, string) {
PkgConfig,
utilMacros,
Xproto,
XorgProto,
), version
}
func init() {
@@ -121,7 +120,7 @@ func init() {
Website: "https://gitlab.freedesktop.org/xorg/lib/libxau",
Dependencies: P{
Xproto,
XorgProto,
},
ID: 1765,