From 2b3991bd9b34e434bd0b9fe8be0f26df23b597a4 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 4 Apr 2026 22:47:10 +0900 Subject: [PATCH] internal/rosa/gtk: fetch glib source via git This eliminates xz dependency. Signed-off-by: Ophestra --- internal/rosa/gtk.go | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/internal/rosa/gtk.go b/internal/rosa/gtk.go index 9339bd9e..902d6975 100644 --- a/internal/rosa/gtk.go +++ b/internal/rosa/gtk.go @@ -1,8 +1,6 @@ package rosa import ( - "strings" - "hakurei.app/fhs" "hakurei.app/internal/pkg" ) @@ -10,16 +8,13 @@ import ( func (t Toolchain) newGLib() (pkg.Artifact, string) { const ( version = "2.88.0" - checksum = "bCLkAmp1o_Po4cXDbC06AyjLyxkBxyNJnflwBpSdf4W8K6dc9xKj6Pm3JYbHPdDf" + checksum = "T79Cg4z6j-sDZ2yIwvbY4ccRv2-fbwbqgcw59F5NQ6qJT6z4v261vbYp3dHO6Ma3" ) - return t.NewPackage("glib", version, pkg.NewHTTPGet( - nil, "https://download.gnome.org/sources/glib/"+ - strings.Join(strings.SplitN(version, ".", 3)[:2], ".")+ - "/glib-"+version+".tar.xz", + return t.NewPackage("glib", version, t.NewViaGit( + "https://gitlab.gnome.org/GNOME/glib.git", + "refs/tags/"+version, mustDecode(checksum), ), &PackageAttr{ - SourceKind: SourceKindTarXZ, - Paths: []pkg.ExecPath{ pkg.Path(fhs.AbsEtc.Append( "machine-id", @@ -39,7 +34,6 @@ func (t Toolchain) newGLib() (pkg.Artifact, string) { {"Ddefault_library", "both"}, }, }, - XZ, PythonPackaging, Bash,