[packages/gdm] - fix horribly broken logic in enumeration of available display types

baggins baggins at pld-linux.org
Sat May 10 15:11:28 CEST 2025


commit 3ee69ceb6985c3e2081c7f9760899aa3524ac070
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat May 10 16:27:19 2025 +0200

    - fix horribly broken logic in enumeration of available display types
    
    Whhat it it did was add primary type only if there is no fallback,
    what does not make any sense since thre will always be a fallback
    if we build with x11 support.

 display-fallback.patch | 19 +++++++++++++++++++
 gdm.spec               |  2 ++
 2 files changed, 21 insertions(+)
---
diff --git a/gdm.spec b/gdm.spec
index 8d83106..82c414a 100644
--- a/gdm.spec
+++ b/gdm.spec
@@ -36,6 +36,7 @@ Patch0:		%{name}-xdmcp.patch
 Patch1:		%{name}-xsession.patch
 Patch2:		%{name}-defaults.patch
 Patch3:		%{name}-both-libraries.patch
+Patch4:		display-fallback.patch
 URL:		https://wiki.gnome.org/Projects/GDM
 BuildRequires:	accountsservice-devel >= 0.6.35
 BuildRequires:	audit-libs-devel
@@ -216,6 +217,7 @@ Pakiet zawiera statyczne biblioteki GDM.
 %patch -P1 -p1
 %patch -P2 -p1
 %patch -P3 -p1
+%patch -P4 -p1
 
 %build
 %meson \
diff --git a/display-fallback.patch b/display-fallback.patch
new file mode 100644
index 0000000..e2eaaae
--- /dev/null
+++ b/display-fallback.patch
@@ -0,0 +1,19 @@
+--- gdm-48.0/daemon/gdm-local-display-factory.c~	2025-03-17 17:07:15.000000000 +0100
++++ gdm-48.0/daemon/gdm-local-display-factory.c	2025-05-10 01:44:03.026665878 +0200
+@@ -347,14 +347,14 @@
+                 return NULL;
+ #endif
+ 
+-        if (!should_fall_back || fallback_display_server == NULL) {
+                 if (display_server_enabled (factory, preferred_display_server))
+                       g_ptr_array_add (session_types_array, (gpointer) get_session_type_for_display_server (factory, preferred_display_server));
+-        }
+ 
+ #ifdef ENABLE_X11_SUPPORT
++    if (should_fall_back && fallback_display_server != NULL) {
+         if (display_server_enabled (factory, fallback_display_server))
+                 g_ptr_array_add (session_types_array, (gpointer) get_session_type_for_display_server (factory, fallback_display_server));
++    }
+ #endif
+ 
+         if (session_types_array->len == 0)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gdm.git/commitdiff/3ee69ceb6985c3e2081c7f9760899aa3524ac070



More information about the pld-cvs-commit mailing list