summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-11-03 22:56:27 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-11-03 22:56:27 +0000
commit8161d5a2016696f471fddabad7ee9a911656094d (patch)
tree0f5dc69ace932aabdcada1cf3231a67ec138f117 /xfce-base/xfce4-session
parentold (diff)
downloadgentoo-2-8161d5a2016696f471fddabad7ee9a911656094d.tar.gz
gentoo-2-8161d5a2016696f471fddabad7ee9a911656094d.tar.bz2
gentoo-2-8161d5a2016696f471fddabad7ee9a911656094d.zip
old
(Portage version: 2.2.0_alpha3/cvs/Linux x86_64)
Diffstat (limited to 'xfce-base/xfce4-session')
-rw-r--r--xfce-base/xfce4-session/Manifest4
-rw-r--r--xfce-base/xfce4-session/files/xfce4-session-4.7.0-ck-launch-session.patch209
-rw-r--r--xfce-base/xfce4-session/files/xfce4-session-4.7.0-gnome-keyring.patch94
-rw-r--r--xfce-base/xfce4-session/xfce4-session-4.7.0.ebuild47
4 files changed, 0 insertions, 354 deletions
diff --git a/xfce-base/xfce4-session/Manifest b/xfce-base/xfce4-session/Manifest
index bc0788b095f1..90fd9ceb822b 100644
--- a/xfce-base/xfce4-session/Manifest
+++ b/xfce-base/xfce4-session/Manifest
@@ -1,10 +1,6 @@
-AUX xfce4-session-4.7.0-ck-launch-session.patch 7659 RMD160 baf60ff92590636b2bdaf329490d123ed587cbbb SHA1 05de9d398df53ee580413ea2efb5c6fb2abae59f SHA256 6c5895d4b1323c3c06da553936dc7dc894f2da96bf4a0142bb17b2e3ee701bc6
-AUX xfce4-session-4.7.0-gnome-keyring.patch 2915 RMD160 4a106f95f195c4da7f0e695d1fd82a9a2764187e SHA1 03a5b72a5d786ef5f1a6916c25f1ae5b5c89523d SHA256 56454bb320d2ff2871597bbd97457c39292e84c48c78af7483716c8a5e25f5eb
DIST xfce4-session-4.6.2.tar.bz2 1385541 RMD160 3c45028d57aee5950a485d760799d0c74ada735e SHA1 2a5778a1543f97845f118a186e2dbb8a8ea3ff4b SHA256 725e269254c34c530acb670f5ccd0fd69b57cbe9f2176abd8499fc5d6dcd30a8
-DIST xfce4-session-4.7.0.tar.bz2 1430243 RMD160 e8dc56980a40ef71ec02681f15a178db140ad9fd SHA1 500d1ec578f39ece6b34a6525a8ce0f6e78dc86d SHA256 20e5979306566e5b8f6a556fcdbd2624809051250c33e3f2d0eb67b3911ec218
DIST xfce4-session-4.7.1.tar.bz2 1460911 RMD160 99958f36f88b44e98bc3f9b4f34c2507fa539035 SHA1 d65c79e0bf7337705af1cf14964dd53b3422e2ce SHA256 5ee970da59a1433efd4c321794134e4af202ba7b6375ebaf63c84fc246877ee0
EBUILD xfce4-session-4.6.2.ebuild 1651 RMD160 63827c6581d8720ba7205fd1fbf9f816d4caabbc SHA1 dae3fc51c7119453f757b1effaebee17b8fbcaa8 SHA256 3a95405ac286b4195e1072414d966eba3b1a3fb4e825f5b9f3a28e6bc9f1a98c
-EBUILD xfce4-session-4.7.0.ebuild 1469 RMD160 249c0f056ef610ccc68a87caa619769041bdfd5d SHA1 bc220c945178b5606988d598a325f27e98af4b57 SHA256 7997d5d6ee0c71738c0659dfc00c8d9e978bc6ea5e996adf83d49bbc0c51b1b2
EBUILD xfce4-session-4.7.1.ebuild 1378 RMD160 08d0f3fd91acaed4edc04ce94f32f7325ac8f0cd SHA1 62ab3519e2ecfa7279c60eeb432def3a71e7c500 SHA256 8e9fb5b5e3fd3e9fae4c16437f4c9c977a6f1059ca5d3fbd8ddedb80c0367db9
MISC ChangeLog 15604 RMD160 2c6bd28809f44c6bfe2dc559e0b8bea37a55593e SHA1 fef88b037e9a5c3b6583ca31224b4de5a3a808f9 SHA256 5c4b73e0374cd32d21d20fcd341ee8eb1465c2367da6f17f827ee51b83b6845c
MISC metadata.xml 365 RMD160 f5394f10309125c57f366f5bc00d72b7ed2c187f SHA1 71fa94d2aa83cffa134f23be4ec0736e78bc8a19 SHA256 3dd7350379719051299f2cd5f5501c0b3c5cf699b1bd0b89e0c9e6517a4c1b4d
diff --git a/xfce-base/xfce4-session/files/xfce4-session-4.7.0-ck-launch-session.patch b/xfce-base/xfce4-session/files/xfce4-session-4.7.0-ck-launch-session.patch
deleted file mode 100644
index 4f65e410793a..000000000000
--- a/xfce-base/xfce4-session/files/xfce4-session-4.7.0-ck-launch-session.patch
+++ /dev/null
@@ -1,209 +0,0 @@
-From 35c620aa3749581580e0917ff7c2db1c223564a8 Mon Sep 17 00:00:00 2001
-From: Jannis Pohlmann <jannis@xfce.org>
-Date: Wed, 08 Sep 2010 10:02:46 +0000
-Subject: Reuse existing ConsoleKit sessions (bug #6685).
-
-According to the ConsoleKit documentation, only one session leader may
-exist for a session. An application becomes the leader of a session by
-calling org.freedesktop.ConsoleKit.Manager.OpenSession() which returns a
-session identifier. This identifier is then made available to other
-session clients by setting the XDG_SESSION_COOKIE environment variable.
-
-GDM and upstart open ConsoleKit sessions on their own and desktop
-environments are supposed to reuse these sessions instead of opening new
-ones. So with this commit, xfce4-session checks for XDG_SESSION_COOKIE
-and, if it exists, does not try to call OpenSession in order to
-overwrite this environment variable.
-
-I tested this with xfce4-session-logout which finally allows me to
-reboot and shutdown again.
-
-Also fix the indentation, use spaces instead of tabs etc.
----
-diff --git a/xfce4-session/xfsm-manager.c b/xfce4-session/xfsm-manager.c
-index 3eb7696..892b6c6 100644
---- a/xfce4-session/xfsm-manager.c
-+++ b/xfce4-session/xfsm-manager.c
-@@ -257,11 +255,11 @@ xfsm_manager_init (XfsmManager *manager)
- #ifdef ENABLE_CONSOLE_KIT
- manager->system_bus = dbus_g_bus_get (DBUS_BUS_SYSTEM, &error);
-
-- if ( G_LIKELY (manager->system_bus != NULL) )
-+ if (G_LIKELY (manager->system_bus != NULL))
- {
- xfsm_manager_consolekit_init (manager);
- }
-- else if ( error )
-+ else if (error)
- {
- g_warning ("Failed to connect to the system bus : %s", error->message);
- g_error_free (error);
-@@ -279,7 +277,7 @@ xfsm_manager_finalize (GObject *obj)
- #ifdef ENABLE_CONSOLE_KIT
- xfsm_manager_consolekit_cleanup (manager);
-
-- if ( manager->system_bus )
-+ if (manager->system_bus)
- dbus_g_connection_unref (manager->system_bus);
- #endif /*ENABLE_CONSOLE_KIT*/
-
-@@ -342,6 +340,7 @@ xfsm_manager_new (void)
- return manager;
- }
-
-+
- #ifdef ENABLE_CONSOLE_KIT
- static void xfsm_manager_consolekit_init (XfsmManager *manager)
- {
-@@ -349,61 +348,83 @@ static void xfsm_manager_consolekit_init (XfsmManager *manager)
- gboolean ret;
-
- manager->consolekit_proxy = dbus_g_proxy_new_for_name_owner (manager->system_bus,
-- "org.freedesktop.ConsoleKit",
-- "/org/freedesktop/ConsoleKit/Manager",
-- "org.freedesktop.ConsoleKit.Manager",
-- NULL);
-+ "org.freedesktop.ConsoleKit",
-+ "/org/freedesktop/ConsoleKit/Manager",
-+ "org.freedesktop.ConsoleKit.Manager",
-+ NULL);
-
-
-- if ( G_UNLIKELY (!manager->consolekit_proxy) )
-+ if (G_UNLIKELY (!manager->consolekit_proxy))
- {
- g_warning ("Failed to create proxy for 'org.freedesktop.ConsoleKit'");
- return;
- }
-
-- ret = dbus_g_proxy_call (manager->consolekit_proxy, "OpenSession", &error,
-- G_TYPE_INVALID,
-- G_TYPE_STRING, &manager->consolekit_cookie,
-- G_TYPE_INVALID);
--
-- if ( G_LIKELY (ret) )
-+ /* check if there is a session to reuse */
-+ if (g_getenv ("XDG_SESSION_COOKIE") != NULL)
- {
-- /*
-- * ConsoleKit doc says that the leader session should set the cookie
-- * on XDG_SESSION_COOKIE env variable.
-- */
-- g_warn_if_fail (g_setenv ("XDG_SESSION_COOKIE",
-- manager->consolekit_cookie,
-- TRUE));
-+#ifdef DEBUG
-+ g_debug ("Reusing existing ConsoleKit session: XDG_SESSION_ID=%s",
-+ g_getenv ("XDG_SESSION_COOKIE"));
-+#endif
- }
-- else if ( error )
-+ else
- {
-- g_warning ("OpenSession on 'org.freedesktop.ConsoleKit' failed with %s", error->message);
-- g_error_free (error);
-+ /* try to open a new session. as its leader we are then responsible for
-+ * setting XDG_SESSION_COOKIE as well as closing the session before we exit */
-+ ret = dbus_g_proxy_call (manager->consolekit_proxy, "OpenSession", &error,
-+ G_TYPE_INVALID,
-+ G_TYPE_STRING, &manager->consolekit_cookie,
-+ G_TYPE_INVALID);
-+
-+ if (G_LIKELY (ret))
-+ {
-+ /*
-+ * ConsoleKit doc says that the leader session should set the cookie
-+ * on XDG_SESSION_COOKIE env variable.
-+ */
-+ if (g_setenv ("XDG_SESSION_COOKIE", manager->consolekit_cookie, TRUE))
-+ {
-+#ifdef DEBUG
-+ g_debug ("Opening a new ConsoleKit session: XDG_SESSION_COOKIE=%s",
-+ manager->consolekit_cookie);
-+#endif
-+ }
-+ else
-+ {
-+ g_warning ("Failed to set XDG_SESSION_COOKIE");
-+ }
-+ }
-+ else if (error)
-+ {
-+ g_warning ("OpenSession on 'org.freedesktop.ConsoleKit' failed with %s", error->message);
-+ g_error_free (error);
-+ }
- }
- }
-
-+
- static void xfsm_manager_consolekit_cleanup (XfsmManager *manager)
- {
-- if ( manager->consolekit_proxy )
-+ GError *error = NULL;
-+ gboolean ret, result;
-+
-+ if (manager->consolekit_proxy)
- {
- if (manager->consolekit_cookie)
-- {
-- GError *error = NULL;
-- gboolean ret, result;
--
-- ret = dbus_g_proxy_call (manager->consolekit_proxy, "CloseSession", &error,
-- G_TYPE_STRING, manager->consolekit_cookie,
-- G_TYPE_INVALID,
-- G_TYPE_BOOLEAN, &result,
-- G_TYPE_INVALID);
-- if ( !ret )
-- {
-- g_warning ("CloseSession on 'org.freedesktop.ConsoleKit' failed with %s", error->message);
-- g_error_free (error);
-- }
-- g_free (manager->consolekit_cookie);
-- }
-+ {
-+ ret = dbus_g_proxy_call (manager->consolekit_proxy, "CloseSession", &error,
-+ G_TYPE_STRING, manager->consolekit_cookie,
-+ G_TYPE_INVALID,
-+ G_TYPE_BOOLEAN, &result,
-+ G_TYPE_INVALID);
-+ if (!ret)
-+ {
-+ g_warning ("CloseSession on 'org.freedesktop.ConsoleKit' failed with %s", error->message);
-+ g_error_free (error);
-+ }
-+ g_free (manager->consolekit_cookie);
-+ }
- g_object_unref (manager->consolekit_proxy);
- }
- }
-@@ -1181,6 +1202,7 @@ xfsm_manager_interact_done (XfsmManager *manager,
- xfsm_manager_start_client_save_timeout (manager, client);
- }
-
-+
- static void
- xfsm_manager_save_yourself_global (XfsmManager *manager,
- gint save_type,
-@@ -1222,8 +1244,8 @@ xfsm_manager_save_yourself_global (XfsmManager *manager,
- shutdown_helper = xfsm_shutdown_helper_new ();
-
- if (!xfsm_shutdown_helper_send_command (shutdown_helper,
-- manager->shutdown_type,
-- &error))
-+ manager->shutdown_type,
-+ &error))
- {
- xfce_message_dialog (NULL, _("Shutdown Failed"),
- GTK_STOCK_DIALOG_ERROR,
-@@ -1237,7 +1259,7 @@ xfsm_manager_save_yourself_global (XfsmManager *manager,
- }
-
- /* clean up and return */
-- g_object_unref (shutdown_helper);
-+ g_object_unref (shutdown_helper);
-
-
- /* at this point, either we failed to suspend/hibernate, or we
---
-cgit v0.8.2.1
diff --git a/xfce-base/xfce4-session/files/xfce4-session-4.7.0-gnome-keyring.patch b/xfce-base/xfce4-session/files/xfce4-session-4.7.0-gnome-keyring.patch
deleted file mode 100644
index 72bd990d162e..000000000000
--- a/xfce-base/xfce4-session/files/xfce4-session-4.7.0-gnome-keyring.patch
+++ /dev/null
@@ -1,94 +0,0 @@
-From f32cd3e21c9d557cc8fab23b7c59baff36b16a9a Mon Sep 17 00:00:00 2001
-From: Jérôme Guelfucci <jeromeg@xfce.org>
-Date: Sun, 24 Oct 2010 20:01:47 +0000
-Subject: Add support for new gnome-keyring (Luca Niccoli).
-
-This fixes bugs #5912, #5137 and #6073. Support for old gnome-keyring
-versions is dropped with this commit.
----
-diff --git a/xfce4-session/xfsm-compat-gnome.c b/xfce4-session/xfsm-compat-gnome.c
-index 62f1452..3ed79b3 100644
---- a/xfce4-session/xfsm-compat-gnome.c
-+++ b/xfce4-session/xfsm-compat-gnome.c
-@@ -104,27 +104,15 @@ child_setup (gpointer user_data)
- static void
- gnome_keyring_daemon_startup (void)
- {
-- const char *old_keyring;
--
- GError *error = NULL;
- gchar *sout;
- gchar **lines;
-+ gsize lineno;
- gint status;
- long pid;
- gchar *pid_str;
- gchar *end;
-- char *argv[2];
--
-- /* If there is already a working keyring, don't start a new daemon */
-- old_keyring = g_getenv ("GNOME_KEYRING_SOCKET");
-- if (old_keyring != NULL && access (old_keyring, R_OK | W_OK) == 0)
-- {
--#ifdef HAVE_GNOME_KEYRING
-- gnome_keyring_daemon_prepare_environment_sync ();
--#endif
-- return;
-- }
--
-+ char *argv[3];
-
- /* Pipe to slave keyring lifetime to */
- if (pipe (keyring_lifetime_pipe))
-@@ -135,8 +123,10 @@ gnome_keyring_daemon_startup (void)
-
- error = NULL;
- argv[0] = GNOME_KEYRING_DAEMON;
-- argv[1] = NULL;
-- g_spawn_sync (NULL, argv, NULL, G_SPAWN_LEAVE_DESCRIPTORS_OPEN,
-+ argv[1] = "--start";
-+ argv[2] = NULL;
-+ g_spawn_sync (NULL, argv, NULL,
-+ G_SPAWN_SEARCH_PATH | G_SPAWN_LEAVE_DESCRIPTORS_OPEN,
- child_setup, NULL,
- &sout, NULL, &status, &error);
-
-@@ -154,20 +144,22 @@ gnome_keyring_daemon_startup (void)
- {
- if (WIFEXITED (status) && WEXITSTATUS (status) == 0 && sout != NULL)
- {
-- lines = g_strsplit (sout, "\n", 3);
--
-- if (lines[0] != NULL && lines[1] != NULL
-- && g_str_has_prefix (lines[1], "GNOME_KEYRING_PID="))
-- {
-- pid_str = lines[1] + strlen ("GNOME_KEYRING_PID=");
-- pid = strtol (pid_str, &end, 10);
--
-- if (end != pid_str)
-- {
-- gnome_keyring_daemon_pid = pid;
-- xfce_putenv (lines[0]);
-- }
-- }
-+ lines = g_strsplit (sout, "\n", 0);
-+
-+ for (lineno = 0; lines[lineno] != NULL; lineno++)
-+ {
-+ xfce_putenv (lines[lineno]);
-+
-+ if (g_str_has_prefix (lines[lineno], "GNOME_KEYRING_PID="))
-+ {
-+ pid_str = lines[lineno] + strlen ("GNOME_KEYRING_PID=");
-+ pid = strtol (pid_str, &end, 10);
-+ if (end != pid_str)
-+ {
-+ gnome_keyring_daemon_pid = pid;
-+ }
-+ }
-+ }
-
- g_strfreev (lines);
-
---
-cgit v0.8.3.4
diff --git a/xfce-base/xfce4-session/xfce4-session-4.7.0.ebuild b/xfce-base/xfce4-session/xfce4-session-4.7.0.ebuild
deleted file mode 100644
index f27a0947df77..000000000000
--- a/xfce-base/xfce4-session/xfce4-session-4.7.0.ebuild
+++ /dev/null
@@ -1,47 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/xfce-base/xfce4-session/xfce4-session-4.7.0.ebuild,v 1.4 2010/10/24 20:18:29 ssuominen Exp $
-
-EAPI=3
-inherit xfconf
-
-DESCRIPTION="Session manager for Xfce4"
-HOMEPAGE="http://www.xfce.org/projects/xfce4-session/"
-SRC_URI="mirror://xfce/src/xfce/${PN}/4.7/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~x86-solaris"
-IUSE="debug gnome gnome-keyring xfce_plugins_logout"
-
-RDEPEND=">=dev-libs/dbus-glib-0.73
- x11-apps/iceauth
- x11-libs/libSM
- >=x11-libs/libwnck-2.22
- x11-libs/libX11
- >=xfce-base/libxfce4util-4.7
- >=xfce-base/libxfce4ui-4.7
- >=xfce-base/xfconf-4.7
- >=xfce-base/xfce-utils-4.7
- gnome? ( gnome-base/gconf )
- gnome-keyring? ( gnome-base/libgnome-keyring )
- xfce_plugins_logout? ( >=xfce-base/xfce4-panel-4.7.2 )"
-DEPEND="${RDEPEND}
- dev-util/intltool
- dev-util/pkgconfig
- sys-devel/gettext"
-
-pkg_setup() {
- PATCHES=(
- "${FILESDIR}"/${P}-ck-launch-session.patch
- "${FILESDIR}"/${P}-gnome-keyring.patch
- )
- XFCONF="--docdir=${EPREFIX}/usr/share/doc/${PF}
- --disable-dependency-tracking
- --disable-static
- $(use_enable xfce_plugins_logout panel-plugin)
- $(use_enable gnome)
- $(use_enable gnome-keyring libgnome-keyring)
- $(xfconf_use_debug)"
- DOCS="AUTHORS BUGS ChangeLog NEWS README TODO"
-}