From af63e603e7f63dee05430678024408f53f9f7a85 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Tue, 17 Oct 2017 10:56:56 +0200 Subject: [PATCH 1/4] gdm: Convert to versionless bee file --- gdm-3.4.1-13.bee => gdm.be0 | 2 ++ 1 file changed, 2 insertions(+) rename gdm-3.4.1-13.bee => gdm.be0 (97%) diff --git a/gdm-3.4.1-13.bee b/gdm.be0 similarity index 97% rename from gdm-3.4.1-13.bee rename to gdm.be0 index 6afaa3fec..c02d7e6cf 100755 --- a/gdm-3.4.1-13.bee +++ b/gdm.be0 @@ -1,5 +1,7 @@ #!/bin/env beesh +# BEE_VERSION gdm-3.4.1-13 + SRCURL[0]="http://ftp.gnome.org/pub/gnome/sources/gdm/${PKGVERSION[2]}/gdm-${PKGVERSION}.tar.xz" PATCHURL[0]="/src/mariux/download/gdm-3.4.1-0001-greeter-always-enable-debugging.patch" From 25d15d348b3b391677bb369ce9e1bfa6b42a656d Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Tue, 17 Oct 2017 10:57:16 +0200 Subject: [PATCH 2/4] gdm: Remove debug patch This patch is not needed. To enable gdm debugging, add [debug] Enable=true to /etc/gdm/custom.conf . --- gdm.be0 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gdm.be0 b/gdm.be0 index c02d7e6cf..b625e5ba3 100755 --- a/gdm.be0 +++ b/gdm.be0 @@ -4,9 +4,8 @@ SRCURL[0]="http://ftp.gnome.org/pub/gnome/sources/gdm/${PKGVERSION[2]}/gdm-${PKGVERSION}.tar.xz" -PATCHURL[0]="/src/mariux/download/gdm-3.4.1-0001-greeter-always-enable-debugging.patch" -PATCHURL[1]="/src/mariux/download/gdm-3.4.1-0002-greeter-disable-handling-of-ESC-in-login-window.patch" -PATCHURL[2]="/src/mariux/download/gdm-3.4.1-0003-greeter-never-show-cancel-button-in-login-window.patch" +PATCHURL[0]="/src/mariux/download/gdm-3.4.1-0002-greeter-disable-handling-of-ESC-in-login-window.patch" +PATCHURL[1]="/src/mariux/download/gdm-3.4.1-0003-greeter-never-show-cancel-button-in-login-window.patch" LIBEXECDIR=/usr/lib/gdm LOCALSTATEDIR=/var From 548f7b6f1303da1f56023e5eff8e17efbf08f8ff Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Tue, 17 Oct 2017 15:10:57 +0200 Subject: [PATCH 3/4] gdm: Prevent login problems with many users The patch works around a problem which sometimes froze gdm after entering the password. It depends on timing with nis and the number of users. Patch description: From: Donald Buczek Date: Tue, 17 Oct 2017 12:38:25 +0200 Subject: [PATCH] GdmSessionWorker: Wait for ActUserManager We implicitly access the (singleton) ActUserManager via GdmSessionSettings. ActUserManager provided by libaccountsservice does asynchronous method invocations via dbus to the account service daemon (accountsdaemon.service). Depending on the number of users and the definition of the user database (which may involve rpc calls in the NIS case), the response to the ListCachedUsers call may take an undefined amount of time. We need to execute our main loop to get the responses for the asynchronous method invocations processed and delivered to ActUserManager. However, the current implementation of the pam services does synchronous method calls over the dbus and we don't return to our main loop while we are waiting for the user to enter the username or the password. If ActUserManger didn't complete its setup before we get into that state and the user needs longer then a dbus specific timeout (several seconds) to enter his data, the dbus daemon will delete the reply and the login process doesn't complete. The fix here is to check that ActUserManager has completed its setup before we switch to the states involving pam. --- gdm.be0 | 1 + 1 file changed, 1 insertion(+) diff --git a/gdm.be0 b/gdm.be0 index b625e5ba3..9a5a652a9 100755 --- a/gdm.be0 +++ b/gdm.be0 @@ -6,6 +6,7 @@ SRCURL[0]="http://ftp.gnome.org/pub/gnome/sources/gdm/${PKGVERSION[2]}/gdm-${PKG PATCHURL[0]="/src/mariux/download/gdm-3.4.1-0002-greeter-disable-handling-of-ESC-in-login-window.patch" PATCHURL[1]="/src/mariux/download/gdm-3.4.1-0003-greeter-never-show-cancel-button-in-login-window.patch" +PATCHURL[2]="/src/mariux/patches/gdm-0001-GdmSessionWorker-Wait-for-ActUserManager.patch" LIBEXECDIR=/usr/lib/gdm LOCALSTATEDIR=/var From 5905f50db371e6d24714fb2aa37dd55cc254dc22 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Tue, 17 Oct 2017 15:14:00 +0200 Subject: [PATCH 4/4] gdm: Rebuild with new revision --- gdm.be0 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdm.be0 b/gdm.be0 index 9a5a652a9..a4c2f235d 100755 --- a/gdm.be0 +++ b/gdm.be0 @@ -1,6 +1,6 @@ #!/bin/env beesh -# BEE_VERSION gdm-3.4.1-13 +# BEE_VERSION gdm-3.4.1-14 SRCURL[0]="http://ftp.gnome.org/pub/gnome/sources/gdm/${PKGVERSION[2]}/gdm-${PKGVERSION}.tar.xz"