Compare commits

...

45 Commits

Author SHA1 Message Date
0d83ffb4e9 automatic version update by autodist [release 48.0-1mamba;Tue Mar 18 2025] 2025-03-19 16:17:34 +01:00
00ea6af375 automatic version update by autodist [release 47.0-1mamba;Wed Oct 09 2024] 2024-10-09 22:39:32 +02:00
78beb74f8a provide user and group gdm [release 46.2-2mamba;Sat Jun 29 2024] 2024-06-29 23:27:49 +02:00
f0cdf40cc6 automatic version update by autodist [release 46.0-1mamba;Tue Mar 19 2024] 2024-03-19 23:17:09 +01:00
04ca65aa94 automatic version update by autodist [release 45.0.1-1mamba;Fri Sep 15 2023] 2024-01-05 22:39:51 +01:00
13f050fdca automatic version update by autodist [release 44.1-1mamba;Sat May 06 2023] 2024-01-05 22:39:51 +01:00
77605e4c12 automatic version update by autodist [release 44.0-1mamba;Thu Mar 30 2023] 2024-01-05 22:39:50 +01:00
788285b7bc automatic version update by autodist [release 43.0-1mamba;Sat Sep 24 2022] 2024-01-05 22:39:50 +01:00
e28847381d automatic version update by autodist [release 42.0-1mamba;Tue Mar 22 2022] 2024-01-05 22:39:50 +01:00
23085322a7 automatic version update by autodist [release 41.3-1mamba;Wed Jan 26 2022] 2024-01-05 22:39:50 +01:00
a373a37f75 automatic version update by autodist [release 41.0-1mamba;Wed Sep 22 2021] 2024-01-05 22:39:50 +01:00
d981b20ba5 automatic version update by autodist [release 40.1-1mamba;Fri Jul 23 2021] 2024-01-05 22:39:50 +01:00
af136e0f6c update to 40.0 [release 40.0-1mamba;Sat May 15 2021] 2024-01-05 22:39:50 +01:00
d3f55d75ea automatic version update by autodist [release 3.38.2.1-1mamba;Wed Dec 16 2020] 2024-01-05 22:39:50 +01:00
b576896e02 update to 3.38.2 [release 3.38.2-1mamba;Mon Nov 09 2020] 2024-01-05 22:39:50 +01:00
b5f082008a automatic version update by autodist [release 3.38.1-1mamba;Wed Oct 14 2020] 2024-01-05 22:39:49 +01:00
94f771dfed automatic version update by autodist [release 3.38.0-1mamba;Tue Oct 13 2020] 2024-01-05 22:39:49 +01:00
b55c93dd8c automatic version update by autodist [release 3.36.3-1mamba;Tue Jul 14 2020] 2024-01-05 22:39:49 +01:00
3d1257b096 automatic version update by autodist [release 3.36.2-1mamba;Tue May 05 2020] 2024-01-05 22:39:49 +01:00
c46296ab89 automatic version update by autodist [release 3.34.1-1mamba;Mon Oct 07 2019] 2024-01-05 22:39:49 +01:00
66ffca31db automatic version update by autodist [release 3.34.0-1mamba;Fri Oct 04 2019] 2024-01-05 22:39:49 +01:00
fd92981f37 automatic version update by autodist [release 3.32.0-1mamba;Sat Mar 16 2019] 2024-01-05 22:39:49 +01:00
948eef153b automatic version update by autodist [release 3.30.3-1mamba;Wed Feb 27 2019] 2024-01-05 22:39:49 +01:00
f47f7a38d1 automatic version update by autodist [release 3.30.2-1mamba;Sun Nov 11 2018] 2024-01-05 22:39:49 +01:00
3685276a5f automatic version update by autodist [release 3.30.1-1mamba;Fri Oct 05 2018] 2024-01-05 22:39:49 +01:00
6b90afeca3 automatic version update by autodist [release 3.30.0-1mamba;Sun Sep 23 2018] 2024-01-05 22:39:49 +01:00
59ede2dd9c automatic version update by autodist [release 3.28.4-1mamba;Thu Aug 23 2018] 2024-01-05 22:39:49 +01:00
39d2fc98e5 automatic version update by autodist [release 3.28.3-1mamba;Tue Aug 14 2018] 2024-01-05 22:39:49 +01:00
98de132ffd automatic version update by autodist [release 3.28.2-1mamba;Mon Jun 18 2018] 2024-01-05 22:39:49 +01:00
4f77924f4b automatic version update by autodist [release 3.28.1-1mamba;Wed Apr 11 2018] 2024-01-05 22:39:49 +01:00
a37a9e58fb automatic version update by autodist [release 3.28.0-1mamba;Mon Mar 26 2018] 2024-01-05 22:39:49 +01:00
4a878939f0 automatic update by autodist [release 3.26.2.1-1mamba;Thu Nov 30 2017] 2024-01-05 22:39:49 +01:00
983f85dca7 automatic version update by autodist [release 3.26.1-1mamba;Wed Oct 11 2017] 2024-01-05 22:39:49 +01:00
223450953f automatic version update by autodist [release 3.24.2-1mamba;Wed May 10 2017] 2024-01-05 22:39:49 +01:00
c29189d0e9 automatic version update by autodist [release 3.24.1-1mamba;Mon Apr 24 2017] 2024-01-05 22:39:49 +01:00
6dbd4b609f automatic version update by autodist [release 3.22.3-1mamba;Mon Mar 06 2017] 2024-01-05 22:39:49 +01:00
fea2ea1b8c automatic version update by autodist [release 3.22.2-1mamba;Thu Mar 02 2017] 2024-01-05 22:39:49 +01:00
04f07f20c6 automatic version update by autodist [release 3.22.1-1mamba;Mon Oct 17 2016] 2024-01-05 22:39:49 +01:00
e4a06a4d12 automatic version update by autodist [release 3.20.1-1mamba;Wed Apr 20 2016] 2024-01-05 22:39:49 +01:00
ee4cb5a722 automatic version update by autodist [release 3.18.2-1mamba;Tue Nov 24 2015] 2024-01-05 22:39:49 +01:00
8d946c6ed5 automatic version update by autodist [release 3.16.3-1mamba;Thu Sep 17 2015] 2024-01-05 22:39:49 +01:00
76ebd50bdf remove requirement for ConsoleKit [release 3.16.2-2mamba;Wed Aug 19 2015] 2024-01-05 22:39:48 +01:00
cf4e0bf6ba automatic version update by autodist [release 3.16.2-1mamba;Thu Jul 02 2015] 2024-01-05 22:39:48 +01:00
70d47581f8 automatic version update by autodist [release 3.16.1.1-1mamba;Fri Apr 17 2015] 2024-01-05 22:39:48 +01:00
fa6c60761e automatic update by autodist [release 3.14.1-1mamba;Thu Oct 16 2014] 2024-01-05 22:39:48 +01:00
6 changed files with 222 additions and 658 deletions

