Add various packages and patches for build system improvements

- Introduced valgrind with a patch to respect flags and updated its configuration.
- Added Vulkan ICD loader with CMake build configuration.
- Implemented Waf build system with a custom build script and configuration.
- Included Wayland protocols with Meson build system.
- Added xcb-util-keysyms with autotools configuration.
- Introduced Yasm with multiple patches for compatibility and improvements.
- Added Yelp tools and XSL with Meson build configurations and necessary patches for POSIX compliance.
This commit is contained in:
2026-03-22 23:25:50 -05:00
parent a0e45c65d3
commit bf96e50e44
144 changed files with 7131 additions and 45 deletions
@@ -0,0 +1,40 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
Date: Fri, 7 Jan 2022 18:59:10 +0000
Subject: [PATCH] glib-compile-schemas: Remove noisy deprecation warnings
While the warnings are useful for developers, Arch Linux users also see
them when glib-compile-schemas gets run after upgrades, where they just
add noise.
The alternative to this patch would be redirecting the compiler's stderr
to /dev/null, but that might also suppress more useful errors or
warnings we want users to see.
---
gio/glib-compile-schemas.c | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/gio/glib-compile-schemas.c b/gio/glib-compile-schemas.c
index 81e675f53e8b..1a10a8d098c5 100644
--- a/gio/glib-compile-schemas.c
+++ b/gio/glib-compile-schemas.c
@@ -1232,19 +1232,6 @@ parse_state_start_schema (ParseState *state,
return;
}
- if (path && (g_str_has_prefix (path, "/apps/") ||
- g_str_has_prefix (path, "/desktop/") ||
- g_str_has_prefix (path, "/system/")))
- {
- gchar *message = NULL;
- message = g_strdup_printf (_("Warning: Schema “%s” has path “%s”. "
- "Paths starting with "
- "“/apps/”, “/desktop/” or “/system/” are deprecated."),
- id, path);
- g_printerr ("%s\n", message);
- g_free (message);
- }
-
state->schema_state = schema_state_new (path, gettext_domain,
extends, extends_name, list_of);
@@ -0,0 +1,51 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Fabian Bornschein <fabiscafe@mailbox.org>
Date: Wed, 19 Feb 2025 09:05:01 +0100
Subject: [PATCH] gdesktopappinfo: Add more known terminals
---
gio/gdesktopappinfo.c | 3 +++
gio/tests/desktop-app-info.c | 9 +++++++++
2 files changed, 12 insertions(+)
diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c
index 1e5a752ac6d9..4569e272b1cc 100644
--- a/gio/gdesktopappinfo.c
+++ b/gio/gdesktopappinfo.c
@@ -2720,6 +2720,9 @@ prepend_terminal_to_vector (int *argc,
const char *exec_arg;
} known_terminals[] = {
{ "xdg-terminal-exec", NULL },
+ { "ghostty", "-e" },
+ { "ptyxis", "--" },
+ { "app.devsuite.Ptyxis", "--" },
{ "kgx", "-e" },
{ "gnome-terminal", "--" },
{ "mate-terminal", "-x" },
diff --git a/gio/tests/desktop-app-info.c b/gio/tests/desktop-app-info.c
index aa705f9a4c0e..ae3272c56040 100644
--- a/gio/tests/desktop-app-info.c
+++ b/gio/tests/desktop-app-info.c
@@ -1418,6 +1418,12 @@ get_terminal_divider (const char *terminal_name)
{
if (g_str_equal (terminal_name, "xdg-terminal-exec"))
return NULL;
+ if (g_str_equal (terminal_name, "ghostty"))
+ return "-e";
+ if (g_str_equal (terminal_name, "ptyxis"))
+ return "--";
+ if (g_str_equal (terminal_name, "app.devsuite.Ptyxis"))
+ return "--";
if (g_str_equal (terminal_name, "kgx"))
return "-e";
if (g_str_equal (terminal_name, "gnome-terminal"))
@@ -1940,6 +1946,9 @@ main (int argc,
guint i;
const gchar *supported_terminals[] = {
"xdg-terminal-exec",
+ "ghostty",
+ "ptyxis",
+ "app.devsuite.Ptyxis",
"kgx",
"gnome-terminal",
"mate-terminal",
+11
View File
@@ -0,0 +1,11 @@
[hook]
name = "gio-querymodules"
description = "Update the GIO module cache"
[when]
phase = "post"
operation = ["install", "update", "remove"]
paths = ["usr/lib/gio/modules/*.so"]
[exec]
command = "gio-querymodules /usr/lib/gio/modules"
+14
View File
@@ -0,0 +1,14 @@
[hook]
name = "glib-compile-schemas"
description = "Compile GSettings XML schema files"
[when]
phase = "post"
operation = ["install", "update", "remove"]
paths = [
"usr/share/glib-2.0/schemas/*.xml",
"usr/share/glib-2.0/schemas/*.override",
]
[exec]
command = "glib-compile-schemas /usr/share/glib-2.0/schemas"
+68
View File
@@ -0,0 +1,68 @@
[build]
type = "meson"
[build.flags]
build_dir = "build"
configure = [
"-Ddtrace=disabled",
"-Dglib_debug=disabled",
"-Dintrospection=enabled",
"-Dman-pages=enabled",
"-Dselinux=disabled",
"-Dsysprof=disabled",
"-Dsystemtap=disabled",
]
post_install = [
'install -Dt "$DESTDIR/usr/share/depot.d/hooks" -m644 $DEPOT_SPECDIR/gio-querymodules.toml',
"""install -Dt "$DESTDIR/usr/share/depot.d/hooks" -m644 $DEPOT_SPECDIR/glib-compile-schemas.toml""",
'touch "$DESTDIR/usr/lib/gio/modules/.keep"',
'python -m compileall -d /usr/share/glib-2.0/codegen "$DESTDIR/usr/share/glib-2.0/codegen"',
'python -O -m compileall -d /usr/share/glib-2.0/codegen "$DESTDIR/usr/share/glib-2.0/codegen"',
]
skip_tests = true
[dependencies]
build = [
"gettext",
"meson",
"libelf",
"shared-mime-info",
"python",
"python-docutils",
"python-packaging",
"util-linux",
"gobject-introspection",
]
runtime = [
"sh",
"glibc",
"libffi",
"pcre2",
"util-linux",
"zlib-ng",
]
[[manual_sources]]
files = [
"0001-glib-compile-schemas-Remove-noisy-deprecation-warnin.patch",
"0002-gdesktopappinfo-Add-more-known-terminals.patch",
"gio-querymodules.toml",
"glib-compile-schemas.toml"
]
[package]
description = "Low-level core library that forms the basis for projects such as GTK and GNOME."
homepage = "https://gitlab.gnome.org/GNOME/glib"
license = "LGPL-2.1-or-later"
name = "glib2"
version = "2.86.4"
[[source]]
extract_dir = "$name-$version"
patches = [
"0001-glib-compile-schemas-Remove-noisy-deprecation-warnin.patch",
"0002-gdesktopappinfo-Add-more-known-terminals.patch",
]
url = "https://download.gnome.org/sources/glib/2.86/glib-$version.tar.xz"
sha256 = "md5:f2233a826c952aaae42b4a61611a06a4"
post_extract = [ "