From 09722b303c8a748dfbe9f4d0698715d89015bff15ab7f31e091c1e632c48610c Mon Sep 17 00:00:00 2001 From: OBS User autobuild Date: Tue, 8 Dec 2009 09:25:27 +0000 Subject: [PATCH] checked in OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gdm?expand=0&rev=108 --- gdm-2.28.0.tar.bz2 | 3 + gdm-2.29.1.tar.bz2 | 3 - gdm-build-fixes.patch | 13 + gdm-devkit-power.patch | 186 ++++++ gdm-greeter-greater-ui.patch | 544 ++++++++++++++++-- gdm-helper-directory.patch | 65 +-- gdm-keyboard-from-sysconfig.patch | 104 ++++ gdm-save-panel-space-on-low-resolutions.patch | 24 +- gdm.changes | 83 --- gdm.spec | 33 +- 10 files changed, 848 insertions(+), 210 deletions(-) create mode 100644 gdm-2.28.0.tar.bz2 delete mode 100644 gdm-2.29.1.tar.bz2 create mode 100644 gdm-build-fixes.patch create mode 100644 gdm-devkit-power.patch create mode 100644 gdm-keyboard-from-sysconfig.patch diff --git a/gdm-2.28.0.tar.bz2 b/gdm-2.28.0.tar.bz2 new file mode 100644 index 0000000..1a16303 --- /dev/null +++ b/gdm-2.28.0.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b83db2613192df8a8865ca59877de5181df6247cd17be42418cc5a39d314d5a4 +size 2314347 diff --git a/gdm-2.29.1.tar.bz2 b/gdm-2.29.1.tar.bz2 deleted file mode 100644 index 1aa2e55..0000000 --- a/gdm-2.29.1.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6ca5d04512cb51ea2288661f9e5786645485ede2e3d510b0998bd75ea1ce1ff5 -size 2337055 diff --git a/gdm-build-fixes.patch b/gdm-build-fixes.patch new file mode 100644 index 0000000..dbfd5b3 --- /dev/null +++ b/gdm-build-fixes.patch @@ -0,0 +1,13 @@ +Index: gdm-2.28.0/daemon/gdm-slave.c +=================================================================== +--- gdm-2.28.0.orig/daemon/gdm-slave.c ++++ gdm-2.28.0/daemon/gdm-slave.c +@@ -836,6 +836,8 @@ gdm_slave_parse_enriched_login (GdmSlave + } else { + return (g_strdup (username)); + } ++ ++ return NULL; + } + + gboolean diff --git a/gdm-devkit-power.patch b/gdm-devkit-power.patch new file mode 100644 index 0000000..29fae72 --- /dev/null +++ b/gdm-devkit-power.patch @@ -0,0 +1,186 @@ +From aa132a553b871a19a8d23fe8e9d93f736f2a4faf Mon Sep 17 00:00:00 2001 +From: Richard Hughes +Date: Mon, 28 Sep 2009 09:14:33 +0100 +Subject: [PATCH] Convert gdm from using gnome-power-manager to DeviceKit-power + +--- + configure.ac | 7 ++ + gui/simple-greeter/Makefile.am | 4 + + gui/simple-greeter/gdm-greeter-login-window.c | 84 ++++++------------------- + 3 files changed, 31 insertions(+), 64 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 756890a..2cae1cf 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -51,6 +51,7 @@ LIBXKLAVIER_REQUIRED_VERSION=4.0 + LIBCANBERRA_GTK_REQUIRED_VERSION=0.4 + #FONTCONFIG_REQUIRED_VERSION=2.6.0 + FONTCONFIG_REQUIRED_VERSION=2.5.0 ++DEVKIT_POWER_REQUIRED_VERSION=008 + + EXTRA_COMPILE_WARNINGS(yes) + +@@ -103,6 +104,12 @@ PKG_CHECK_MODULES(GCONF, + AC_SUBST(GCONF_CFLAGS) + AC_SUBST(GCONF_LIBS) + ++PKG_CHECK_MODULES(DEVKIT_POWER, ++ devkit-power-gobject >= $DEVKIT_POWER_REQUIRED_VERSION ++) ++AC_SUBST(DEVKIT_POWER_CFLAGS) ++AC_SUBST(DEVKIT_POWER_LIBS) ++ + PKG_CHECK_MODULES(SIMPLE_GREETER, + dbus-glib-1 >= $DBUS_GLIB_REQUIRED_VERSION + gtk+-2.0 >= $GTK_REQUIRED_VERSION +diff --git a/gui/simple-greeter/Makefile.am b/gui/simple-greeter/Makefile.am +index 8c9ae46..4c06bc3 100644 +--- a/gui/simple-greeter/Makefile.am ++++ b/gui/simple-greeter/Makefile.am +@@ -18,6 +18,8 @@ AM_CPPFLAGS = \ + -DSBINDIR=\""$(sbindir)"\" \ + -DGDM_CACHE_DIR=\""$(localstatedir)/cache/gdm"\" \ + -DAT_SPI_REGISTRYD_DIR="\"$(AT_SPI_REGISTRYD_DIR)\"" \ ++ $(DEVKIT_POWER_CFLAGS) \ ++ -DI_KNOW_THE_DEVICEKIT_POWER_API_IS_SUBJECT_TO_CHANGE \ + $(DISABLE_DEPRECATED_CFLAGS) \ + $(GTK_CFLAGS) \ + $(SIMPLE_GREETER_CFLAGS) \ +@@ -90,6 +92,7 @@ test_greeter_login_window_LDADD = \ + libgdmuser.la \ + $(COMMON_LIBS) \ + $(SIMPLE_GREETER_LIBS) \ ++ $(DEVKIT_POWER_LIBS) \ + $(RBAC_LIBS) \ + $(NULL) + +@@ -324,6 +327,7 @@ gdm_simple_greeter_LDADD = \ + $(SIMPLE_GREETER_LIBS) \ + $(RBAC_LIBS) \ + $(LIBXKLAVIER_LIBS) \ ++ $(DEVKIT_POWER_LIBS) \ + $(NULL) + + gladedir = $(pkgdatadir) +diff --git a/gui/simple-greeter/gdm-greeter-login-window.c b/gui/simple-greeter/gdm-greeter-login-window.c +index c7ea5d6..7d4ef83 100644 +--- a/gui/simple-greeter/gdm-greeter-login-window.c ++++ b/gui/simple-greeter/gdm-greeter-login-window.c +@@ -56,6 +56,8 @@ + #include + #include + ++#include ++ + #include "gdm-settings-client.h" + #include "gdm-settings-keys.h" + #include "gdm-profile.h" +@@ -79,10 +81,6 @@ + #define CK_SEAT_INTERFACE "org.freedesktop.ConsoleKit.Seat" + #define CK_SESSION_INTERFACE "org.freedesktop.ConsoleKit.Session" + +-#define GPM_DBUS_NAME "org.freedesktop.PowerManagement" +-#define GPM_DBUS_PATH "/org/freedesktop/PowerManagement" +-#define GPM_DBUS_INTERFACE "org.freedesktop.PowerManagement" +- + #define GLADE_XML_FILE "gdm-greeter-login-window.glade" + + #define KEY_GREETER_DIR "/apps/gdm/simple-greeter" +@@ -480,40 +478,15 @@ adjust_other_login_visibility(GdmGreeterLoginWindow *login_window) + static gboolean + can_suspend (GdmGreeterLoginWindow *login_window) + { +- DBusGConnection *connection; +- DBusGProxy *proxy; +- GError *error; +- gboolean ret; +- gboolean res; +- +- error = NULL; +- connection = dbus_g_bus_get (DBUS_BUS_SESSION, &error); +- if (error != NULL) { +- g_warning ("Couldn't connect to power manager: %s", error->message); +- g_error_free (error); +- return FALSE; +- } +- proxy = dbus_g_proxy_new_for_name (connection, +- GPM_DBUS_NAME, +- GPM_DBUS_PATH, +- GPM_DBUS_INTERFACE); +- ret = FALSE; +- +- res = dbus_g_proxy_call (proxy, "CanSuspend", +- &error, +- G_TYPE_INVALID, +- G_TYPE_BOOLEAN, +- &ret, +- G_TYPE_INVALID); +- if (! res) { +- if (error != NULL) { +- g_warning ("Could not ask power manager if user can suspend: %s", +- error->message); +- g_error_free (error); +- } +- ret = FALSE; +- } ++ gboolean ret; ++ DkpClient *dkp_client; + ++ /* use DeviceKit-power to get data */ ++ dkp_client = dkp_client_new (); ++ g_object_get (dkp_client, ++ "can-suspend", &ret, ++ NULL); ++ g_object_unref (dkp_client); + return ret; + } + +@@ -655,36 +628,19 @@ do_disconnect (GdmGreeterLoginWindow *login_window) + static void + do_suspend (GdmGreeterLoginWindow *login_window) + { +- GError *error; +- DBusGConnection *connection; +- DBusGProxy *proxy; ++ gboolean ret; ++ DkpClient *dkp_client; ++ GError *error = NULL; + +- g_debug ("GdmGreeterLoginWindow: Suspend button clicked"); +- +- error = NULL; +- connection = dbus_g_bus_get (DBUS_BUS_SESSION, &error); +- if (error != NULL) { ++ /* use DeviceKit-power to get data */ ++ dkp_client = dkp_client_new (); ++ ret = dkp_client_suspend (dkp_client, &error); ++ if (!ret) { + g_warning ("Couldn't suspend: %s", error->message); + g_error_free (error); + return; + } +- proxy = dbus_g_proxy_new_for_name (connection, +- GPM_DBUS_NAME, +- GPM_DBUS_PATH, +- GPM_DBUS_INTERFACE); +- error = NULL; +- dbus_g_proxy_call (proxy, +- "Suspend", +- &error, +- G_TYPE_INVALID, +- G_TYPE_INVALID); +- if (error != NULL) { +- g_warning ("Couldn't suspend: %s", error->message); +- g_error_free (error); +- return; +- } +- +- g_object_unref (proxy); ++ g_object_unref (dkp_client); + } + + static void +-- +1.6.4.4 + diff --git a/gdm-greeter-greater-ui.patch b/gdm-greeter-greater-ui.patch index 466299f..28852a3 100644 --- a/gdm-greeter-greater-ui.patch +++ b/gdm-greeter-greater-ui.patch @@ -1,13 +1,15 @@ -Index: gdm-2.29.1/gui/simple-greeter/gdm-greeter-login-window.c +Index: gdm-2.28.0/gui/simple-greeter/gdm-greeter-login-window.c =================================================================== ---- gdm-2.29.1.orig/gui/simple-greeter/gdm-greeter-login-window.c -+++ gdm-2.29.1/gui/simple-greeter/gdm-greeter-login-window.c -@@ -887,35 +887,6 @@ on_user_unchosen (GdmUserChooserWidget +--- gdm-2.28.0.orig/gui/simple-greeter/gdm-greeter-login-window.c ++++ gdm-2.28.0/gui/simple-greeter/gdm-greeter-login-window.c +@@ -1199,29 +1199,6 @@ on_user_unchosen (GdmUserChooserWidget do_cancel (login_window); } --static void --rotate_computer_info (GdmGreeterLoginWindow *login_window) +-static gboolean +-on_computer_info_label_button_press (GtkWidget *widget, +- GdkEventButton *event, +- GdmGreeterLoginWindow *login_window) -{ - GtkWidget *notebook; - int current_page; @@ -24,29 +26,13 @@ Index: gdm-2.29.1/gui/simple-greeter/gdm-greeter-login-window.c - gtk_notebook_set_current_page (GTK_NOTEBOOK (notebook), 0); - } - --} -- --static gboolean --on_computer_info_label_button_press (GtkWidget *widget, -- GdkEventButton *event, -- GdmGreeterLoginWindow *login_window) --{ -- rotate_computer_info (login_window); - return FALSE; -} - static char * file_read_one_line (const char *filename) { -@@ -1014,16 +985,19 @@ create_computer_info (GdmGreeterLoginWin - if (strcmp (localhost, "localhost") == 0 || - strcmp (localhost, "localhost.localdomain") == 0) { - -- rotate_computer_info (login_window); -+ gtk_widget_hide (label); - } - } - +@@ -1314,9 +1291,12 @@ create_computer_info (GdmGreeterLoginWin label = glade_xml_get_widget (login_window->priv->xml, "computer-info-version-label"); if (label != NULL) { char *version; @@ -60,7 +46,7 @@ Index: gdm-2.29.1/gui/simple-greeter/gdm-greeter-login-window.c } gdm_profile_end (NULL); -@@ -1151,9 +1125,6 @@ load_theme (GdmGreeterLoginWindow *login +@@ -1455,9 +1435,6 @@ load_theme (GdmGreeterLoginWindow *login create_computer_info (login_window); @@ -70,11 +56,11 @@ Index: gdm-2.29.1/gui/simple-greeter/gdm-greeter-login-window.c switch_mode (login_window, MODE_SELECTION); gdm_profile_end (NULL); -Index: gdm-2.29.1/gui/simple-greeter/gdm-greeter-login-window.glade +Index: gdm-2.28.0/gui/simple-greeter/gdm-greeter-login-window.glade =================================================================== ---- gdm-2.29.1.orig/gui/simple-greeter/gdm-greeter-login-window.glade -+++ gdm-2.29.1/gui/simple-greeter/gdm-greeter-login-window.glade -@@ -1,601 +1,250 @@ +--- gdm-2.28.0.orig/gui/simple-greeter/gdm-greeter-login-window.glade ++++ gdm-2.28.0/gui/simple-greeter/gdm-greeter-login-window.glade +@@ -1,789 +1,374 @@ - - - @@ -415,6 +401,200 @@ Index: gdm-2.29.1/gui/simple-greeter/gdm-greeter-login-window.glade - 6 - - +- +- True +- True +- gtk-disconnect +- True +- GTK_RELIEF_NORMAL +- True +- +- +- +- +- +- True +- True +- True +- True +- GTK_RELIEF_NORMAL +- True +- +- +- +- True +- False +- 0 +- +- +- +- True +- media-playback-pause +- 16 +- 0.5 +- 0.5 +- 0 +- 0 +- +- +- 0 +- True +- True +- +- +- +- +- +- True +- Suspend +- False +- False +- GTK_JUSTIFY_LEFT +- False +- False +- 0 +- 0.5 +- 0 +- 0 +- PANGO_ELLIPSIZE_NONE +- -1 +- False +- 0 +- +- +- 0 +- True +- True +- +- +- +- +- +- +- +- +- +- True +- True +- True +- True +- GTK_RELIEF_NORMAL +- True +- +- +- +- True +- False +- 0 +- +- +- +- True +- view-refresh +- 16 +- 0.5 +- 0.5 +- 0 +- 0 +- +- +- 0 +- True +- True +- +- +- +- +- +- True +- Restart +- False +- False +- GTK_JUSTIFY_LEFT +- False +- False +- 0 +- 0.5 +- 0 +- 0 +- PANGO_ELLIPSIZE_NONE +- -1 +- False +- 0 +- +- +- 0 +- True +- True +- +- +- +- +- +- +- +- +- +- True +- True +- True +- True +- GTK_RELIEF_NORMAL +- True +- +- +- +- True +- False +- 0 +- +- +- +- True +- system-shutdown +- 16 +- 0.5 +- 0.5 +- 0 +- 0 +- +- +- 0 +- True +- True +- +- +- +- +- +- True +- Shut Down +- False +- False +- GTK_JUSTIFY_LEFT +- False +- False +- 0.5 +- 0.5 +- 0 +- 0 +- PANGO_ELLIPSIZE_NONE +- -1 +- False +- 0 +- +- +- 0 +- True +- True +- +- +- +- +- +- +- +- - - True - True @@ -574,9 +754,6 @@ Index: gdm-2.29.1/gui/simple-greeter/gdm-greeter-login-window.glade - -1 - False - 0 -- -- -- - - - 0 @@ -596,9 +773,6 @@ Index: gdm-2.29.1/gui/simple-greeter/gdm-greeter-login-window.glade - - True - True -- -- -- - - - 0 @@ -698,7 +872,7 @@ Index: gdm-2.29.1/gui/simple-greeter/gdm-greeter-login-window.glade + vertical + 10 + -+ ++ + True + 12 + @@ -790,9 +964,6 @@ Index: gdm-2.29.1/gui/simple-greeter/gdm-greeter-login-window.glade + + + True -+ -+ -+ + + + False @@ -807,9 +978,6 @@ Index: gdm-2.29.1/gui/simple-greeter/gdm-greeter-login-window.glade + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + True -+ -+ -+ + + + 1 @@ -856,11 +1024,11 @@ Index: gdm-2.29.1/gui/simple-greeter/gdm-greeter-login-window.glade + 6 + end + -+ -+ gtk-cancel ++ ++ gtk-disconnect + True + True -+ False ++ True + True + + @@ -870,12 +1038,142 @@ Index: gdm-2.29.1/gui/simple-greeter/gdm-greeter-login-window.glade + + + ++ ++ True ++ True ++ True ++ True ++ True ++ ++ ++ True ++ ++ ++ True ++ 16 ++ media-playback-pause ++ ++ ++ 0 ++ ++ ++ ++ ++ True ++ 0 ++ Suspend ++ ++ ++ 1 ++ ++ ++ ++ ++ ++ ++ False ++ False ++ 1 ++ ++ ++ ++ ++ True ++ True ++ True ++ True ++ True ++ ++ ++ True ++ ++ ++ True ++ 16 ++ view-refresh ++ ++ ++ 0 ++ ++ ++ ++ ++ True ++ 0 ++ Restart ++ ++ ++ 1 ++ ++ ++ ++ ++ ++ ++ False ++ False ++ 2 ++ ++ ++ ++ ++ True ++ True ++ True ++ True ++ True ++ ++ ++ True ++ ++ ++ True ++ 16 ++ system-shutdown ++ ++ ++ 0 ++ ++ ++ ++ ++ True ++ Shut Down ++ ++ ++ 1 ++ ++ ++ ++ ++ ++ ++ False ++ False ++ 3 ++ ++ ++ ++ ++ gtk-cancel ++ True ++ True ++ True ++ True ++ ++ ++ False ++ False ++ 4 ++ ++ ++ + + True + True + True + True -+ False ++ True + + + True @@ -905,7 +1203,7 @@ Index: gdm-2.29.1/gui/simple-greeter/gdm-greeter-login-window.glade + + False + False -+ 1 ++ 5 + + + @@ -924,11 +1222,11 @@ Index: gdm-2.29.1/gui/simple-greeter/gdm-greeter-login-window.glade + + -Index: gdm-2.29.1/gui/simple-greeter/gdm-greeter-login-window.glade.new +Index: gdm-2.28.0/gui/simple-greeter/gdm-greeter-login-window.glade.new =================================================================== --- /dev/null -+++ gdm-2.29.1/gui/simple-greeter/gdm-greeter-login-window.glade.new -@@ -0,0 +1,250 @@ ++++ gdm-2.28.0/gui/simple-greeter/gdm-greeter-login-window.glade.new +@@ -0,0 +1,374 @@ + + + @@ -953,7 +1251,7 @@ Index: gdm-2.29.1/gui/simple-greeter/gdm-greeter-login-window.glade.new + vertical + 10 + -+ ++ + True + 12 + @@ -1045,9 +1343,6 @@ Index: gdm-2.29.1/gui/simple-greeter/gdm-greeter-login-window.glade.new + + + True -+ -+ -+ + + + False @@ -1062,9 +1357,6 @@ Index: gdm-2.29.1/gui/simple-greeter/gdm-greeter-login-window.glade.new + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + True -+ -+ -+ + + + 1 @@ -1111,11 +1403,11 @@ Index: gdm-2.29.1/gui/simple-greeter/gdm-greeter-login-window.glade.new + 6 + end + -+ -+ gtk-cancel ++ ++ gtk-disconnect + True + True -+ False ++ True + True + + @@ -1125,12 +1417,142 @@ Index: gdm-2.29.1/gui/simple-greeter/gdm-greeter-login-window.glade.new + + + ++ ++ True ++ True ++ True ++ True ++ True ++ ++ ++ True ++ ++ ++ True ++ 16 ++ media-playback-pause ++ ++ ++ 0 ++ ++ ++ ++ ++ True ++ 0 ++ Suspend ++ ++ ++ 1 ++ ++ ++ ++ ++ ++ ++ False ++ False ++ 1 ++ ++ ++ ++ ++ True ++ True ++ True ++ True ++ True ++ ++ ++ True ++ ++ ++ True ++ 16 ++ view-refresh ++ ++ ++ 0 ++ ++ ++ ++ ++ True ++ 0 ++ Restart ++ ++ ++ 1 ++ ++ ++ ++ ++ ++ ++ False ++ False ++ 2 ++ ++ ++ ++ ++ True ++ True ++ True ++ True ++ True ++ ++ ++ True ++ ++ ++ True ++ 16 ++ system-shutdown ++ ++ ++ 0 ++ ++ ++ ++ ++ True ++ Shut Down ++ ++ ++ 1 ++ ++ ++ ++ ++ ++ ++ False ++ False ++ 3 ++ ++ ++ ++ ++ gtk-cancel ++ True ++ True ++ True ++ True ++ ++ ++ False ++ False ++ 4 ++ ++ ++ + + True + True + True + True -+ False ++ True + + + True @@ -1160,7 +1582,7 @@ Index: gdm-2.29.1/gui/simple-greeter/gdm-greeter-login-window.glade.new + + False + False -+ 1 ++ 5 + + + diff --git a/gdm-helper-directory.patch b/gdm-helper-directory.patch index 728f72b..7a28cb2 100644 --- a/gdm-helper-directory.patch +++ b/gdm-helper-directory.patch @@ -1,8 +1,8 @@ -Index: gdm-2.29.1/configure.ac -=================================================================== ---- gdm-2.29.1.orig/configure.ac -+++ gdm-2.29.1/configure.ac -@@ -990,6 +990,22 @@ fi +diff --git a/configure.ac b/configure.ac +index 8cd83c6..915b532 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -982,6 +982,22 @@ fi AC_SUBST(GDM_CUSTOM_CONF) AC_SUBST(GDM_OLD_CONF, '${gdmconfdir}/gdm.conf') @@ -25,7 +25,7 @@ Index: gdm-2.29.1/configure.ac dnl --------------------------------------------------------------------------- dnl - Check for XEvIE extension support dnl --------------------------------------------------------------------------- -@@ -1417,6 +1433,8 @@ echo " +@@ -1386,6 +1402,8 @@ echo " dmconfdir: ${dmconfdir} localstatedir: ${localstatedir} datadir: ${datadir} @@ -34,23 +34,23 @@ Index: gdm-2.29.1/configure.ac source code location: ${srcdir} compiler: ${CC} cflags: ${CFLAGS} -Index: gdm-2.29.1/daemon/Makefile.am -=================================================================== ---- gdm-2.29.1.orig/daemon/Makefile.am -+++ gdm-2.29.1/daemon/Makefile.am -@@ -18,6 +18,7 @@ AM_CPPFLAGS = \ - -DGDM_SCREENSHOT_DIR=\"$(GDM_SCREENSHOT_DIR)\" \ - -DGDM_CACHE_DIR=\""$(localstatedir)/cache/gdm"\" \ +diff --git a/daemon/Makefile.am b/daemon/Makefile.am +index 3daf924..10b0bd8 100644 +--- a/daemon/Makefile.am ++++ b/daemon/Makefile.am +@@ -16,6 +16,7 @@ AM_CPPFLAGS = \ + -DGNOMELOCALEDIR=\""$(datadir)/locale"\" \ + -DGDM_XAUTH_DIR=\"$(GDM_XAUTH_DIR)\" \ -DGDM_SESSION_DEFAULT_PATH=\"$(GDM_SESSION_DEFAULT_PATH)\" \ + -DCONSOLEKIT_DIR=\"$(CONSOLEKIT_DIR)\" \ $(DISABLE_DEPRECATED_CFLAGS) \ $(DAEMON_CFLAGS) \ $(XLIB_CFLAGS) \ -Index: gdm-2.29.1/daemon/gdm-server.c -=================================================================== ---- gdm-2.29.1.orig/daemon/gdm-server.c -+++ gdm-2.29.1/daemon/gdm-server.c -@@ -127,7 +127,7 @@ _gdm_server_query_ck_for_display_device +diff --git a/daemon/gdm-server.c b/daemon/gdm-server.c +index ba10386..d3476e7 100644 +--- a/daemon/gdm-server.c ++++ b/daemon/gdm-server.c +@@ -127,7 +127,7 @@ _gdm_server_query_ck_for_display_device (GdmServer *server) g_return_val_if_fail (GDM_IS_SERVER (server), NULL); error = NULL; @@ -59,10 +59,10 @@ Index: gdm-2.29.1/daemon/gdm-server.c server->priv->display_name); g_debug ("GdmServer: Running helper %s", command); -Index: gdm-2.29.1/data/greeter-autostart/Makefile.am -=================================================================== ---- gdm-2.29.1.orig/data/greeter-autostart/Makefile.am -+++ gdm-2.29.1/data/greeter-autostart/Makefile.am +diff --git a/data/greeter-autostart/Makefile.am b/data/greeter-autostart/Makefile.am +index 2f45a74..ea90455 100644 +--- a/data/greeter-autostart/Makefile.am ++++ b/data/greeter-autostart/Makefile.am @@ -5,7 +5,8 @@ edit = sed \ -e 's|@SYSCONFDIR[@]|$(sysconfdir)|g' \ -e 's|@LIBDIR[@]|$(libdir)|g' \ @@ -73,10 +73,10 @@ Index: gdm-2.29.1/data/greeter-autostart/Makefile.am %.desktop.in: %.desktop.in.in Makefile $(edit) $< >$@ -Index: gdm-2.29.1/data/greeter-autostart/gnome-settings-daemon.desktop.in.in -=================================================================== ---- gdm-2.29.1.orig/data/greeter-autostart/gnome-settings-daemon.desktop.in.in -+++ gdm-2.29.1/data/greeter-autostart/gnome-settings-daemon.desktop.in.in +diff --git a/data/greeter-autostart/gnome-settings-daemon.desktop.in.in b/data/greeter-autostart/gnome-settings-daemon.desktop.in.in +index b4b31e1..45131c9 100644 +--- a/data/greeter-autostart/gnome-settings-daemon.desktop.in.in ++++ b/data/greeter-autostart/gnome-settings-daemon.desktop.in.in @@ -1,8 +1,8 @@ [Desktop Entry] Type=Application @@ -88,16 +88,3 @@ Index: gdm-2.29.1/data/greeter-autostart/gnome-settings-daemon.desktop.in.in OnlyShowIn=GNOME; X-GNOME-Autostart-Phase=Initialization X-GNOME-Autostart-Notify=true -Index: gdm-2.29.1/data/greeter-autostart/at-spi-registryd-wrapper.desktop.in.in -=================================================================== ---- gdm-2.29.1.orig/data/greeter-autostart/at-spi-registryd-wrapper.desktop.in.in -+++ gdm-2.29.1/data/greeter-autostart/at-spi-registryd-wrapper.desktop.in.in -@@ -1,7 +1,7 @@ - [Desktop Entry] - Type=Application - _Name=AT SPI Registry Wrapper --Exec=@LIBEXECDIR@/at-spi-registryd -+Exec=@AT_SPI_REGISTRYD_DIR@/at-spi-registryd - OnlyShowIn=GNOME; - AutostartCondition=GNOME /desktop/gnome/interface/accessibility - X-GNOME-Autostart-Phase=Initialization diff --git a/gdm-keyboard-from-sysconfig.patch b/gdm-keyboard-from-sysconfig.patch new file mode 100644 index 0000000..329063e --- /dev/null +++ b/gdm-keyboard-from-sysconfig.patch @@ -0,0 +1,104 @@ +Index: gdm-2.26.1/daemon/gdm-session-direct.c +=================================================================== +--- gdm-2.26.1.orig/daemon/gdm-session-direct.c ++++ gdm-2.26.1/daemon/gdm-session-direct.c +@@ -45,6 +45,8 @@ + #include + #include + ++#include "gdm-sysconfig.h" ++ + #include "gdm-session-direct.h" + #include "gdm-session.h" + #include "gdm-session-private.h" +@@ -598,12 +600,88 @@ get_default_language_name (GdmSessionDir + return setlocale (LC_MESSAGES, NULL); + } + ++static char * ++_get_layout_name_from_sax_map (const char *layout) ++{ ++ char *map_file; ++ char **lines; ++ char **fields; ++ int i; ++ char *retval; ++ ++ if (!layout) ++ return NULL; ++ ++ if (!g_file_get_contents ("/usr/share/sax/sysp/maps/Keyboard.map", ++ &map_file, NULL, NULL)) ++ return NULL; ++ ++ lines = g_strsplit (map_file, "\n", 0); ++ g_free (map_file); ++ ++ retval = NULL; ++ for (i = 0; lines[i] != NULL; i++) { ++ if (lines[i][0] == '\n' || lines[i][0] == '#') ++ continue; ++ ++ fields = g_strsplit (lines[i], ":", 0); ++ ++ g_strstrip (fields[0]); ++ if (fields[0] && fields[1] && fields[2] && ++ strcmp (fields[0], layout) == 0) { ++ char *add_layouts; ++ ++ g_strstrip (fields[2]); ++ ++ add_layouts = strchr (fields[2], ','); ++ if (add_layouts) ++ add_layouts[0] = '\0'; ++ ++ retval = g_strdup (fields[2]); ++ g_strfreev (fields); ++ break; ++ } ++ ++ g_strfreev (fields); ++ } ++ ++ g_strfreev (lines); ++ ++ return retval; ++} ++ ++static char * ++_get_default_layout_name_from_sysconfig (void) ++{ ++ char *sysconfig_layout; ++ char *layout; ++ ++ sysconfig_layout = gdm_sysconfig_load_value ("/etc/sysconfig/keyboard", "KEYTABLE"); ++ if (!sysconfig_layout) ++ return NULL; ++ ++ if (g_str_has_suffix (sysconfig_layout, ".gz")) ++ *(sysconfig_layout + strlen (sysconfig_layout) - strlen (".gz")) = '\0'; ++ if (g_str_has_suffix (sysconfig_layout, ".map")) ++ *(sysconfig_layout + strlen (sysconfig_layout) - strlen (".map")) = '\0'; ++ ++ layout = _get_layout_name_from_sax_map (sysconfig_layout); ++ ++ if (layout) { ++ g_free (sysconfig_layout); ++ return layout; ++ } else ++ return sysconfig_layout; ++} ++ + static const char * + get_default_layout_name (GdmSessionDirect *session) + { +- if (session->priv->saved_layout != NULL) { ++ if (!session->priv->saved_layout) ++ session->priv->saved_layout = _get_default_layout_name_from_sysconfig (); ++ ++ if (session->priv->saved_layout) + return session->priv->saved_layout; +- } + + return "us"; + } diff --git a/gdm-save-panel-space-on-low-resolutions.patch b/gdm-save-panel-space-on-low-resolutions.patch index 5e7080e..8007fe6 100644 --- a/gdm-save-panel-space-on-low-resolutions.patch +++ b/gdm-save-panel-space-on-low-resolutions.patch @@ -1,16 +1,16 @@ -Index: gdm-2.29.1/gui/simple-greeter/gdm-greeter-panel.c +Index: gdm-2.25.92/gui/simple-greeter/gdm-greeter-panel.c =================================================================== ---- gdm-2.29.1.orig/gui/simple-greeter/gdm-greeter-panel.c -+++ gdm-2.29.1/gui/simple-greeter/gdm-greeter-panel.c -@@ -836,6 +836,7 @@ gdm_greeter_panel_init (GdmGreeterPanel +--- gdm-2.25.92.orig/gui/simple-greeter/gdm-greeter-panel.c ++++ gdm-2.25.92/gui/simple-greeter/gdm-greeter-panel.c +@@ -571,6 +571,7 @@ gdm_greeter_panel_init (GdmGreeterPanel { NaTray *tray; GtkWidget *spacer; + GdkScreen *screen; - int padding; gdm_profile_start (NULL); -@@ -964,7 +965,15 @@ gdm_greeter_panel_init (GdmGreeterPanel + +@@ -648,7 +649,15 @@ gdm_greeter_panel_init (GdmGreeterPanel panel->priv->clock = gdm_clock_widget_new (); gtk_box_pack_end (GTK_BOX (panel->priv->hbox), GTK_WIDGET (panel->priv->clock), FALSE, FALSE, 6); @@ -22,16 +22,16 @@ Index: gdm-2.29.1/gui/simple-greeter/gdm-greeter-panel.c + + /* If resolution is limited, hide clock to conserve horizontal space */ + -+ if (!screen || gdk_screen_get_width (screen) >= 1024) ++ if (!screen || gdk_screen_get_width (screen) > 1024) + gtk_widget_show (panel->priv->clock); tray = na_tray_new_for_screen (gtk_window_get_screen (GTK_WINDOW (panel)), GTK_ORIENTATION_HORIZONTAL); -Index: gdm-2.29.1/gui/simple-greeter/gdm-option-widget.c +Index: gdm-2.25.92/gui/simple-greeter/gdm-option-widget.c =================================================================== ---- gdm-2.29.1.orig/gui/simple-greeter/gdm-option-widget.c -+++ gdm-2.29.1/gui/simple-greeter/gdm-option-widget.c -@@ -645,8 +645,17 @@ gdm_option_widget_check_visibility (GdmO +--- gdm-2.25.92.orig/gui/simple-greeter/gdm-option-widget.c ++++ gdm-2.25.92/gui/simple-greeter/gdm-option-widget.c +@@ -618,8 +618,17 @@ gdm_option_widget_check_visibility (GdmO (widget->priv->number_of_top_rows > 0 || widget->priv->number_of_middle_rows > 1 || widget->priv->number_of_bottom_rows > 0)) { @@ -44,7 +44,7 @@ Index: gdm-2.29.1/gui/simple-greeter/gdm-option-widget.c + + /* If resolution is limited, hide labels to conserve horizontal space */ + -+ if (!screen || gdk_screen_get_width (screen) >= 1280) ++ if (!screen || gdk_screen_get_width (screen) > 1280) + gtk_widget_show (widget->priv->label); + diff --git a/gdm.changes b/gdm.changes index bd2a1e6..82ccf00 100644 --- a/gdm.changes +++ b/gdm.changes @@ -1,86 +1,3 @@ -------------------------------------------------------------------- -Thu Dec 3 11:13:08 CET 2009 - vuntz@opensuse.org - -- Update to version 2.29.1: - + A new desktop extension is now supported in GDM session desktop - files (normally found in /usr/share/xsessions). Setting the - X-GDM_BypassXsession key to true (X-GDM_BypassXsession=true) - will cause the Xsession script to not be used to launch the - session. This can be useful if you want to create a "failsafe" - xterm session. - + Fix makedist problem. -- Changes from version 2.29.0: - + Now GDM supports Include, Exclude, and IncludeAll configuration - options to allow the ability to configure which users are - displayed in the FaceBrowser. - + Now GDM supports better debugging. Users can set the - debug/Enable configuration option to turn on GDM debugging. - + The directory where GDM screenshots are placed has been moved - to its own directory: /var/run/gdm/greeter/GDM-Screenshot.png. - The screenshot directory can now be specified at build time via - the --with-screenshot-dir configure argument. - + Many simple-greeter Face Browser usability improvements. - + The simple-greeter Face Browser tree view search entry is now - obscured to help prevent accidental display of passwords. - + Shutdown and reboot functions are moved to a menu in the - simple-greeter panel instead of being presented as buttons. - The shutdown menu is better positioned on multi-monitor - displays. - + The simple-greeter panel notification area has been improved - and now honors the GConf setting for - /apps/notification_area_applet/prefs/padding. - + The entry field in the simple-greeter now has accessibility - labels so it will work better with accessibility programs. - + The clock in the simple-greeter panel no longer shows the date, - making the screen look a little cleaner. The date is moved to - the clock tooltip so it is still available. - + The simple-greeter now uses gethostname instead of - g_get_host_name since it is more reliable when the hostname - changes at runtime. - + The user switch applet now honors disable_lock_screen. The - option to lock screen is now not shown if disable_lock_screen - is set. - + The /var/run/gdm directory is better locked down. - + GDM no longer crashes on bad UTF-8 in the /etc/passwd file. - + When the worker dies, the auth-failed signal is no longer sent. - This prevents a crash that happens when switching run-levels - when the login screen is displayed. - + Ensure that the length of sockaddr structure is set to the - correct length for IPv4 or IPv6. This makes GDM work better on - some operating systems that are picky about the length being exact. - + String and documentation improvements. -- Changes from version 2.28.1: - + GDM will now avoid calling XAddHosts for remote connections. - Refer to bgo#598142 for more information. - + Now GDM uses DeviceKit-power instead of gnome-power-manager for - Suspend support. - + Now the at-spi-registryd-wrapper.desktop GDM autostart file - will run at-spi-registryd directly instead of calling - at-spi-registryd-wrapper. - + Fix to the visibility check for the "Other" button which - corrects some situations where the button would not appear when - it was supposed to. - + Now the GDM daemon will make the /var/log/gdm directory if it - does not exist. - + Fixes to avoid autologin failure when a NULL username is passed - in. - + Restore CTYPE when canonicalizing codesets. - + Several fixes to avoid warnings. -- Change default permissions of /var/run/gdm from 755 to 751 - (upstream moved to 711). -- Rebase gdm-helper-directory.patch to apply without fuzz, and add - a fix from upstream to really use the right at-spi-registryd - directory. -- Rebase gdm-greeter-greater-ui.patch. -- Rebase gdm-save-panel-space-on-low-resolutions.patch, and also - tweak it a bit because the size of the clock label has been - reduced. -- Drop gdm-build-fixes.patch: fixed upstream. -- Drop gdm-devkit-power.patch: fixed upstream. -- Drop gdm-keyboard-from-sysconfig.patch: this is needed for - openSUSE <= 11.1, but DeviceKit-power is now required by gdm and - won't work on such versions of openSUSE. - ------------------------------------------------------------------- Tue Oct 20 09:26:00 CEST 2009 - vuntz@opensuse.org diff --git a/gdm.spec b/gdm.spec index 5d3aa0f..2fe37aa 100644 --- a/gdm.spec +++ b/gdm.spec @@ -1,5 +1,5 @@ # -# spec file for package gdm (Version 2.29.1) +# spec file for package gdm (Version 2.28.0) # # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -42,8 +42,8 @@ BuildRequires: xorg-x11-server-extra BuildRequires: zenity License: GPL v2 or later Group: System/GUI/GNOME -Version: 2.29.1 -Release: 1 +Version: 2.28.0 +Release: 2 Summary: The GNOME 2.x Display Manager Source: %{name}-%{version}.tar.bz2 Source1: gdm.pamd @@ -51,7 +51,7 @@ Source2: gdm-autologin.pamd # FIXME: See FIXME in the script. Source3: SuSEconfig.gdm Source5: sysconfig.displaymanager-gdm -# PATCH-FIX-UPSTREAM gdm-helper-directory.patch bgo582320 vuntz@novell.com -- Add --with-gnome-settings-daemon-directory, --with-consolekit-directory, --with-at-spi-registryd-directory +# PATCH-FIX-UPSTREAM gdm-helper-directory.patch bgo582320 vuntz@novell.com -- Add --with-gnome-settings-daemon-directory and --with-consolekit-directory Patch1: gdm-helper-directory.patch # PATCH-FIX-OPENSUSE gdm-2.21.9-no-fatal-warnings.patch -- Do not accept fatal warnings in development version: gdm is too critical Patch2: gdm-2.21.9-no-fatal-warnings.patch @@ -69,7 +69,7 @@ Patch13: gdm-sysconfig-settings.patch Patch15: gdm-greeter-greater-ui.patch # PATCH-FIX-UPSTREAM gdm-always-reflect-keyboard-layout.patch bnc438159 bgo561771 hpj@novell.com -- Make keyboard selector not neglect to apply the selected keyboard in some situations. Patch18: gdm-always-reflect-keyboard-layout.patch -# PATCH-FIX-UPSTREAM gdm-save-panel-space-on-low-resolutions.patch bnc449815 bgo603817 hpj@novell.com -- Hide clock and/or selector labels on low resolutions. (needed because of gdm-domain-logon.patch) +# PATCH-FIX-OPENSUSE gdm-save-panel-space-on-low-resolutions.patch bnc449815 hpj@novell.com -- Hide clock and/or selector labels on low resolutions. Patch19: gdm-save-panel-space-on-low-resolutions.patch # PATCH-FIX-UPSTREAM gdm-selecting-desktop-environment.patch bnc460591 mxwu@novell.com -- Selecting the right desktop environment Patch20: gdm-selecting-desktop-environment.patch @@ -77,12 +77,18 @@ Patch20: gdm-selecting-desktop-environment.patch Patch31: gdm-gconf-path.patch # PATCH-FIX-UPSTREAM gdm-keyboard-from-hal.patch bnc492284 bnc478083 vuntz@novell.com -- Read the keyboard layout from hal Patch32: gdm-keyboard-from-hal.patch +# PATCH-FIX-OPENSUSE gdm-keyboard-from-sysconfig.patch bnc432360 bnc478083 hpj@novell.com -- Read keyboard options from sysconfig (for openSUSE <= 11.1, since keyboard layout wasn't in hal) +Patch33: gdm-keyboard-from-sysconfig.patch # PATCH-FIX-OPENSUSE gdm-default-wm.patch vuntz@novell.com -- Use sysconfig to know to which desktop to use by default Patch34: gdm-default-wm.patch # PATCH-FIX-OPENSUSE gdm-xauthlocalhostname.patch bgo555464 vuntz@novell.com -- Set XAUTHLOCALHOSTNAME to localhost for local logins to avoid issues in the session in case the hostname changes Patch35: gdm-xauthlocalhostname.patch +# PATCH-FIX-UPSTREAM gdm-build-fixes.patch bgo596605 vuntz@novell.com -- Add missing return value +Patch36: gdm-build-fixes.patch # PATCH-FIX-UPSTREAM gdm-autologin-once.patch bgo587606 vuntz@novell.com -- Make autologin work only once Patch37: gdm-autologin-once.patch +# PATCH-FIX-UPSTREAM gdm-devkit-power.patch bgo596569 vuntz@opensuse.org -- Use devkit-power instead of non-existing dbus API, patch from upstream +Patch38: gdm-devkit-power.patch # PATCH-FIX-UPSTREAM gdm-polkit-gnome-path.patch bgo597050 vuntz@opensuse.org -- Use the right patch for the polkit agent. The current patch is a quick workaround for now, until we know how upstream wants to fix this. Patch39: gdm-polkit-gnome-path.patch # PATCH-FIX-UPSTREAM gdm-look-at-runlevel.patch bnc540482 bgo599180 vuntz@opensuse.org -- Look at the current runlevel before managing the display again, so we don't do this when shutting down or rebooting @@ -150,10 +156,16 @@ gnome-patch-translation-prepare %patch19 -p1 %patch20 -p1 %patch31 -p1 +%if %suse_version > 1110 %patch32 -p1 +%else +%patch33 -p1 +%endif %patch34 -p1 %patch35 -p1 +%patch36 -p1 %patch37 -p1 +%patch38 -p1 %patch39 -p1 %patch40 -p1 %patch60 @@ -165,9 +177,9 @@ autoreconf -f -i %configure\ --libexecdir=%{_prefix}/lib/gdm \ --localstatedir=%{_localstatedir} \ - --with-at-spi-registryd-directory=%{_libexecdir}/at-spi2 \ - --with-gnome-settings-daemon-directory=%{_libexecdir}/gnome-settings-daemon \ - --with-consolekit-directory=%{_libexecdir}/ConsoleKit \ + --with-at-spi-registryd-directory=%{_prefix}/lib/at-spi \ + --with-gnome-settings-daemon-directory=%{_prefix}/lib/gnome-settings-daemon \ + --with-consolekit-directory=%{_prefix}/lib/ConsoleKit \ --with-selinux \ --enable-ipv6\ --disable-scrollkeeper @@ -175,9 +187,6 @@ autoreconf -f -i %install %makeinstall -%if 0%{?suse_version} <= 1120 -%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/* -%endif %find_gconf_schemas # Remove wrapper, it is not needed. mv $RPM_BUILD_ROOT%{_sbindir}/gdm-binary $RPM_BUILD_ROOT%{_sbindir}/gdm @@ -247,7 +256,7 @@ fi %{_libdir}/bonobo/servers/* %{_datadir}/gnome-2.0/ui/* %attr(750,gdm,gdm) %dir %{_localstatedir}/lib/gdm -%attr(751,gdm,gdm) %dir %{_localstatedir}/run/gdm +%attr(755,gdm,gdm) %dir %{_localstatedir}/run/gdm %attr(750,gdm,gdm) %dir %{_localstatedir}/log/gdm %attr(750,gdm,gdm) %dir %{_localstatedir}/lib/gdm/.gconf.mandatory %attr(640,gdm,gdm) %{_localstatedir}/lib/gdm/.gconf.mandatory/%gconf-tree.xml