[packages/gdm] - patch to build in C23 mode (bool is a keyword now)
qboosh
qboosh at pld-linux.org
Mon May 25 18:21:46 CEST 2026
commit 3a834a8ed1a666589fe680727a21330c604864f0
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon May 25 18:21:11 2026 +0200
- patch to build in C23 mode (bool is a keyword now)
gdm-bool.patch | 34 ++++++++++++++++++++++++++++++++++
gdm.spec | 2 ++
2 files changed, 36 insertions(+)
---
diff --git a/gdm.spec b/gdm.spec
index 6df74e8..5c41510 100644
--- a/gdm.spec
+++ b/gdm.spec
@@ -38,6 +38,7 @@ Patch2: %{name}-defaults.patch
Patch3: %{name}-both-libraries.patch
Patch4: display-fallback.patch
Patch5: no-merged-usr.patch
+Patch6: %{name}-bool.patch
URL: https://wiki.gnome.org/Projects/GDM
BuildRequires: accountsservice-devel >= 0.6.35
BuildRequires: audit-libs-devel
@@ -220,6 +221,7 @@ Pakiet zawiera statyczne biblioteki GDM.
%patch -P3 -p1
%patch -P4 -p1
%patch -P5 -p1
+%patch -P6 -p1
%build
%meson \
diff --git a/gdm-bool.patch b/gdm-bool.patch
new file mode 100644
index 0000000..811122a
--- /dev/null
+++ b/gdm-bool.patch
@@ -0,0 +1,34 @@
+--- gdm-48.0/common/gdm-settings-utils.h.orig 2025-03-17 17:07:15.000000000 +0100
++++ gdm-48.0/common/gdm-settings-utils.h 2026-05-25 17:59:38.797481677 +0200
+@@ -44,7 +44,7 @@ gboolean gdm_settings_p
+ GSList **list);
+
+ gboolean gdm_settings_parse_value_as_boolean (const char *value,
+- gboolean *bool);
++ gboolean *bool_);
+ gboolean gdm_settings_parse_value_as_integer (const char *value,
+ int *intval);
+ gboolean gdm_settings_parse_value_as_double (const char *value,
+--- gdm-48.0/common/gdm-settings-utils.c.orig 2025-03-17 17:07:15.000000000 +0100
++++ gdm-48.0/common/gdm-settings-utils.c 2026-05-25 17:59:55.300839369 +0200
+@@ -287,16 +287,16 @@ gdm_settings_parse_boolean_as_value (gb
+ /* adapted from GKeyFile */
+ gboolean
+ gdm_settings_parse_value_as_boolean (const char *value,
+- gboolean *bool)
++ gboolean *bool_)
+ {
+ g_return_val_if_fail (value != NULL, FALSE);
+- g_return_val_if_fail (bool != NULL, FALSE);
++ g_return_val_if_fail (bool_ != NULL, FALSE);
+
+ if (g_ascii_strcasecmp (value, "true") == 0 || strcmp (value, "1") == 0) {
+- *bool = TRUE;
++ *bool_ = TRUE;
+ return TRUE;
+ } else if (g_ascii_strcasecmp (value, "false") == 0 || strcmp (value, "0") == 0) {
+- *bool = FALSE;
++ *bool_ = FALSE;
+ return TRUE;
+ } else {
+ return FALSE;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gdm.git/commitdiff/ec1573049d9371c5617762524af440628f8e360d
More information about the pld-cvs-commit
mailing list