Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gdm for openSUSE:Factory checked in 
at 2023-11-05 12:18:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gdm (Old)
 and      /work/SRC/openSUSE:Factory/.gdm.new.17445 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gdm"

Sun Nov  5 12:18:33 2023 rev:259 rq:1123046 version:45.0.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/gdm/gdm.changes  2023-10-04 22:30:34.665746463 
+0200
+++ /work/SRC/openSUSE:Factory/.gdm.new.17445/gdm.changes       2023-11-05 
12:18:41.388907966 +0100
@@ -1,0 +2,8 @@
+Thu Nov  2 06:45:59 UTC 2023 - Xiaoguang Wang <xiaoguang.w...@suse.com>
+
+- Rebase patches for SLE-15-SP6 (bsc#216595):
+  + Rebase gdm-add-runtime-option-to-disable-starting-X-server-as-u.patch
+  + Rebase gdm-disable-gnome-initial-setup.patch
+  + Rebase gdm-restart-session-when-X-server-restart.patch
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ gdm-add-runtime-option-to-disable-starting-X-server-as-u.patch ++++++
--- /var/tmp/diff_new_pack.8Nf5jz/_old  2023-11-05 12:18:42.156936140 +0100
+++ /var/tmp/diff_new_pack.8Nf5jz/_new  2023-11-05 12:18:42.160936287 +0100
@@ -8,8 +8,10 @@
 --disable-user-display-server option.
 
 This allows system to run X server under root if and only-if necessary.
---- a/daemon/gdm-local-display-factory.c
-+++ b/daemon/gdm-local-display-factory.c
+Index: gdm-45.0.1/daemon/gdm-local-display-factory.c
+===================================================================
+--- gdm-45.0.1.orig/daemon/gdm-local-display-factory.c
++++ gdm-45.0.1/daemon/gdm-local-display-factory.c
 @@ -384,6 +384,7 @@ gdm_local_display_factory_create_transie
          preferred_display_server = get_preferred_display_server (factory);
  
@@ -38,23 +40,23 @@
  
          if (display == NULL) {
                  g_set_error_literal (error,
-@@ -905,6 +907,7 @@ ensure_display_for_seat (GdmLocalDisplay
+@@ -928,6 +930,7 @@ ensure_display_for_seat (GdmLocalDisplay
          g_debug ("GdmLocalDisplayFactory: Adding display on seat %s", 
seat_id);
  
  #ifdef ENABLE_USER_DISPLAY_SERVER
 +        if (getenv ("GDM_DISABLE_USER_DISPLAY_SERVER") == NULL ) {
          if (g_strcmp0 (preferred_display_server, "wayland") == 0 ||
              g_strcmp0 (preferred_display_server, "xorg") == 0) {
-                 if (is_seat0) {
-@@ -915,6 +918,7 @@ ensure_display_for_seat (GdmLocalDisplay
-                                       NULL);
-                 }
+                 display = gdm_local_display_new ();
+@@ -936,6 +939,7 @@ ensure_display_for_seat (GdmLocalDisplay
+                               "supported-session-types", session_types,
+                               NULL);
          }
 +        }
  #endif
  
          if (display == NULL) {
-@@ -1211,6 +1215,10 @@ on_vt_changed (GIOChannel    *source,
+@@ -1252,6 +1256,10 @@ on_vt_changed (GIOChannel    *source,
          g_debug ("GdmLocalDisplayFactory: VT changed from %u to %u",
                   previous_vt, factory->active_vt);
  
@@ -65,7 +67,7 @@
          store = gdm_display_factory_get_display_store (GDM_DISPLAY_FACTORY 
(factory));
  
          /* if the old VT was running a wayland login screen kill it
-@@ -1352,6 +1360,7 @@ gdm_local_display_factory_start_monitor
+@@ -1393,6 +1401,7 @@ gdm_local_display_factory_start_monitor
  #endif
  
  #if defined(ENABLE_USER_DISPLAY_SERVER)
@@ -73,7 +75,7 @@
          io_channel = g_io_channel_new_file ("/sys/class/tty/tty0/active", 
"r", NULL);
  
          if (io_channel != NULL) {
-@@ -1362,6 +1371,7 @@ gdm_local_display_factory_start_monitor
+@@ -1403,6 +1412,7 @@ gdm_local_display_factory_start_monitor
                                          on_vt_changed,
                                          factory);
          }
@@ -81,19 +83,23 @@
  #endif
  }
  
---- a/daemon/gdm-manager.c
-+++ b/daemon/gdm-manager.c
+Index: gdm-45.0.1/daemon/gdm-manager.c
+===================================================================
+--- gdm-45.0.1.orig/daemon/gdm-manager.c
++++ gdm-45.0.1/daemon/gdm-manager.c
 @@ -1355,6 +1355,8 @@ set_up_automatic_login_session (GdmManag
                        "supported-session-types", supported_session_types,
                        NULL);
  
 +        if (getenv ("GDM_DISABLE_USER_DISPLAY_SERVER") != NULL)
-+                manager->priv->did_automatic_login = TRUE;
++                manager->did_automatic_login = TRUE;
          g_debug ("GdmManager: Starting automatic login conversation");
          gdm_session_start_conversation (session, "gdm-autologin");
  }
---- a/daemon/gdm-server.c
-+++ b/daemon/gdm-server.c
+Index: gdm-45.0.1/daemon/gdm-server.c
+===================================================================
+--- gdm-45.0.1.orig/daemon/gdm-server.c
++++ gdm-45.0.1/daemon/gdm-server.c
 @@ -238,9 +238,9 @@ gdm_server_init_command (GdmServer *serv
          /* For systemd, we don't have a log file but instead log to stdout,
             so set it to the xserver's built-in default verbosity */
@@ -106,7 +112,7 @@
  #endif
  
          if (g_access (SYSTEMD_X_SERVER, X_OK) < 0) {
-@@ -755,7 +755,7 @@ gdm_server_start (GdmServer *server)
+@@ -749,7 +749,7 @@ gdm_server_start (GdmServer *server)
          g_return_val_if_fail (GDM_IS_SERVER (server), FALSE);
  
          /* Hardcode the VT for the initial X server, but nothing else */
@@ -115,9 +121,11 @@
                  vtarg = "vt" G_STRINGIFY (GDM_INITIAL_VT);
          }
  
---- a/daemon/gdm-session.c
-+++ b/daemon/gdm-session.c
-@@ -3371,6 +3371,7 @@ gdm_session_get_display_mode (GdmSession
+Index: gdm-45.0.1/daemon/gdm-session.c
+===================================================================
+--- gdm-45.0.1.orig/daemon/gdm-session.c
++++ gdm-45.0.1/daemon/gdm-session.c
+@@ -3436,6 +3436,7 @@ gdm_session_get_display_mode (GdmSession
          }
  
  #ifdef ENABLE_USER_DISPLAY_SERVER
@@ -125,7 +133,7 @@
          /* All other cases (wayland login screen, X login screen,
           * wayland user session, X user session) use the NEW_VT
           * display mode.  That display mode means that GDM allocates
-@@ -3393,7 +3394,8 @@ gdm_session_get_display_mode (GdmSession
+@@ -3458,7 +3459,8 @@ gdm_session_get_display_mode (GdmSession
           *   are paused when handed out.
           */
          return GDM_SESSION_DISPLAY_MODE_NEW_VT;
@@ -135,7 +143,7 @@
  
  #ifdef ENABLE_WAYLAND_SUPPORT
          /* Wayland sessions are for now assumed to run in a
-@@ -3404,6 +3406,7 @@ gdm_session_get_display_mode (GdmSession
+@@ -3469,6 +3471,7 @@ gdm_session_get_display_mode (GdmSession
          }
  #endif
          return GDM_SESSION_DISPLAY_MODE_REUSE_VT;

++++++ gdm-disable-gnome-initial-setup.patch ++++++
--- /var/tmp/diff_new_pack.8Nf5jz/_old  2023-11-05 12:18:42.196937607 +0100
+++ /var/tmp/diff_new_pack.8Nf5jz/_new  2023-11-05 12:18:42.200937754 +0100
@@ -1,6 +1,8 @@
---- a/daemon/gdm-display.c
-+++ b/daemon/gdm-display.c
-@@ -1653,6 +1653,9 @@ wants_initial_setup (GdmDisplay *self)
+Index: gdm-45.0.1/daemon/gdm-display.c
+===================================================================
+--- gdm-45.0.1.orig/daemon/gdm-display.c
++++ gdm-45.0.1/daemon/gdm-display.c
+@@ -1622,6 +1622,9 @@ wants_initial_setup (GdmDisplay *self)
          gboolean enabled = FALSE;
          gboolean forced = FALSE;
  
@@ -9,8 +11,8 @@
 +
          priv = gdm_display_get_instance_private (self);
  
-         if (already_done_initial_setup_on_this_boot ()) {
-@@ -1689,6 +1692,16 @@ wants_initial_setup (GdmDisplay *self)
+         if (already_done_initial_setup ()) {
+@@ -1658,6 +1661,16 @@ wants_initial_setup (GdmDisplay *self)
                  return FALSE;
          }
  

++++++ gdm-restart-session-when-X-server-restart.patch ++++++
--- /var/tmp/diff_new_pack.8Nf5jz/_old  2023-11-05 12:18:42.256939808 +0100
+++ /var/tmp/diff_new_pack.8Nf5jz/_new  2023-11-05 12:18:42.260939955 +0100
@@ -1,20 +1,25 @@
---- a/daemon/gdm-local-display-factory.c
-+++ b/daemon/gdm-local-display-factory.c
-@@ -552,8 +552,10 @@ on_display_status_changed (GdmDisplay
-                  * ensures we get a new login screen when the user logs out,
-                  * if there isn't one.
+Index: gdm-45.0.1/daemon/gdm-local-display-factory.c
+===================================================================
+--- gdm-45.0.1.orig/daemon/gdm-local-display-factory.c
++++ gdm-45.0.1/daemon/gdm-local-display-factory.c
+@@ -555,10 +555,12 @@ on_display_status_changed (GdmDisplay
+                 /* if this is a local display, ensure that we get a login
+                  * screen when the user logs out.
                   */
 +                g_debug ("GdmLocalDisplayFactory: session_class = %s 
active_vt = %u", session_class, factory->active_vt);
                  if (is_local &&
--                    (g_strcmp0 (session_class, "greeter") != 0 || 
factory->active_vt == GDM_INITIAL_VT)) {
-+                    (g_strcmp0 (session_class, "greeter") != 0 || 
factory->active_vt == GDM_INITIAL_VT
-+                      || factory->active_vt == 0)) {
+                     ((g_strcmp0 (session_class, "greeter") != 0 &&
+                       (!seat_active_session || g_strcmp0(session_id, 
seat_active_session) == 0)) ||
+                      (g_strcmp0 (seat_id, "seat0") == 0 && factory->active_vt 
== GDM_INITIAL_VT) ||
++                     (g_strcmp0 (seat_id, "seat0") == 0 && factory->active_vt 
== 0) ||
+                      g_strcmp0 (seat_id, "seat0") != 0)) {
                          /* reset num failures */
                          factory->num_failures = 0;
- 
---- a/daemon/gdm-manager.c
-+++ b/daemon/gdm-manager.c
-@@ -1553,7 +1553,8 @@ on_display_status_changed (GdmDisplay *d
+Index: gdm-45.0.1/daemon/gdm-manager.c
+===================================================================
+--- gdm-45.0.1.orig/daemon/gdm-manager.c
++++ gdm-45.0.1/daemon/gdm-manager.c
+@@ -1552,7 +1552,8 @@ on_display_status_changed (GdmDisplay *d
                          }
  #endif
  

Reply via email to