Hello community, here is the log from the commit of package lightdm for openSUSE:Factory checked in at 2014-04-11 13:38:56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/lightdm (Old) and /work/SRC/openSUSE:Factory/.lightdm.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "lightdm" Changes: -------- --- /work/SRC/openSUSE:Factory/lightdm/lightdm.changes 2014-03-13 20:43:43.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.lightdm.new/lightdm.changes 2014-04-11 13:39:20.000000000 +0200 @@ -1,0 +2,104 @@ +Tue Apr 8 04:57:00 UTC 2014 - [email protected] + +- update to version 1.10.0 + - Fix return value for Vala bindings to + Greeter.start_session_sync + - Fix logging when failing to find session + - Update the lightdm AppArmor abstraction to allow the guest + session to start when AppArmor is mediating signals and ptrace + and fix a minor, but noisy, denial when applications attempt to + read /proc/<PID>/stat + - Pass --enable-hardware-greeter to unity-system-compositor for + Mir sessions on xlocal seats + - Handle not getting an X connection when attempting to get X + layouts + - Read config data from both XDG_DATA_DIRS and XDG_CONFIG_DIRS + - Ensure X authority is written before X server is started + - Activate after unlocking a logind session + - Don't use g_hash_table_get_keys_as_array, it's a glib 2.40 + feature + - Honour session type requested by greeter for guest sessions + - Log to wtmp and btmp + - Implement guest-session config option + - Handle signals being received in child processes instead of + treating them like they are received in the daemon + - Set utmp ut_line to the display name (i.e. :0) to match what + other programs expect (e.g. 'w') + - Fix lightdm_greeter_ensure_shared_data_dir_sync returning the + wrong value + - Fix shared data tests so you can run test suite without root + again + - Be extra careful not to call any non thread safe function after + a fork + - Fix some small memory leaks detected by valgrind + - Fix process shutdown code to stop generating confusing warnings + - Fix more double removal of source IDs + - Test improvements + - Add support for shared user data directories between the + greeter and user sessions + - Refactor LightDMUser and User classes to use the same code + internally + - Correctly invoke PAM to change authentication token + - Make xdg-seat a core property of a seat and always pass it to X + servers + - Qt bindings: properly hand over prompt and message type + - Add warning flags where they are missing and fix the resulting + warnings + - Support Mir sessions in xlocal seats by starting a unity system + compositor for each session + - Add --screen and --fullscreen options to "dm-tool + add-nested-seat" + - Don't try to compile liblightdm-qt if liblightdm-gobject will + not be compiled + - Stop greeters warning if sessions directories not present or + lightdm.conf doesn't exist - this is valid + - Fix log name for Mir display servers + - Fix double removal of source IDs + - In the unity seat, if we don't have proper VT support, fake VT + 0 instead of a real VT number. This matches what logind expects + - Fix issue where VTs are double used when switching sessions + - Remove lightdm-set-defaults and gdmflexiserver + - Add new ability to specify a list of seat types to try, rather + than just one + - Allow Mir sessions in the surfaceflinger seat + - Rename the guest session wrapper to have a simpler name + - Make sure sessions are associated with the display server + before starting them + - Add a dm-tool man page + - Don't pass system user accounts from AccountsService to + greeters + - Fix crash if switching to greeter and it isn't installed + - Implement missing guest-wrapper functionality and enable it for + Ubuntu + - Update AppArmor scripts to work in Ubuntu 13.10 + - Correctly set $XDG_SESSION_CLASS for greeters. This was + regressed in 1.7.5 for ConsoleKit and was never passed to + logind. logind/ConsoleKit treat greeter sessions without this + set as user sessions. This causes greeters to show the lightdm + user able to be logged in with + - Set $USER when running the session-setup-script. This is a + regression from 1.7.5 + - Fix notification of sessions being logged out. This is a + regression from 1.7.5 and caused greeters to show sessions + logged in after they had been logged out + - Refactor liblightdm user scanning to be simpler and more + reliable. This fixes bugs where some properties wouldn't be + updated when they changed in accounts service + - Add support for a "display-stopped-script" field in + lightdm.conf. The "display-stopped-script" field allows us to + run a script right after stopping the display server + - Allow dm-tool to run outside of a session if it doesn't need to + be + - Set $MIR_SERVER_NAME to assign a name to launched sessions. + Also use a "greeter-" prefix for greeter sessions for the + benefit of unity-system-compositor + - Fix crash when starting with existing X servers. This was + introduced in rev 1651 (lightdm 1.7.0) + - Fix crash where Process objects are accessed after unref +- add back gdmflexiserver script and drop the obsolete + lightdm-lock-screen-before-switch.patch +- do not install an %{_sysconfdir}/lightdm/lightdm.conf any more, + rather move it to %_defaultdocdir/lightdm/lightdm.conf.example + since it contains a reference of all configuration options + +------------------------------------------------------------------- Old: ---- dm-tool.1 lightdm-1.8.8.tar.xz lightdm-lock-screen-before-switch.patch New: ---- gdmflexiserver lightdm-1.10.0.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ lightdm.spec ++++++ --- /var/tmp/diff_new_pack.9KkpBP/_old 2014-04-11 13:39:20.000000000 +0200 +++ /var/tmp/diff_new_pack.9KkpBP/_new 2014-04-11 13:39:20.000000000 +0200 @@ -26,16 +26,16 @@ %define rundir /run Name: lightdm -Version: 1.8.8 +Version: 1.10.0 Release: 0 Summary: Lightweight, Cross-desktop Display Manager License: GPL-3.0+ Group: System/X11/Displaymanagers Url: http://www.freedesktop.org/wiki/Software/LightDM -Source0: https://launchpad.net/lightdm/1.8/%{version}/+download/%{name}-%{version}.tar.xz +Source0: https://launchpad.net/lightdm/1.10/%{version}/+download/%{name}-%{version}.tar.xz Source1: %{name}-greeter.pamd Source2: X11-displaymanagers-%{name} -Source3: dm-tool.1 +Source3: gdmflexiserver Source4: 50-suse-defaults.conf Source5: users.conf Source100: %{name}-rpmlintrc @@ -45,8 +45,6 @@ Patch1: lightdm-xauthlocalhostname-support.patch # PATCH-FEATURE-OPENSUSE lightdm-set-gdmflexiserver-envvar.patch [email protected] -- Sets the GDMFLEXISERVER environment variable for the gdmflexiserver wrapper Patch2: lightdm-set-gdmflexiserver-envvar.patch -# PATCH-FIX-UPSTREAM lightdm-lock-screen-before-switch.patch [email protected] -- Try to lock the screen before switching users -Patch4: lightdm-lock-screen-before-switch.patch # PATCH-FIX-OPENSUSE lightdm-disable-utmp-handling.patch [email protected] -- Disable utmp handling since this is handled in the Xstartup/Xreset scripts Patch5: lightdm-disable-utmp-handling.patch # PATCH-FIX-OPENSUSE lightdm-use-run-dir.patch [email protected] -- Use /run instead of /var/run @@ -156,7 +154,6 @@ %patch0 -p1 %patch1 -p1 %patch2 -p1 -%patch4 -p1 %patch5 -p1 %patch6 -p1 @@ -180,11 +177,15 @@ rm -f %{buildroot}%{_libdir}/*.la +# configuration is delivered in %%{_datadir}/lightdm/lightdm.conf.d +rm %{buildroot}%{_sysconfdir}/lightdm/lightdm.conf + # upstart configuration is not needed rm -rf %{buildroot}%{_sysconfdir}/init/ # there is no guest session support in openSUSE rm -rf %{buildroot}%{_sysconfdir}/apparmor.d/ +rm -rf %{buildroot}%{_libexecdir}/lightdm-guest-session # these are useless stubs for now rm -rf %{buildroot}%{_datadir}/help/ @@ -192,6 +193,9 @@ ln -sf %{_sysconfdir}/pam.d/xdm %{buildroot}%{_sysconfdir}/pam.d/lightdm ln -sf %{_sysconfdir}/pam.d/xdm-np %{buildroot}%{_sysconfdir}/pam.d/lightdm-autologin +ln data/lightdm.conf data/lightdm.conf.example + +install -d %{buildroot}%{_sysconfdir}/xdg/lightdm/lightdm.conf.d install -d %{buildroot}%{_datadir}/lightdm/greeters install -d %{buildroot}%{_datadir}/lightdm/lightdm.conf.d install -d %{buildroot}%{_datadir}/lightdm/remote-sessions @@ -199,14 +203,14 @@ install -d %{buildroot}%{_datadir}/xgreeters install -d %{buildroot}%{_localstatedir}/cache/lightdm install -d %{buildroot}%{_localstatedir}/lib/lightdm +install -d %{buildroot}%{_localstatedir}/lib/lightdm-data install -d %{buildroot}%{_localstatedir}/log/lightdm -install -d %{buildroot}%{_sysconfdir}/lightdm/lightdm.conf.d install -d %{buildroot}%{rundir}/lightdm install -D -m 644 -p %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/lightdm-greeter install -D -m 644 -p %{SOURCE2} %{buildroot}%{_libexecdir}/X11/displaymanagers/lightdm -install -D -m 644 -p %{SOURCE3} %{buildroot}%{_mandir}/man1/dm-tool.1 +install -D -m 755 -p %{SOURCE3} %{buildroot}%{_libexecdir}/lightdm/gdmflexiserver install -D -m 644 -p %{SOURCE4} %{buildroot}%{_datadir}/lightdm/lightdm.conf.d/50-suse-defaults.conf install -D -m 644 -p %{SOURCE5} %{buildroot}%{_sysconfdir}/lightdm/users.conf @@ -234,15 +238,14 @@ %files %defattr(-,root,root,-) -%doc COPYING.GPL3 NEWS +%doc COPYING.GPL3 NEWS data/lightdm.conf.example %{_bindir}/dm-tool %{_sbindir}/lightdm %dir %{_libexecdir}/lightdm/ -%{_libexecdir}/%{name}/lightdm-set-defaults -%{_libexecdir}/%{name}/lightdm-guest-session-wrapper %{_libexecdir}/%{name}/gdmflexiserver -%{_sysconfdir}/lightdm/ -%config(noreplace) %{_sysconfdir}/lightdm/lightdm.conf +%dir %{_sysconfdir}/xdg/lightdm/ +%dir %{_sysconfdir}/xdg/lightdm/lightdm.conf.d/ +%dir %{_sysconfdir}/lightdm/ %config(noreplace) %{_sysconfdir}/lightdm/users.conf %config(noreplace) %{_sysconfdir}/lightdm/keys.conf %config %{_sysconfdir}/pam.d/lightdm* @@ -254,9 +257,9 @@ %ghost %attr(711,lightdm,lightdm) %dir %{rundir}/lightdm %attr(750,lightdm,lightdm) %dir %{_localstatedir}/log/lightdm %attr(750,lightdm,lightdm) %dir %{_localstatedir}/lib/lightdm +%attr(750,lightdm,lightdm) %dir %{_localstatedir}/lib/lightdm-data %ghost %attr(711,root,root) %dir %{_localstatedir}/cache/lightdm %{_mandir}/man1/lightdm.1* -%{_mandir}/man1/lightdm-set-defaults.1* %{_mandir}/man1/dm-tool.1* %files lang -f %{name}.lang ++++++ gdmflexiserver ++++++ #!/bin/sh # # Copyright (C) 2011 Canonical Ltd # Author: Michael Terry <[email protected]> # # This program is free software: you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free Software # Foundation, version 3 of the License. # # See http://www.gnu.org/copyleft/gpl.html for the full text of the license. PATH=/usr/local/bin:/bin:/usr/bin export PATH if [ -z "$XDG_SEAT_PATH" ]; then # something went wrong exit 1 fi find_command () { cmd="$1" oIFS="${IFS}"; IFS=: set -- ${PATH} IFS="${oIFS}" for part; do [ -x "${part}/${cmd}" ] && return 0 done return 1 } lock_screen () { for lock_cmd in \ "xscreensaver-command -lock" \ "gnome-screensaver-command --lock" \ "dbus-send --session --dest=org.freedesktop.ScreenSaver --type=method_call /ScreenSaver org.freedesktop.ScreenSaver.Lock" do ${lock_cmd} >/dev/null 2>&1 && return done for lock_cmd in \ "slock" \ "xlock -mode blank" do set -- ${lock_cmd} if find_command "$1"; then ${lock_cmd} >/dev/null 2>&1 & return fi done } lock_screen dbus-send --system --type=method_call --print-reply --dest=org.freedesktop.DisplayManager $XDG_SEAT_PATH org.freedesktop.DisplayManager.Seat.SwitchToGreeter ++++++ lightdm-1.8.8.tar.xz -> lightdm-1.10.0.tar.xz ++++++ ++++ 24622 lines of diff (skipped) ++++++ lightdm-disable-utmp-handling.patch ++++++ --- /var/tmp/diff_new_pack.9KkpBP/_old 2014-04-11 13:39:21.000000000 +0200 +++ /var/tmp/diff_new_pack.9KkpBP/_new 2014-04-11 13:39:21.000000000 +0200 @@ -1,21 +1,54 @@ # HG changeset patch -# Parent acf3eab3dcbae79c5aa9ec3d9ef1bf68b44ae7ff +# Parent 8b5df1d6d8353e534cc8fbe113f33b4716c38034 disable utmp handling since this is handled in the Xstartup/Xreset scripts diff --git a/src/session-child.c b/src/session-child.c --- a/src/session-child.c +++ b/src/session-child.c -@@ -13,7 +13,9 @@ +@@ -13,8 +13,10 @@ #include <grp.h> #include <glib.h> #include <security/pam_appl.h> +#if 0 + #include <utmp.h> #include <utmpx.h> +#endif #include <sys/mman.h> #include "configuration.h" -@@ -596,6 +598,7 @@ session_child_run (int argc, char **argv +@@ -197,6 +199,7 @@ read_xauth (void) + return x_authority_new (x_authority_family, x_authority_address, x_authority_address_length, x_authority_number, x_authority_name, x_authority_data, x_authority_data_length); + } + ++#if 0 + /* GNU provides this but we can't rely on that so let's make our own version */ + static void + updwtmpx (const gchar *wtmp_file, struct utmpx *ut) +@@ -219,6 +222,7 @@ updwtmpx (const gchar *wtmp_file, struct + + updwtmp (wtmp_file, &u); + } ++#endif + + int + session_child_run (int argc, char **argv) +@@ -360,6 +364,7 @@ session_child_run (int argc, char **argv + /* Write record to btmp database */ + if (authentication_result == PAM_AUTH_ERR) + { ++#if 0 + struct utmpx ut; + struct timeval tv; + +@@ -383,6 +388,7 @@ session_child_run (int argc, char **argv + ut.ut_tv.tv_usec = tv.tv_usec; + + updwtmpx ("/var/log/btmp", &ut); ++#endif + } + + /* Check account is valid */ +@@ -646,6 +652,7 @@ session_child_run (int argc, char **argv /* Wait for the command to complete (blocks) */ if (child_pid > 0) { @@ -23,9 +56,9 @@ /* Log to utmp */ if (g_strcmp0 (pam_getenv (pam_handle, "XDG_SESSION_CLASS"), "greeter") != 0) { -@@ -623,10 +626,10 @@ session_child_run (int argc, char **argv - g_printerr ("Failed to write utmpx: %s\n", strerror (errno)); +@@ -678,10 +685,10 @@ session_child_run (int argc, char **argv endutxent (); + updwtmpx ("/var/log/wtmp", &ut); } - +#endif @@ -36,9 +69,9 @@ /* Log to utmp */ if (g_strcmp0 (pam_getenv (pam_handle, "XDG_SESSION_CLASS"), "greeter") != 0) { -@@ -654,6 +657,7 @@ session_child_run (int argc, char **argv - g_printerr ("Failed to write utmpx: %s\n", strerror (errno)); +@@ -714,6 +721,7 @@ session_child_run (int argc, char **argv endutxent (); + updwtmpx ("/var/log/wtmp", &ut); } +#endif } ++++++ lightdm-set-gdmflexiserver-envvar.patch ++++++ --- /var/tmp/diff_new_pack.9KkpBP/_old 2014-04-11 13:39:21.000000000 +0200 +++ /var/tmp/diff_new_pack.9KkpBP/_new 2014-04-11 13:39:21.000000000 +0200 @@ -1,17 +1,25 @@ set the GDMFLEXISERVER environment variable for the gdmflexiserver wrapper +diff --git a/src/Makefile.am b/src/Makefile.am +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -79,6 +79,7 @@ lightdm_CFLAGS = \ + $(WARN_CFLAGS) \ + $(LIGHTDM_CFLAGS) \ + -I"$(top_srcdir)/common" \ ++ -DPKGLIBEXEC_DIR=\"$(pkglibexecdir)\" \ + -DSBIN_DIR=\"$(sbindir)\" \ + -DUSERS_DIR=\"$(localstatedir)/lib/lightdm-data\" \ + -DLOG_DIR=\"$(localstatedir)/log/lightdm\" \ diff --git a/src/session-child.c b/src/session-child.c --- a/src/session-child.c +++ b/src/session-child.c -@@ -530,10 +530,7 @@ session_child_run (int argc, char **argv +@@ -587,6 +587,8 @@ session_child_run (int argc, char **argv g_free (value); } -- /* Put our tools directory in the path as a hack so we can use the legacy gdmflexiserver interface */ -- path = pam_getenv (pam_handle, "PATH"); -- if (path) -- pam_putenv (pam_handle, g_strdup_printf ("PATH=%s:%s", PKGLIBEXEC_DIR, path)); + pam_putenv (pam_handle, g_strdup_printf ("GDMFLEXISERVER=%s", PKGLIBEXEC_DIR "/gdmflexiserver")); - ++ /* Catch terminate signal and pass it to the child */ signal (SIGTERM, signal_cb); + ++++++ lightdm-sysconfig-support.patch ++++++ --- /var/tmp/diff_new_pack.9KkpBP/_old 2014-04-11 13:39:21.000000000 +0200 +++ /var/tmp/diff_new_pack.9KkpBP/_new 2014-04-11 13:39:21.000000000 +0200 @@ -39,7 +39,7 @@ diff --git a/src/Makefile.am b/src/Makefile.am --- a/src/Makefile.am +++ b/src/Makefile.am -@@ -72,7 +72,9 @@ lightdm_SOURCES = \ +@@ -71,7 +71,9 @@ lightdm_SOURCES = \ xdmcp-server.h \ xdmcp-session.c \ xdmcp-session.h \ @@ -49,7 +49,7 @@ + opensuse-sysconfig.h lightdm_CFLAGS = \ - $(LIGHTDM_CFLAGS) \ + $(WARN_CFLAGS) \ diff --git a/src/lightdm.c b/src/lightdm.c --- a/src/lightdm.c +++ b/src/lightdm.c @@ -61,7 +61,7 @@ #include "display-manager.h" #include "xdmcp-server.h" #include "vnc-server.h" -@@ -61,6 +62,117 @@ typedef struct +@@ -63,6 +64,117 @@ typedef struct #define LIGHTDM_BUS_NAME "org.freedesktop.DisplayManager" @@ -179,7 +179,7 @@ static void log_cb (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer data) { -@@ -1168,6 +1280,9 @@ main (int argc, char **argv) +@@ -1119,6 +1231,9 @@ main (int argc, char **argv) g_warning ("Failed to make cache directory %s: %s", dir, strerror (errno)); g_free (dir); @@ -632,7 +632,7 @@ diff --git a/src/seat.c b/src/seat.c --- a/src/seat.c +++ b/src/seat.c -@@ -1115,7 +1115,10 @@ create_greeter_session (Seat *seat) +@@ -1154,7 +1154,10 @@ create_greeter_session (Seat *seat) session_set_argv (SESSION (greeter_session), argv); g_strfreev (argv); @@ -644,7 +644,7 @@ g_signal_connect (greeter_session, "create-session", G_CALLBACK (greeter_create_session_cb), seat); g_signal_connect (greeter_session, "start-session", G_CALLBACK (greeter_start_session_cb), seat); -@@ -1331,7 +1334,10 @@ seat_switch_to_user (Seat *seat, const g +@@ -1370,7 +1373,10 @@ seat_switch_to_user (Seat *seat, const g /* Attempt to authenticate them */ session = create_user_session (seat, username, FALSE); g_signal_connect (session, "authentication-complete", G_CALLBACK (switch_authentication_complete_cb), seat); ++++++ lightdm-use-run-dir.patch ++++++ --- /var/tmp/diff_new_pack.9KkpBP/_old 2014-04-11 13:39:21.000000000 +0200 +++ /var/tmp/diff_new_pack.9KkpBP/_new 2014-04-11 13:39:21.000000000 +0200 @@ -1,5 +1,5 @@ # HG changeset patch -# Parent 7faa7ecbcde448efc969d5fba985411825dcbee4 +# Parent 7809b3dab31692d7d1eeb9de16aa2f58cc0872b1 Use /run instead of localstatedir/run/lightdm diff --git a/src/Makefile.am b/src/Makefile.am @@ -7,10 +7,10 @@ +++ b/src/Makefile.am @@ -83,7 +83,7 @@ lightdm_CFLAGS = \ -DSBIN_DIR=\"$(sbindir)\" \ - -DCONFIG_DIR=\"$(sysconfdir)/lightdm\" \ + -DUSERS_DIR=\"$(localstatedir)/lib/lightdm-data\" \ -DLOG_DIR=\"$(localstatedir)/log/lightdm\" \ - -DRUN_DIR=\"$(localstatedir)/run/lightdm\" \ + -DRUN_DIR=\"/run/lightdm\" \ -DCACHE_DIR=\"$(localstatedir)/cache/lightdm\" \ - -DSYSTEM_CONFIG_DIR=\"$(pkgdatadir)/lightdm.conf.d\" \ -DSESSIONS_DIR=\"$(pkgdatadir)/sessions:$(datadir)/xsessions\" \ + -DREMOTE_SESSIONS_DIR=\"$(pkgdatadir)/remote-sessions\" \ ++++++ lightdm-xauthlocalhostname-support.patch ++++++ --- /var/tmp/diff_new_pack.9KkpBP/_old 2014-04-11 13:39:21.000000000 +0200 +++ /var/tmp/diff_new_pack.9KkpBP/_new 2014-04-11 13:39:21.000000000 +0200 @@ -3,7 +3,7 @@ diff --git a/src/seat-xlocal.c b/src/seat-xlocal.c --- a/src/seat-xlocal.c +++ b/src/seat-xlocal.c -@@ -241,6 +241,7 @@ seat_xlocal_run_script (Seat *seat, Disp +@@ -290,6 +290,7 @@ seat_xlocal_run_script (Seat *seat, Disp path = x_server_local_get_authority_file_path (x_server); process_set_env (script, "DISPLAY", x_server_get_address (X_SERVER (x_server))); process_set_env (script, "XAUTHORITY", path); @@ -14,7 +14,7 @@ diff --git a/src/x-server-local.c b/src/x-server-local.c --- a/src/x-server-local.c +++ b/src/x-server-local.c -@@ -150,14 +150,15 @@ XServerLocal * +@@ -147,14 +147,15 @@ XServerLocal * x_server_local_new (void) { XServerLocal *self; @@ -43,7 +43,7 @@ struct XServerPrivate { -@@ -168,6 +169,8 @@ x_server_connect_session (DisplayServer +@@ -167,6 +168,8 @@ x_server_connect_session (DisplayServer else l_debug (session, "Not setting XDG_VTNR"); -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