View File

@ -1,16 +0,0 @@
diff -Nru gdm-2.32.1.orig//data/gdm gdm-2.32.1/data/gdm
--- gdm-2.32.1.orig//data/gdm 2011-03-07 18:40:37.000000000 +0100
+++ gdm-2.32.1/data/gdm 2011-05-21 19:15:05.043330513 +0200
@@ -9,4 +9,3 @@
session optional pam_keyinit.so force revoke
session include system-auth
session required pam_loginuid.so
-session optional pam_console.so
diff -Nru gdm-2.32.1.orig//data/gdm-autologin gdm-2.32.1/data/gdm-autologin
--- gdm-2.32.1.orig//data/gdm-autologin 2011-03-07 18:40:37.000000000 +0100
+++ gdm-2.32.1/data/gdm-autologin 2011-05-21 19:14:58.370403932 +0200
@@ -7,4 +7,3 @@
session optional pam_keyinit.so force revoke
session include system-auth
session required pam_loginuid.so
-session optional pam_console.so

View File

@ -1,41 +0,0 @@
diff -Nru gdm-3.12.2.orig/data/pam-redhat/gdm-autologin.pam gdm-3.12.2/data/pam-redhat/gdm-autologin.pam
--- gdm-3.12.2.orig/data/pam-redhat/gdm-autologin.pam 2014-04-22 16:11:07.000000000 +0000
+++ gdm-3.12.2/data/pam-redhat/gdm-autologin.pam 2014-06-26 18:17:14.589941021 +0000
@@ -6,7 +6,7 @@
password include system-auth
session required pam_selinux.so close
session required pam_loginuid.so
-session optional pam_console.so
+#session optional pam_console.so
-session optional pam_ck_connector.so
session required pam_selinux.so open
session optional pam_keyinit.so force revoke
diff -Nru gdm-3.12.2.orig/data/pam-redhat/gdm-password.pam gdm-3.12.2/data/pam-redhat/gdm-password.pam
--- gdm-3.12.2.orig/data/pam-redhat/gdm-password.pam 2014-04-22 16:11:07.000000000 +0000
+++ gdm-3.12.2/data/pam-redhat/gdm-password.pam 2014-06-26 18:18:08.883142740 +0000
@@ -1,19 +1,19 @@
-auth [success=done ignore=ignore default=bad] pam_selinux_permit.so
-auth substack password-auth
+auth [success=done ignore=ignore default=bad] pam_sepermit.so
+auth substack system-auth
auth optional pam_gnome_keyring.so
account required pam_nologin.so
-account include password-auth
+account include system-auth
-password substack password-auth
+password substack system-auth
-password optional pam_gnome_keyring.so use_authtok
session required pam_selinux.so close
session required pam_loginuid.so
-session optional pam_console.so
+#session optional pam_console.so
-session optional pam_ck_connector.so
session required pam_selinux.so open
session optional pam_keyinit.so force revoke
session required pam_namespace.so
-session include password-auth
+session include system-auth
session optional pam_gnome_keyring.so auto_start

View File

