Build failure with "-D user-display-server=false"
GDM 44.x and 45.x fail to build when configured with -D user-display-server=false
. The following trivial patch fixes this problem:
diff -pru gdm-45.0.1-orig/daemon/gdm-local-display-factory.c gdm-45.0.1/daemon/gdm-local-display-factory.c
--- gdm-45.0.1-orig/daemon/gdm-local-display-factory.c 2023-09-18 06:06:46.368308597 +0200
+++ gdm-45.0.1/daemon/gdm-local-display-factory.c 2023-09-18 06:09:49.108607214 +0200
@@ -556,7 +556,11 @@ on_display_status_changed (GdmDisplay
if (is_local &&
((g_strcmp0 (session_class, "greeter") != 0 &&
(!seat_active_session || g_strcmp0(session_id, seat_active_session) == 0)) ||
+#if defined(ENABLE_USER_DISPLAY_SERVER)
(g_strcmp0 (seat_id, "seat0") == 0 && factory->active_vt == GDM_INITIAL_VT) ||
+#else
+ (g_strcmp0 (seat_id, "seat0") == 0) ||
+#endif
g_strcmp0 (seat_id, "seat0") != 0)) {
/* reset num failures */
factory->num_failures = 0;
Edited by Thomas Zajic