From dadf170a464dbbc9810501288dbb3718781056d6 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 31 Mar 2026 21:39:49 +0900 Subject: [PATCH] internal/rosa: dbus artifact Unfortunate ugly indirect dependency we cannot yet get rid of. Signed-off-by: Ophestra --- internal/rosa/all.go | 1 + internal/rosa/dbus.go | 46 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 internal/rosa/dbus.go diff --git a/internal/rosa/all.go b/internal/rosa/all.go index 0122ed44..f7dc7988 100644 --- a/internal/rosa/all.go +++ b/internal/rosa/all.go @@ -49,6 +49,7 @@ const ( CMake Coreutils Curl + DBus DTC Diffutils Elfutils diff --git a/internal/rosa/dbus.go b/internal/rosa/dbus.go new file mode 100644 index 00000000..f2cb5ff6 --- /dev/null +++ b/internal/rosa/dbus.go @@ -0,0 +1,46 @@ +package rosa + +import "hakurei.app/internal/pkg" + +func (t Toolchain) newDBus() (pkg.Artifact, string) { + const ( + version = "1.16.2" + checksum = "INwOuNdrDG7XW5ilW_vn8JSxEa444rRNc5ho97i84I1CNF09OmcFcV-gzbF4uCyg" + ) + return t.NewPackage("dbus", version, pkg.NewHTTPGetTar( + nil, "https://gitlab.freedesktop.org/dbus/dbus/-/archive/"+ + "dbus-"+version+"/dbus-dbus-"+version+".tar.bz2", + mustDecode(checksum), + pkg.TarBzip2, + ), &PackageAttr{ + // OSError: [Errno 30] Read-only file system: '/usr/src/dbus/subprojects/packagecache' + Writable: true, + // PermissionError: [Errno 13] Permission denied: '/usr/src/dbus/subprojects/packagecache' + Chmod: true, + }, &MesonHelper{ + Setup: []KV{ + {"Depoll", "enabled"}, + {"Dinotify", "enabled"}, + {"Dx11_autolaunch", "disabled"}, + }, + }, + GLib, + Libexpat, + ), version +} +func init() { + artifactsM[DBus] = Metadata{ + f: Toolchain.newDBus, + + Name: "dbus", + Description: "a message bus system", + Website: "https://www.freedesktop.org/wiki/Software/dbus/", + + Dependencies: []PArtifact{ + GLib, + Libexpat, + }, + + ID: 5356, + } +}