@ -1,338 +0,0 @@
From c56fbb65277e8a17db5e0939f0b02e41c4ec784c Mon Sep 17 00:00:00 2001
From: Ray Strode <rstrode@redhat.com>
Date: Fri, 27 Nov 2009 18:52:54 -0500
Subject: [PATCH] daemon: enable smooth transition between plymouth and X
This commit adds optional support for interacting with plymouth
from gdm. This feature can be enabled by passing --with-plymouth
to configure.
Hopefully, this will enable the various distributions that use
plymouth to drop a patch.
https://bugzilla.gnome.org/show_bug.cgi?id=572173
---
configure.ac | 32 +++++++++++++
daemon/gdm-server.c | 60 +++++++++++++++++++++++++
daemon/gdm-server.h | 3 +
daemon/gdm-simple-slave.c | 106 ++++++++++++++++++++++++++++++++++++++++++++-
4 files changed, 200 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index 35e6e04..81ea23e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -264,6 +264,10 @@ AC_ARG_WITH(systemd,
AS_HELP_STRING([--with-systemd],
[Add systemd support @<:@default=auto@:>@]),
[with_systemd=$withval], [with_systemd=auto])
+AC_ARG_WITH(plymouth,
+ AS_HELP_STRING([--with-plymouth],
+ [Add plymouth support @<:@default=auto@:>@]),
+ [with_plymouth=$withval], [with_plymouth=auto])
AC_ARG_WITH(at-spi-registryd-directory,
AS_HELP_STRING([--with-at-spi-registryd-directory],
@@ -952,6 +956,33 @@ AC_SUBST(SYSTEMD_X_SERVER)
AC_DEFINE_UNQUOTED(SYSTEMD_X_SERVER,"$SYSTEMD_X_SERVER",[Path to systemd X server wrapper])
dnl ---------------------------------------------------------------------------
+dnl - Check for plymouth support
+dnl ---------------------------------------------------------------------------
+PKG_CHECK_MODULES(PLYMOUTH,
+ [ply-boot-client],
+ [have_plymouth=yes], [have_plymouth=no])
+
+if test "x$with_plymouth" = "xauto" ; then
+ if test x$have_plymouth = xno ; then
+ use_plymouth=no
+ else
+ use_plymouth=yes
+ fi
+else
+ use_plymouth="$with_plymouth"
+fi
+
+if test "x$use_plymouth" != "xno" ; then
+ if test "x$have_plymouth" = "xno"; then
+ AC_MSG_ERROR([Plymouth support explicitly required, but plymouth not found])
+ fi
+
+ AC_DEFINE(WITH_PLYMOUTH, 1, [Define to enable plymouth support])
+fi
+AC_SUBST(PLYMOUTH_CFLAGS)
+AC_SUBST(PLYMOUTH_LIBS)
+
+dnl ---------------------------------------------------------------------------
dnl - Check for D-Bus
dnl ---------------------------------------------------------------------------
@@ -1537,6 +1568,7 @@ echo \
SELinux support: ${with_selinux}
ConsoleKit support: ${use_console_kit}
systemd support: ${use_systemd}
+ plymouth support: ${use_plymouth}
UPower support: ${have_upower}
Build with RBAC: ${msg_rbac_shutdown}
"
diff --git a/daemon/gdm-server.c b/daemon/gdm-server.c
index d0d8ff9..6f2a939 100644
--- a/daemon/gdm-server.c
+++ b/daemon/gdm-server.c
@@ -32,6 +32,7 @@
#include <pwd.h>
#include <grp.h>
#include <signal.h>
+#include <sys/ioctl.h>
#include <sys/resource.h>
#ifdef HAVE_SYS_PRCTL_H
@@ -42,6 +43,10 @@
#include <systemd/sd-daemon.h>
#endif
+#ifdef WITH_PLYMOUTH
+#include <linux/vt.h>
+#endif
+
#include <glib.h>
#include <glib/gi18n.h>
#include <glib/gstdio.h>
@@ -751,6 +756,61 @@ gdm_server_spawn (GdmServer *server,
return ret;
}
+#ifdef WITH_PLYMOUTH
+static int
+get_active_vt (void)
+{
+ int console_fd;
+ struct vt_stat console_state = { 0 };
+
+ console_fd = open ("/dev/tty0", O_RDONLY | O_NOCTTY);
+
+ if (console_fd < 0) {
+ goto out;
+ }
+
+ if (ioctl (console_fd, VT_GETSTATE, &console_state) < 0) {
+ goto out;
+ }
+
+out:
+ if (console_fd >= 0) {
+ close (console_fd);
+ }
+
+ return console_state.v_active;
+}
+
+static char *
+get_active_vt_as_string (void)
+{
+ int vt;
+
+ vt = get_active_vt ();
+
+ if (vt <= 0) {
+ return NULL;
+ }
+
+ return g_strdup_printf ("vt%d", vt);
+}
+
+gboolean
+gdm_server_start_on_active_vt (GdmServer *server)
+{
+ gboolean res;
+ char *vt;
+
+ g_free (server->priv->command);
+ server->priv->command = g_strdup (X_SERVER " -background none -logverbose 7");
+ vt = get_active_vt_as_string ();
+ res = gdm_server_spawn (server, vt);
+ g_free (vt);
+
+ return res;
+}
+#endif
+
/**
* gdm_server_start:
* @disp: Pointer to a GdmDisplay structure
diff --git a/daemon/gdm-server.h b/daemon/gdm-server.h
index b53d68e..827f7fa 100644
--- a/daemon/gdm-server.h
+++ b/daemon/gdm-server.h
@@ -57,6 +57,9 @@ GdmServer * gdm_server_new (const char *display_id,
const char *seat_id,
const char *auth_file);
gboolean gdm_server_start (GdmServer *server);
+#ifdef HAVE_PLYMOUTH
+gboolean gdm_server_start_on_active_vt (GdmServer *server);
+#endif
gboolean gdm_server_stop (GdmServer *server);
char * gdm_server_get_display_device (GdmServer *server);
diff --git a/daemon/gdm-simple-slave.c b/daemon/gdm-simple-slave.c
index fc8649c..7c709a6 100644
--- a/daemon/gdm-simple-slave.c
+++ b/daemon/gdm-simple-slave.c
@@ -93,6 +93,9 @@ struct GdmSimpleSlavePrivate
#ifdef HAVE_LOGINDEVPERM
gboolean use_logindevperm;
#endif
+#ifdef WITH_PLYMOUTH
+ guint plymouth_is_running : 1;
+#endif
};
enum {
@@ -1204,6 +1207,74 @@ on_start_session_later (GdmGreeterServer *session,
slave->priv->start_session_when_ready = FALSE;
}
+#ifdef WITH_PLYMOUTH
+static gboolean
+plymouth_is_running (void)
+{
+ int status;
+ gboolean res;
+ GError *error;
+
+ error = NULL;
+ res = g_spawn_command_line_sync ("/bin/plymouth --ping",
+ NULL, NULL, &status, &error);
+ if (! res) {
+ g_debug ("Could not ping plymouth: %s", error->message);
+ g_error_free (error);
+ return FALSE;
+ }
+
+ return WIFEXITED (status) && WEXITSTATUS (status) == 0;
+}
+
+static void
+plymouth_prepare_for_transition (GdmSimpleSlave *slave)
+{
+ gboolean res;
+ GError *error;
+
+ error = NULL;
+ res = g_spawn_command_line_sync ("/bin/plymouth deactivate",
+ NULL, NULL, NULL, &error);
+ if (! res) {
+ g_warning ("Could not deactivate plymouth: %s", error->message);
+ g_error_free (error);
+ }
+}
+
+static void
+plymouth_quit_with_transition (GdmSimpleSlave *slave)
+{
+ gboolean res;
+ GError *error;
+
+ error = NULL;
+ res = g_spawn_command_line_sync ("/bin/plymouth quit --retain-splash",
+ NULL, NULL, NULL, &error);
+ if (! res) {
+ g_warning ("Could not quit plymouth: %s", error->message);
+ g_error_free (error);
+ }
+ slave->priv->plymouth_is_running = FALSE;
+}
+
+static void
+plymouth_quit_without_transition (GdmSimpleSlave *slave)
+{
+ gboolean res;
+ GError *error;
+
+ error = NULL;
+ res = g_spawn_command_line_sync ("/bin/plymouth quit",
+ NULL, NULL, NULL, &error);
+ if (! res) {
+ g_warning ("Could not quit plymouth: %s", error->message);
+ g_error_free (error);
+ }
+ slave->priv->plymouth_is_running = FALSE;
+}
+#endif
+
static void
setup_server (GdmSimpleSlave *slave)
{
@@ -1223,6 +1294,12 @@ setup_server (GdmSimpleSlave *slave)
*/
gdm_slave_save_root_windows (GDM_SLAVE (slave));
+#ifdef WITH_PLYMOUTH
+ /* Plymouth is waiting for the go-ahead to exit */
+ if (slave->priv->plymouth_is_running) {
+ plymouth_quit_with_transition (slave);
+ }
+#endif
}
static void
@@ -1426,6 +1503,12 @@ on_server_exited (GdmServer *server,
g_debug ("GdmSimpleSlave: server exited with code %d\n", exit_code);
gdm_slave_stopped (GDM_SLAVE (slave));
+
+#ifdef WITH_PLYMOUTH
+ if (slave->priv->plymouth_is_running) {
+ plymouth_quit_without_transition (slave);
+ }
+#endif
}
static void
@@ -1438,6 +1521,12 @@ on_server_died (GdmServer *server,
g_strsignal (signal_number));
gdm_slave_stopped (GDM_SLAVE (slave));
+
+#ifdef WITH_PLYMOUTH
+ if (slave->priv->plymouth_is_running) {
+ plymouth_quit_without_transition (slave);
+ }
+#endif
}
static gboolean
@@ -1484,7 +1573,17 @@ gdm_simple_slave_run (GdmSimpleSlave *slave)
G_CALLBACK (on_server_ready),
slave);
- res = gdm_server_start (slave->priv->server);
+#ifdef WITH_PLYMOUTH
+ slave->priv->plymouth_is_running = plymouth_is_running ();
+
+ if (slave->priv->plymouth_is_running) {
+ plymouth_prepare_for_transition (slave);
+ res = gdm_server_start_on_active_vt (slave->priv->server);
+ } else
+#endif
+ {
+ res = gdm_server_start (slave->priv->server);
+ }
if (! res) {
g_warning (_("Could not start the X "
"server (your graphical environment) "
@@ -1494,6 +1593,11 @@ gdm_simple_slave_run (GdmSimpleSlave *slave)
"In the meantime this display will be "
"disabled. Please restart GDM when "
"the problem is corrected."));
+#ifdef WITH_PLYMOUTH
+ if (slave->priv->plymouth_is_running) {
+ plymouth_quit_without_transition (slave);
+ }
+#endif
exit (1);
}
--
1.7.8.6

