diff options
| author | emmett1 <emmett1.2miligrams@protonmail.com> | 2025-05-22 07:31:40 +0800 |
|---|---|---|
| committer | emmett1 <emmett1.2miligrams@protonmail.com> | 2025-05-22 07:31:40 +0800 |
| commit | 3cba6602d9eec42facf481889e3d5350fb5415e9 (patch) | |
| tree | 9dca29a5c0ebd95d67ebbc4d442be7c718c8871a | |
| parent | 1321e6ba5464ec87f275b317bb8baee7490906e4 (diff) | |
| download | alicelinux-3cba6602d9eec42facf481889e3d5350fb5415e9.tar.gz alicelinux-3cba6602d9eec42facf481889e3d5350fb5415e9.zip | |
glib-gi: new added
| -rw-r--r-- | repos/extra/glib-gi/.checksum | 2 | ||||
| -rw-r--r-- | repos/extra/glib-gi/.files | 19 | ||||
| -rwxr-xr-x | repos/extra/glib-gi/0001-glib-compile-schemas-Remove-noisy-deprecation-warnin.patch | 40 | ||||
| -rwxr-xr-x | repos/extra/glib-gi/abuild | 24 | ||||
| -rwxr-xr-x | repos/extra/glib-gi/depends | 1 | ||||
| -rw-r--r-- | repos/extra/glib-gi/outdated | 1 |
6 files changed, 87 insertions, 0 deletions
diff --git a/repos/extra/glib-gi/.checksum b/repos/extra/glib-gi/.checksum new file mode 100644 index 00000000..6d31f8f3 --- /dev/null +++ b/repos/extra/glib-gi/.checksum @@ -0,0 +1,2 @@ +e888056a509e73c6c02c044ab8252b0eb135a6b0b20b6026b30d8b8454e2183a 0001-glib-compile-schemas-Remove-noisy-deprecation-warnin.patch +0e5a33860f0d9fae14495b7809903e5d053879ed714e360360ae4c7ba37ce408 glib-2.84.2.tar.xz diff --git a/repos/extra/glib-gi/.files b/repos/extra/glib-gi/.files new file mode 100644 index 00000000..e6e4e630 --- /dev/null +++ b/repos/extra/glib-gi/.files @@ -0,0 +1,19 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/girepository-1.0/ +-rw-r--r-- root/root usr/lib/girepository-1.0/GIRepository-3.0.typelib +-rw-r--r-- root/root usr/lib/girepository-1.0/GLib-2.0.typelib +-rw-r--r-- root/root usr/lib/girepository-1.0/GLibUnix-2.0.typelib +-rw-r--r-- root/root usr/lib/girepository-1.0/GModule-2.0.typelib +-rw-r--r-- root/root usr/lib/girepository-1.0/GObject-2.0.typelib +-rw-r--r-- root/root usr/lib/girepository-1.0/Gio-2.0.typelib +-rw-r--r-- root/root usr/lib/girepository-1.0/GioUnix-2.0.typelib +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/gir-1.0/ +-rw-r--r-- root/root usr/share/gir-1.0/GIRepository-3.0.gir +-rw-r--r-- root/root usr/share/gir-1.0/GLib-2.0.gir +-rw-r--r-- root/root usr/share/gir-1.0/GLibUnix-2.0.gir +-rw-r--r-- root/root usr/share/gir-1.0/GModule-2.0.gir +-rw-r--r-- root/root usr/share/gir-1.0/GObject-2.0.gir +-rw-r--r-- root/root usr/share/gir-1.0/Gio-2.0.gir +-rw-r--r-- root/root usr/share/gir-1.0/GioUnix-2.0.gir diff --git a/repos/extra/glib-gi/0001-glib-compile-schemas-Remove-noisy-deprecation-warnin.patch b/repos/extra/glib-gi/0001-glib-compile-schemas-Remove-noisy-deprecation-warnin.patch new file mode 100755 index 00000000..0a0b7f04 --- /dev/null +++ b/repos/extra/glib-gi/0001-glib-compile-schemas-Remove-noisy-deprecation-warnin.patch @@ -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 04ef40457eba..e791ce254454 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); + diff --git a/repos/extra/glib-gi/abuild b/repos/extra/glib-gi/abuild new file mode 100755 index 00000000..22ebe582 --- /dev/null +++ b/repos/extra/glib-gi/abuild @@ -0,0 +1,24 @@ +name=glib-gi +version=2.84.2 +release=1 +source="https://download.gnome.org/sources/glib/${version%.*}/glib-$version.tar.xz + 0001-glib-compile-schemas-Remove-noisy-deprecation-warnin.patch" +build_opt=" + -Dselinux=disabled + -Dtests=false + -Dintrospection=enabled +" + +postbuild() { + mkdir -p $SRC/tmp + mv $PKG/usr/lib/girepository-1.0 $SRC/tmp + mv $PKG/usr/share/gir-1.0 $SRC/tmp + rm -rf $PKG/* + + mkdir -p \ + $PKG/usr/lib \ + $PKG/usr/share + + mv $SRC/tmp/girepository-1.0 $PKG/usr/lib + mv $SRC/tmp/gir-1.0 $PKG/usr/share +} diff --git a/repos/extra/glib-gi/depends b/repos/extra/glib-gi/depends new file mode 100755 index 00000000..6b609f79 --- /dev/null +++ b/repos/extra/glib-gi/depends @@ -0,0 +1 @@ +gobject-introspection diff --git a/repos/extra/glib-gi/outdated b/repos/extra/glib-gi/outdated new file mode 100644 index 00000000..8713324b --- /dev/null +++ b/repos/extra/glib-gi/outdated @@ -0,0 +1 @@ +name=glib |