Accepting request 1152985 from GNOME:Next
- Rebase accountsservice-sysconfig.patch: to fix build with GCC 14 (bsc#1219909). OBS-URL: https://build.opensuse.org/request/show/1152985 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/accountsservice?expand=0&rev=171
This commit is contained in:
parent
99a3daa1cd
commit
d586927ef4
@ -74,7 +74,7 @@ Index: accountsservice-23.13.9/src/daemon.c
|
|||||||
gboolean result;
|
gboolean result;
|
||||||
g_autoptr (GError) local_error = NULL;
|
g_autoptr (GError) local_error = NULL;
|
||||||
|
|
||||||
+ return load_autologin_suse (daemon, name, enabled, error);
|
+ return save_autologin_suse (daemon, name, enabled, error);
|
||||||
+
|
+
|
||||||
keyfile = g_key_file_new ();
|
keyfile = g_key_file_new ();
|
||||||
if (!g_key_file_load_from_file (keyfile,
|
if (!g_key_file_load_from_file (keyfile,
|
||||||
@ -372,7 +372,7 @@ Index: accountsservice-23.13.9/src/gdm-sysconfig.c
|
|||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
+static gchar *
|
+static gchar *
|
||||||
+get_value (const gchar **lines, const gchar *key)
|
+get_value (gchar **lines, const gchar *key)
|
||||||
+{
|
+{
|
||||||
+ gchar *value = NULL;
|
+ gchar *value = NULL;
|
||||||
+ gchar *key_normal;
|
+ gchar *key_normal;
|
||||||
@ -483,7 +483,7 @@ Index: accountsservice-23.13.9/src/gdm-sysconfig.c
|
|||||||
+ g_return_val_if_fail (file_name != NULL, FALSE);
|
+ g_return_val_if_fail (file_name != NULL, FALSE);
|
||||||
+ g_return_val_if_fail (sysconfig != NULL, FALSE);
|
+ g_return_val_if_fail (sysconfig != NULL, FALSE);
|
||||||
+
|
+
|
||||||
+ return save_settings_file (file_name, sysconfig);
|
+ return save_settings_file (file_name, (gchar **)sysconfig);
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
+gchar *
|
+gchar *
|
||||||
@ -492,7 +492,7 @@ Index: accountsservice-23.13.9/src/gdm-sysconfig.c
|
|||||||
+ g_return_val_if_fail (sysconfig != NULL, NULL);
|
+ g_return_val_if_fail (sysconfig != NULL, NULL);
|
||||||
+ g_return_val_if_fail (key != NULL, NULL);
|
+ g_return_val_if_fail (key != NULL, NULL);
|
||||||
+
|
+
|
||||||
+ return get_value (sysconfig, key);
|
+ return get_value ((gchar **)sysconfig, key);
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
+gboolean
|
+gboolean
|
||||||
@ -514,7 +514,7 @@ Index: accountsservice-23.13.9/src/gdm-sysconfig.c
|
|||||||
+ g_return_val_if_fail (sysconfig != NULL, FALSE);
|
+ g_return_val_if_fail (sysconfig != NULL, FALSE);
|
||||||
+ g_return_val_if_fail (key != NULL, FALSE);
|
+ g_return_val_if_fail (key != NULL, FALSE);
|
||||||
+
|
+
|
||||||
+ val = get_value (sysconfig, key);
|
+ val = get_value ((gchar **)sysconfig, key);
|
||||||
+ if (val == NULL) {
|
+ if (val == NULL) {
|
||||||
+ return FALSE;
|
+ return FALSE;
|
||||||
+ }
|
+ }
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 27 06:23:31 UTC 2024 - xiaoguang wang <xiaoguang.wang@suse.com>
|
||||||
|
|
||||||
|
- Rebase accountsservice-sysconfig.patch: to fix build with GCC 14
|
||||||
|
(bsc#1219909).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Feb 14 10:39:36 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
Wed Feb 14 10:39:36 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user