View File

@ -1,141 +0,0 @@
From c93d98b646a9a4fce3052260a1f08808d62d7155 Mon Sep 17 00:00:00 2001
From: Ray Strode <rstrode@redhat.com>
Date: Fri, 27 Nov 2009 18:27:53 -0500
Subject: [PATCH] daemon: save root window to pixmap at _XROOTPMAP_ID
This combined with starting the X server with
-background none will give distros using plymouth
(or potentially other boot splashes) a a nice fade
transition when g-s-d starts.
https://bugzilla.gnome.org/show_bug.cgi?id=572173
---
daemon/gdm-simple-slave.c | 8 +++++
daemon/gdm-slave.c | 72 +++++++++++++++++++++++++++++++++++++++++++++
daemon/gdm-slave.h | 1 +
3 files changed, 81 insertions(+), 0 deletions(-)
diff --git a/daemon/gdm-simple-slave.c b/daemon/gdm-simple-slave.c
index 9d1347a..fc8649c 100644
--- a/daemon/gdm-simple-slave.c
+++ b/daemon/gdm-simple-slave.c
@@ -1215,6 +1215,14 @@ setup_server (GdmSimpleSlave *slave)
/* Set the initial keyboard layout to something reasonable */
gdm_slave_set_initial_keyboard_layout (GDM_SLAVE (slave));
+ /* The root window has a background that may be useful
+ * to cross fade or transition from when setting the
+ * login screen background. We read it here, and stuff
+ * it into the standard _XROOTPMAP_ID root window property,
+ * so gnome-settings-daemon can get at it.
+ */
+ gdm_slave_save_root_windows (GDM_SLAVE (slave));
+
}
static void
diff --git a/daemon/gdm-slave.c b/daemon/gdm-slave.c
index a5ce62f..53633c0 100644
--- a/daemon/gdm-slave.c
+++ b/daemon/gdm-slave.c
@@ -43,6 +43,7 @@
#include <dbus/dbus-glib-lowlevel.h>
#include <X11/Xlib.h> /* for Display */
+#include <X11/Xatom.h> /* for XA_PIXMAP */
#include <X11/cursorfont.h> /* for watch cursor */
#include <X11/extensions/Xrandr.h>
#include <X11/Xatom.h>
@@ -364,6 +365,77 @@ gdm_slave_run_script (GdmSlave *slave,
return ret;
}
+static void
+gdm_slave_save_root_window_of_screen (GdmSlave *slave,
+ Atom id_atom,
+ int screen_number)
+{
+ Window root_window;
+ GC gc;
+ XGCValues values;
+ Pixmap pixmap;
+ int width, height, depth;
+
+ root_window = RootWindow (slave->priv->server_display,
+ screen_number);
+
+ width = DisplayWidth (slave->priv->server_display, screen_number);
+ height = DisplayHeight (slave->priv->server_display, screen_number);
+ depth = DefaultDepth (slave->priv->server_display, screen_number);
+ pixmap = XCreatePixmap (slave->priv->server_display,
+ root_window,
+ width, height, depth);
+
+ values.function = GXcopy;
+ values.plane_mask = AllPlanes;
+ values.fill_style = FillSolid;
+ values.subwindow_mode = IncludeInferiors;
+
+ gc = XCreateGC (slave->priv->server_display,
+ root_window,
+ GCFunction | GCPlaneMask | GCFillStyle | GCSubwindowMode,
+ &values);
+
+ if (XCopyArea (slave->priv->server_display,
+ root_window, pixmap, gc, 0, 0,
+ width, height, 0, 0)) {
+
+ long pixmap_as_long;
+
+ pixmap_as_long = (long) pixmap;
+
+ XChangeProperty (slave->priv->server_display,
+ root_window, id_atom, XA_PIXMAP,
+ 32, PropModeReplace, (guchar *) &pixmap_as_long,
+ 1);
+
+ }
+
+ XFreeGC (slave->priv->server_display, gc);
+}
+
+void
+gdm_slave_save_root_windows (GdmSlave *slave)
+{
+ int i, number_of_screens;
+ Atom atom;
+
+ number_of_screens = ScreenCount (slave->priv->server_display);
+
+ atom = XInternAtom (slave->priv->server_display,
+ "_XROOTPMAP_ID", False);
+
+ if (atom == 0) {
+ return;
+ }
+
+ for (i = 0; i < number_of_screens; i++) {
+ gdm_slave_save_root_window_of_screen (slave, atom, i);
+ }
+
+ XSync (slave->priv->server_display, False);
+}
+
void
gdm_slave_set_initial_keyboard_layout (GdmSlave *slave)
{
diff --git a/daemon/gdm-slave.h b/daemon/gdm-slave.h
index 7af20ed..aaaa8f2 100644
--- a/daemon/gdm-slave.h
+++ b/daemon/gdm-slave.h
@@ -78,6 +78,7 @@ void gdm_slave_set_initial_keyboard_layout (GdmSlave *slave);
void gdm_slave_set_initial_cursor_position (GdmSlave *slave);
void gdm_slave_set_busy_cursor (GdmSlave *slave);
+void gdm_slave_save_root_windows (GdmSlave *slave);
gboolean gdm_slave_run_script (GdmSlave *slave,
const char *dir,
const char *username);
--
1.7.8.6

View File

@ -0,0 +1,9 @@
diff -Nru gdm-3.18.0.orig/data/pam-redhat/gdm-password.pam gdm-3.18.0/data/pam-redhat/gdm-password.pam
--- gdm-3.18.0.orig/data/pam-redhat/gdm-password.pam 2015-09-21 16:12:33.000000000 +0200
+++ gdm-3.18.0/data/pam-redhat/gdm-password.pam 2015-10-10 15:17:40.749753817 +0200
@@ -1,4 +1,4 @@
-auth [success=done ignore=ignore default=bad] pam_selinux_permit.so
+auth [success=done ignore=ignore default=bad] pam_sepermit.so
auth substack password-auth
auth optional pam_gnome_keyring.so
auth include postlogin

335
gdm.spec
View File

@ -1,99 +1,84 @@
%define gdm_uid 53
%define gdm_gid 53
%define majver %(echo %version | cut -d. -f1-2)
%define majver %(echo %version | cut -d. -f1)
Name: gdm
Version: 3.12.2
Release: 2mamba
Version: 48.0
Release: 1mamba
Summary: The GNOME Display Manager, a graphical login program
Group: Graphical Desktop/Applications/Other
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.gnome.org
Source: ftp://ftp.gnome.org/pub/gnome/sources/gdm/%{majver}/gdm-%{version}.tar.xz
Patch0: %{name}-2.32.1-remove-pam_console.patch
Patch1: %{name}-3.4.1-save-root-window.patch
Patch2: %{name}-3.4.1-plymouth.patch
Patch3: gdm-3.12.2-pam-openmamba.patch
URL: https://www.gnome.org
Source: https://download.gnome.org/sources/gdm/%{majver}/gdm-%{version}.tar.xz
Patch0: gdm-44.0-pam-openmamba.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libaccountsservice-devel
BuildRequires: libatk-devel
BuildRequires: libaudit-devel
BuildRequires: libbzip2-devel
BuildRequires: libcairo-devel
BuildRequires: libcanberra-devel
BuildRequires: libexpat-devel
BuildRequires: libffi-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel
BuildRequires: libgraphite2-devel
BuildRequires: libgtk-devel
BuildRequires: libharfbuzz-devel
BuildRequires: libicu-devel
BuildRequires: libnspr-devel
BuildRequires: libnss-devel
BuildRequires: libpango-devel
BuildRequires: libpng-devel
BuildRequires: libpthread-stubs-devel
BuildRequires: libselinux-devel
BuildRequires: libstdc++6-devel
BuildRequires: libwrap-devel
BuildRequires: libX11-devel
BuildRequires: libXau-devel
BuildRequires: libxcb-devel
BuildRequires: libXdmcp-devel
BuildRequires: libXext-devel
BuildRequires: libXrandr-devel
BuildRequires: libXrender-devel
BuildRequires: libz-devel
BuildRequires: pam-devel
BuildRequires: systemd-devel
BuildRequires: upower-devel
BuildRequires: libaccountsservice-devel
BuildRequires: libaudit-devel
BuildRequires: libgcc
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel
BuildRequires: libgtk3-devel
BuildRequires: libgudev-devel
BuildRequires: libjson-glib-devel
BuildRequires: libkeyutils-devel
BuildRequires: libpam-devel
BuildRequires: libselinux-devel
BuildRequires: libsystemd-devel
BuildRequires: libxcb-devel
## AUTOBUILDREQ-END
BuildRequires: dconf
Requires: ConsoleKit
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: plymouth-devel
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Provides: user(gdm)
Provides: group(gdm)
%description
GDM is the GNOME Display Manager, a graphical login program.
%package devel
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
GDM is the GNOME Display Manager, a graphical login program.
This package contains static libraries and header files needed for development.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Static libraries and headers for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Provides: gdm-devel
Obsoletes: gdm-devel < 41.3
%description devel
%description -n lib%{name}-devel
GDM is the GNOME Display Manager, a graphical login program.
This package contains static libraries and header files need for development.
This package contains static libraries and header files needed for development.
%prep
%setup -q
#%patch0 -p1
#%patch1 -p1
#%patch2 -p1
%patch3 -p1
%patch 0 -p1
%build
#libtoolize
#autoreconf
%configure \
--disable-scrollkeeper \
--with-plymouth \
--with-default-pam-config=redhat \
--with-systemd
%meson \
-Dplymouth=enabled \
-Ddefault-pam-config=redhat
%make
%meson_build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%meson_install
%find_lang %{name}
install -d -m0755 %{buildroot}/%{_localstatedir}/lib/gdm
install -d -m0755 %{buildroot}/%{_localstatedir}/cache/gdm
%find_lang %{name} --all-name --with-gnome
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -132,104 +117,210 @@ if [ $1 -eq 0 ]; then
fi
exit 0
%files -f %{name}.lang
%defattr(-,root,root)
#%dir %{_sysconfdir}/dconf/db/gdm.d
#%dir %{_sysconfdir}/dconf/db/gdm.d/locks
#%{_sysconfdir}/dconf/db/gdm.d/00-upstream-settings
#%{_sysconfdir}/dconf/db/gdm.d/locks/00-upstream-settings-locks
#%{_sysconfdir}/dconf/profile/gdm
%{_sysconfdir}/dbus-1/system.d/gdm.conf
#%{_sysconfdir}/gconf/schemas/gdm-simple-greeter.schemas
%config(noreplace) %{_sysconfdir}/gdm/Init/Default
%{_sysconfdir}/gdm/PostLogin/Default.sample
%{_sysconfdir}/gdm/PostSession/Default
%{_sysconfdir}/gdm/PreSession/Default
%{_sysconfdir}/gdm/Xsession
%config(noreplace) %{_sysconfdir}/gdm/custom.conf
%{_sysconfdir}/pam.d/gdm
%{_sysconfdir}/pam.d/gdm-autologin
%{_sysconfdir}/pam.d/gdm-fingerprint
%{_sysconfdir}/pam.d/gdm-launch-environment
%{_sysconfdir}/pam.d/gdm-password
%{_sysconfdir}/pam.d/gdm-pin
%{_sysconfdir}/pam.d/gdm-smartcard
%{_bindir}/gdm-screenshot
/lib/systemd/system/gdm.service
%{_libdir}/libgdm.so.*
#%{_libdir}/libgdmsimplegreeter.so.*
%{_libdir}/girepository-1.0/Gdm-1.0.typelib
#%dir %{_libdir}/gdm
#%dir %{_libdir}/gdm/simple-greeter
#%dir %{_libdir}/gdm/simple-greeter/extensions
#%{_libdir}/gdm/simple-greeter/extensions/lib*
%{_libexecdir}/gdm-*
%{_bindir}/gdm-config
%{_bindir}/gdmflexiserver
%{_sbindir}/gdm
#%{_sbindir}/gdm-binary
%{_unitdir}/gdm.service
%{_userunitdir}/gnome-session@gnome-login.target.d/session.conf
%{_udevrulesdir}/61-gdm.rules
%{_datadir}/polkit-1/rules.d/20-gdm.rules
%dir %{_datadir}/gdm
%dir %{_datadir}/gdm/greeter
%{_datadir}/gdm/greeter/*
#%dir %{_datadir}/gdm/simple-greeter
#%{_datadir}/gdm/simple-greeter/*
%{_datadir}/gdm/gdb-cmd
#%{_datadir}/gdm/gdm-greeter-login-window.ui
%{_datadir}/gdm/gdm.schemas
%{_datadir}/gdm/greeter-dconf-defaults
%{_datadir}/gdm/locale.alias
%{_datadir}/dconf/profile/gdm
%{_datadir}/glib-2.0/schemas/org.gnome.login-screen.gschema.xml
#%{_datadir}/gnome-session/sessions/gdm-fallback.session
%{_datadir}/gnome-session/sessions/gdm-shell.session
%{_datadir}/gnome-session/sessions/gnome-login.session
%{_datadir}/help/C/gdm/*
%lang(ca) %{_datadir}/help/ca/gdm/*
%lang(de) %{_datadir}/help/de/gdm/*
%lang(el) %{_datadir}/help/el/gdm/*
%lang(en_GB) %{_datadir}/help/en_GB/gdm/*
%lang(es) %{_datadir}/help/es/gdm/*
%lang(fr) %{_datadir}/help/fr/gdm/*
%lang(gl) %{_datadir}/help/gl/gdm/*
%lang(id) %{_datadir}/help/id/gdm/*
%lang(it) %{_datadir}/help/it/gdm/*
%lang(ko) %{_datadir}/help/ko/gdm/*
%lang(oc) %{_datadir}/help/oc/gdm/*
%lang(pt_BR) %{_datadir}/help/pt_BR/gdm/*
%lang(ru) %{_datadir}/help/ru/gdm/*
%lang(sl) %{_datadir}/help/sl/gdm/*
%lang(sv) %{_datadir}/help/sv/gdm/*
%lang(te) %{_datadir}/help/te/gdm/*
%lang(uk) %{_datadir}/help/uk/gdm/*
%lang(zh_CN) %{_datadir}/help/zh_CN/gdm/*
%{_datadir}/icons/hicolor/*/apps/gdm-*.png
#%{_datadir}/omf/gdm/gdm-*.omf
%{_datadir}/pixmaps/gdm*.png
%{_datadir}/pixmaps/nobody.png
%{_datadir}/pixmaps/nohost.png
%attr(1770,root,gdm) %dir %{_localstatedir}/lib/gdm
#%attr(-,root,gdm) %dir %{_localstatedir}/lib/gdm/.gconf.mandatory
#%attr(-,root,gdm) %config(noreplace) %{_localstatedir}/lib/gdm/.gconf.mandatory/*
#%attr(-,root,gdm) %config(noreplace) %{_localstatedir}/lib/gdm/.gconf.path
%attr(-,gdm,gdm) %dir %{_localstatedir}/cache/gdm
%attr(-,gdm,gdm) %dir %{_localstatedir}/log/gdm
%attr(-,gdm,gdm) %dir %{_localstatedir}/run/gdm
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libgdm.so.*
%{_libdir}/girepository-1.0/Gdm-1.0.typelib
%{_libdir}/security/pam_gdm.so
%{_libexecdir}/gdm-*
%doc AUTHORS COPYING
%files devel
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/gdm
%{_includedir}/gdm/*
%{_libdir}/libgdm.a
%{_libdir}/libgdm.la
%{_libdir}/libgdm.so
#%{_libdir}/libgdmsimplegreeter.a
#%{_libdir}/libgdmsimplegreeter.la
#%{_libdir}/libgdmsimplegreeter.so
%{_datadir}/gir-1.0/Gdm-1.0.gir
%{_libdir}/pkgconfig/gdm.pc
#%{_libdir}/pkgconfig/gdmsimplegreeter.pc
%{_libdir}/pkgconfig/gdm-pam-extensions.pc
#%doc ChangeLog NEWS README
%changelog
* Tue Mar 18 2025 Automatic Build System <autodist@openmamba.org> 48.0-1mamba
- automatic version update by autodist
* Wed Oct 09 2024 Automatic Build System <autodist@openmamba.org> 47.0-1mamba
- automatic version update by autodist
* Sat Jun 29 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 46.2-2mamba
- provide user and group gdm
* Fri May 31 2024 Automatic Build System <autodist@openmamba.org> 46.2-1mamba
- automatic version update by autodist
* Tue Mar 19 2024 Automatic Build System <autodist@openmamba.org> 46.0-1mamba
- automatic version update by autodist
* Fri Sep 15 2023 Automatic Build System <autodist@mambasoft.it> 45.0.1-1mamba
- automatic version update by autodist
* Sat May 06 2023 Automatic Build System <autodist@mambasoft.it> 44.1-1mamba
- automatic version update by autodist
* Thu Mar 30 2023 Automatic Build System <autodist@mambasoft.it> 44.0-1mamba
- automatic version update by autodist
* Sat Sep 24 2022 Automatic Build System <autodist@mambasoft.it> 43.0-1mamba
- automatic version update by autodist
* Tue Mar 22 2022 Automatic Build System <autodist@mambasoft.it> 42.0-1mamba
- automatic version update by autodist
* Wed Jan 26 2022 Automatic Build System <autodist@mambasoft.it> 41.3-1mamba
- automatic version update by autodist
* Wed Sep 22 2021 Automatic Build System <autodist@mambasoft.it> 41.0-1mamba
- automatic version update by autodist
* Fri Jul 23 2021 Automatic Build System <autodist@mambasoft.it> 40.1-1mamba
- automatic version update by autodist
* Sat May 15 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 40.0-1mamba
- update to 40.0
* Wed Dec 16 2020 Automatic Build System <autodist@mambasoft.it> 3.38.2.1-1mamba
- automatic version update by autodist
* Mon Nov 09 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 3.38.2-1mamba
- update to 3.38.2
* Wed Oct 14 2020 Automatic Build System <autodist@mambasoft.it> 3.38.1-1mamba
- automatic version update by autodist
* Tue Oct 13 2020 Automatic Build System <autodist@mambasoft.it> 3.38.0-1mamba
- automatic version update by autodist
* Tue Jul 14 2020 Automatic Build System <autodist@mambasoft.it> 3.36.3-1mamba
- automatic version update by autodist
* Tue May 05 2020 Automatic Build System <autodist@mambasoft.it> 3.36.2-1mamba
- automatic version update by autodist
* Mon Oct 07 2019 Automatic Build System <autodist@mambasoft.it> 3.34.1-1mamba
- automatic version update by autodist
* Fri Oct 04 2019 Automatic Build System <autodist@mambasoft.it> 3.34.0-1mamba
- automatic version update by autodist
* Sat Mar 16 2019 Automatic Build System <autodist@mambasoft.it> 3.32.0-1mamba
- automatic version update by autodist
* Wed Feb 27 2019 Automatic Build System <autodist@mambasoft.it> 3.30.3-1mamba
- automatic version update by autodist
* Sun Nov 11 2018 Automatic Build System <autodist@mambasoft.it> 3.30.2-1mamba
- automatic version update by autodist
* Fri Oct 05 2018 Automatic Build System <autodist@mambasoft.it> 3.30.1-1mamba
- automatic version update by autodist
* Sun Sep 23 2018 Automatic Build System <autodist@mambasoft.it> 3.30.0-1mamba
- automatic version update by autodist
* Thu Aug 23 2018 Automatic Build System <autodist@mambasoft.it> 3.28.4-1mamba
- automatic version update by autodist
* Tue Aug 14 2018 Automatic Build System <autodist@mambasoft.it> 3.28.3-1mamba
- automatic version update by autodist
* Mon Jun 18 2018 Automatic Build System <autodist@mambasoft.it> 3.28.2-1mamba
- automatic version update by autodist
* Wed Apr 11 2018 Automatic Build System <autodist@mambasoft.it> 3.28.1-1mamba
- automatic version update by autodist
* Mon Mar 26 2018 Automatic Build System <autodist@mambasoft.it> 3.28.0-1mamba
- automatic version update by autodist
* Thu Nov 30 2017 Automatic Build System <autodist@mambasoft.it> 3.26.2.1-1mamba
- automatic update by autodist
* Wed Oct 11 2017 Automatic Build System <autodist@mambasoft.it> 3.26.1-1mamba
- automatic version update by autodist
* Wed May 10 2017 Automatic Build System <autodist@mambasoft.it> 3.24.2-1mamba
- automatic version update by autodist
* Mon Apr 24 2017 Automatic Build System <autodist@mambasoft.it> 3.24.1-1mamba
- automatic version update by autodist
* Mon Mar 06 2017 Automatic Build System <autodist@mambasoft.it> 3.22.3-1mamba
- automatic version update by autodist
* Thu Mar 02 2017 Automatic Build System <autodist@mambasoft.it> 3.22.2-1mamba
- automatic version update by autodist
* Mon Oct 17 2016 Automatic Build System <autodist@mambasoft.it> 3.22.1-1mamba
- automatic version update by autodist
* Wed Apr 20 2016 Automatic Build System <autodist@mambasoft.it> 3.20.1-1mamba
- automatic version update by autodist
* Sat Apr 09 2016 Automatic Build System <autodist@mambasoft.it> 3.20.0-1mamba
- automatic version update by autodist
* Tue Nov 24 2015 Automatic Build System <autodist@mambasoft.it> 3.18.2-1mamba
- automatic version update by autodist
* Mon Oct 12 2015 Automatic Build System <autodist@mambasoft.it> 3.18.0-1mamba
- automatic version update by autodist
* Thu Sep 17 2015 Automatic Build System <autodist@mambasoft.it> 3.16.3-1mamba
- automatic version update by autodist
* Wed Aug 19 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 3.16.2-2mamba
- remove requirement for ConsoleKit
* Thu Jul 02 2015 Automatic Build System <autodist@mambasoft.it> 3.16.2-1mamba
- automatic version update by autodist
* Fri Apr 17 2015 Automatic Build System <autodist@mambasoft.it> 3.16.1.1-1mamba
- automatic version update by autodist
* Thu Apr 16 2015 Automatic Build System <autodist@mambasoft.it> 3.16.1-1mamba
- automatic version update by autodist
* Thu Oct 16 2014 Automatic Build System <autodist@mambasoft.it> 3.14.1-1mamba
- automatic update by autodist
* Fri Sep 26 2014 Automatic Build System <autodist@mambasoft.it> 3.14.0-1mamba
- automatic version update by autodist
* Thu Jun 26 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 3.12.2-2mamba
- update pam patch for openmamba