void-packages/srcpkgs/glib/patches/d2a6c379e85bacc89a7a8468f7e8447c8df15785.patch
oreo639 d12aff729e glib: update to 2.80.0.
This merges part of gobject-introspection tools, but not all of it.
Unfortunately this creates a cyclic dependency between glib and gi.
This is supposed to be temporary.

https://discourse.gnome.org/t/dealing-with-glib-and-gobject-introspection-circular-dependency/18701
https://gitlab.gnome.org/GNOME/glib/-/issues/2616
https://docs.gtk.org/girepository/migrating-gi.html
2024-04-17 20:25:16 -07:00

33 lines
1.1 KiB
Diff

From d2a6c379e85bacc89a7a8468f7e8447c8df15785 Mon Sep 17 00:00:00 2001
From: Simon McVittie <smcv@collabora.com>
Date: Fri, 15 Mar 2024 13:49:47 +0000
Subject: [PATCH] girparser: Don't assume sizeof(size_t) == sizeof(void *)
We don't actually need to use the results of configure-time checks here:
sizeof is a perfectly reasonable integer constant expression, so we can
use that directly.
Helps: https://gitlab.gnome.org/GNOME/glib/-/issues/2842
Signed-off-by: Simon McVittie <smcv@collabora.com>
---
girepository/girparser.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/girepository/girparser.c b/girepository/girparser.c
index 647cf2498d..b5d8fc7108 100644
--- a/girepository/girparser.c
+++ b/girepository/girparser.c
@@ -459,8 +459,8 @@ static IntegerAliasInfo integer_aliases[] = {
{ "gulong", SIZEOF_LONG, 0 },
{ "gssize", GLIB_SIZEOF_SIZE_T, 1 },
{ "gsize", GLIB_SIZEOF_SIZE_T, 0 },
- { "gintptr", GLIB_SIZEOF_SIZE_T, 1 },
- { "guintptr", GLIB_SIZEOF_SIZE_T, 0 },
+ { "gintptr", sizeof (gintptr), 1 },
+ { "guintptr", sizeof (guintptr), 0 },
};
typedef struct {
--
GitLab