File: gi-repo-Do-not-manual-loading-of-platform-specific-Gio-na.patch

package info (click to toggle)
gjs 1.82.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,380 kB
  • sloc: cpp: 34,404; javascript: 27,796; ansic: 13,034; sh: 1,607; python: 780; xml: 116; makefile: 36
file content (28 lines) | stat: -rw-r--r-- 894 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From: =?utf-8?b?Ik1hcmNvIFRyZXZpc2FuIChUcmV2acOxbyki?= <mail@3v1n0.net>
Date: Fri, 29 Aug 2025 15:40:43 +0200
Subject: gi/repo: Do not manual loading of platform-specific Gio namespace

This will be handled by GLib upstream now.

See: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/4761

Origin: upstream, 1.85.90, commit:63c6134cbdd38f91fb7580c46e657e4d2a2c43bb
---
 gi/repo.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gi/repo.cpp b/gi/repo.cpp
index 8e94a5a..07f30dd 100644
--- a/gi/repo.cpp
+++ b/gi/repo.cpp
@@ -759,6 +759,10 @@ GIBaseInfo* gjs_lookup_gtype(GIRepository* repo, GType gtype) {
     if (!retval)
         return nullptr;
 
+#if GLIB_CHECK_VERSION(2, 85, 5)
+    return retval;
+#endif  // GLib >= 2.85.5
+
 #if GLIB_CHECK_VERSION(2, 79, 2) && (defined(G_OS_UNIX) || defined(G_OS_WIN32))
 #    ifdef G_OS_UNIX
     static const char* c_prefix = "GUnix";