diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2010-12-03 21:40:26 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2010-12-03 21:40:26 +0000 |
commit | edfea3651356fb6ec5cef2e738cab9bb1a76025a (patch) | |
tree | ec019b206c1f088a956326bdcc23e57b9730af7d /xfce-base | |
parent | Version bump. (diff) | |
download | historical-edfea3651356fb6ec5cef2e738cab9bb1a76025a.tar.gz historical-edfea3651356fb6ec5cef2e738cab9bb1a76025a.tar.bz2 historical-edfea3651356fb6ec5cef2e738cab9bb1a76025a.zip |
Version bump.
Package-Manager: portage-2.2.0_alpha6/cvs/Linux x86_64
Diffstat (limited to 'xfce-base')
-rw-r--r-- | xfce-base/xfce4-session/ChangeLog | 8 | ||||
-rw-r--r-- | xfce-base/xfce4-session/files/xfce4-session-4.7.1-fix_logout_with_sudo.patch | 45 | ||||
-rw-r--r-- | xfce-base/xfce4-session/files/xfce4-session-4.7.1-stop_using_subject_cookie.patch | 167 | ||||
-rw-r--r-- | xfce-base/xfce4-session/xfce4-session-4.7.2.ebuild (renamed from xfce-base/xfce4-session/xfce4-session-4.7.1-r2.ebuild) | 7 | ||||
-rw-r--r-- | xfce-base/xfconf/ChangeLog | 7 | ||||
-rw-r--r-- | xfce-base/xfconf/xfconf-4.7.4.ebuild | 58 |
6 files changed, 72 insertions, 220 deletions
diff --git a/xfce-base/xfce4-session/ChangeLog b/xfce-base/xfce4-session/ChangeLog index 2c23fe74ed65..7811b456391a 100644 --- a/xfce-base/xfce4-session/ChangeLog +++ b/xfce-base/xfce4-session/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for xfce-base/xfce4-session # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/xfce-base/xfce4-session/ChangeLog,v 1.124 2010/11/13 12:08:02 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/xfce-base/xfce4-session/ChangeLog,v 1.125 2010/12/03 21:40:23 ssuominen Exp $ + +*xfce4-session-4.7.2 (03 Dec 2010) + + 03 Dec 2010; Samuli Suominen <ssuominen@gentoo.org> + +xfce4-session-4.7.2.ebuild: + Version bump. 13 Nov 2010; Samuli Suominen <ssuominen@gentoo.org> files/xfce4-session-4.7.1-stop_using_subject_cookie.patch: diff --git a/xfce-base/xfce4-session/files/xfce4-session-4.7.1-fix_logout_with_sudo.patch b/xfce-base/xfce4-session/files/xfce4-session-4.7.1-fix_logout_with_sudo.patch deleted file mode 100644 index 8b0a6efdf075..000000000000 --- a/xfce-base/xfce4-session/files/xfce4-session-4.7.1-fix_logout_with_sudo.patch +++ /dev/null @@ -1,45 +0,0 @@ -From 6f8746b55cbbe1687c4978da55905177cc860968 Mon Sep 17 00:00:00 2001 -From: Landry Breuil <landry@openbsd.org> -Date: Sun, 07 Nov 2010 11:59:01 +0000 -Subject: Fix logout with sudo. - ---- -diff --git a/xfce4-session/xfsm-shutdown-helper.c b/xfce4-session/xfsm-shutdown-helper.c -index e0a65e8..e6c2817 100644 ---- a/xfce4-session/xfsm-shutdown-helper.c -+++ b/xfce4-session/xfsm-shutdown-helper.c -@@ -1331,13 +1331,20 @@ xfsm_shutdown_helper_init (XfsmShutdownHelper *helper) - xfsm_shutdown_helper_check_backends (helper); - } - else -- /* Unable to connect to the system bus, just try sudo*/ - { -- g_critical ("Failed to connect to the system bus : %s", error->message); -+ g_warning ("Failed to connect to the system bus : %s", error->message); - g_error_free (error); - -+ /* Unable to connect to the system bus, just try sudo */ - if (xfsm_shutdown_helper_check_sudo (helper)) -- helper->shutdown_backend = XFSM_SHUTDOWN_BACKEND_SUDO; -+ { -+ helper->shutdown_backend = XFSM_SHUTDOWN_BACKEND_SUDO; -+ -+ helper->can_shutdown = TRUE; -+ helper->can_restart = TRUE; -+ helper->auth_shutdown = TRUE; -+ helper->auth_restart = TRUE; -+ } - } - } - -@@ -1645,7 +1652,7 @@ xfsm_shutdown_helper_sudo_send (XfsmShutdownHelper *helper, - fprintf (helper->outfile, "%s\n", action); - fflush (helper->outfile); - -- g_message (G_STRLOC ": Using ConsoleKit to %s",action); -+ g_message (G_STRLOC ": Using sudo to %s", action); - - if (ferror (helper->outfile)) - { --- -cgit v0.8.3.4 diff --git a/xfce-base/xfce4-session/files/xfce4-session-4.7.1-stop_using_subject_cookie.patch b/xfce-base/xfce4-session/files/xfce4-session-4.7.1-stop_using_subject_cookie.patch deleted file mode 100644 index 9a71332bf7b1..000000000000 --- a/xfce-base/xfce4-session/files/xfce4-session-4.7.1-stop_using_subject_cookie.patch +++ /dev/null @@ -1,167 +0,0 @@ -From 394a43c96387ec1c294105b6fa8ea610d5e381dc Mon Sep 17 00:00:00 2001 -From: Jannis Pohlmann <jannis@xfce.org> -Date: Sat, 13 Nov 2010 11:57:19 +0000 -Subject: Don't use "unix-session" authorization with PolicyKit (bug #6817). - -This fixes suspend/hibernate in xfce4-session-logout. For some reason -PolicyKit either has a broken "unix-session" implementation or no -implementation at all. So most GNOME apps seem to use "unix-process". ---- -diff --git a/xfce4-session/xfsm-shutdown-helper.c b/xfce4-session/xfsm-shutdown-helper.c -index e6c2817..9f902ad 100644 ---- a/xfce4-session/xfsm-shutdown-helper.c -+++ b/xfce4-session/xfsm-shutdown-helper.c -@@ -331,11 +331,9 @@ init_dbus_gtypes (void) - static gboolean - xfsm_shutdown_helper_init_polkit_data (XfsmShutdownHelper *helper) - { --#ifdef ENABLE_CONSOLE_KIT -- const gchar *consolekit_cookie; --#endif - GValue hash_elem = { 0 }; -- gboolean subject_created = FALSE; -+ guint64 start_time; -+ gint pid; - - helper->polkit_proxy = - dbus_g_proxy_new_for_name (helper->system_bus, -@@ -346,112 +344,41 @@ xfsm_shutdown_helper_init_polkit_data (XfsmShutdownHelper *helper) - if (!helper->polkit_proxy) - return FALSE; - --#ifdef ENABLE_CONSOLE_KIT -- /** -- * This variable should be set by the session manager or by -- * the login manager (gdm?). under clean Xfce environment -- * it is set by the session manager (4.8 and above) -- * since we don't have a login manager, yet! -- **/ -- consolekit_cookie = g_getenv ("XDG_SESSION_COOKIE"); -- -- if (consolekit_cookie) -- { -- DBusGProxy *proxy; -- GError *error = NULL; -- gboolean ret; -- gchar *consolekit_session; -- -- proxy = dbus_g_proxy_new_for_name (helper->system_bus, -- "org.freedesktop.ConsoleKit", -- "/org/freedesktop/ConsoleKit/Manager", -- "org.freedesktop.ConsoleKit.Manager"); -+ pid = getpid (); - -- if (proxy) -- { -- ret = dbus_g_proxy_call (proxy, "GetSessionForCookie", &error, -- G_TYPE_STRING, consolekit_cookie, -- G_TYPE_INVALID, -- DBUS_TYPE_G_OBJECT_PATH, &consolekit_session, -- G_TYPE_INVALID); -+ start_time = get_start_time_for_pid (pid); - -- if (G_LIKELY (ret)) -- { -- GValue val = { 0 }; -+ if (G_LIKELY (start_time != 0)) -+ { -+ GValue val = { 0 }, pid_val = { 0 }, start_time_val = { 0 }; - -- helper->polkit_subject = g_value_array_new (2); -- helper->polkit_subject_hash = g_hash_table_new_full (g_str_hash, -- g_str_equal, -- g_free, NULL); -- g_value_init (&val, G_TYPE_STRING); -- g_value_set_string (&val, "unix-session"); -- g_value_array_append (helper->polkit_subject, &val); -+ helper->polkit_subject = g_value_array_new (2); -+ helper->polkit_subject_hash = g_hash_table_new_full (g_str_hash, -+ g_str_equal, -+ g_free, NULL); -+ g_value_init (&val, G_TYPE_STRING); -+ g_value_set_string (&val, "unix-process"); -+ g_value_array_append (helper->polkit_subject, &val); - -- g_value_unset (&val); -- g_value_init (&val, G_TYPE_STRING); -- g_value_set_string (&val, consolekit_session); -+ g_value_unset (&val); - -- g_hash_table_insert (helper->polkit_subject_hash, g_strdup ("session-id"), &val); -+ g_value_init (&pid_val, G_TYPE_UINT); -+ g_value_set_uint (&pid_val, pid); -+ g_hash_table_insert (helper->polkit_subject_hash, g_strdup ("pid"), &pid_val); - -- g_free (consolekit_session); -- subject_created = TRUE; -- } -- else if (error) -- { -- g_warning ("'GetSessionForCookie' failed : %s", error->message); -- g_error_free (error); -- } -- g_object_unref (proxy); -- } -+ g_value_init (&start_time_val, G_TYPE_UINT64); -+ g_value_set_uint64 (&start_time_val, start_time); -+ g_hash_table_insert (helper->polkit_subject_hash, g_strdup ("start-time"), &start_time_val); - } --#endif -- -- /** -- * We failed to get valid session data, then we try -- * to check authentication using the pid. -- **/ -- if (subject_created == FALSE) -+ else - { -- gint pid; -- guint64 start_time; -- -- pid = getpid (); -- -- start_time = get_start_time_for_pid (pid); -- -- if (G_LIKELY (start_time != 0)) -- { -- GValue val = { 0 }, pid_val = { 0 }, start_time_val = { 0 }; -- -- helper->polkit_subject = g_value_array_new (2); -- helper->polkit_subject_hash = g_hash_table_new_full (g_str_hash, -- g_str_equal, -- g_free, NULL); -- g_value_init (&val, G_TYPE_STRING); -- g_value_set_string (&val, "unix-process"); -- g_value_array_append (helper->polkit_subject, &val); -- -- g_value_unset (&val); -- -- g_value_init (&pid_val, G_TYPE_UINT); -- g_value_set_uint (&pid_val, pid); -- g_hash_table_insert (helper->polkit_subject_hash, g_strdup ("pid"), &pid_val); -- -- g_value_init (&start_time_val, G_TYPE_UINT64); -- g_value_set_uint64 (&start_time_val, start_time); -- g_hash_table_insert (helper->polkit_subject_hash, g_strdup ("start-time"), &start_time_val); -- } -- else -- { -- g_warning ("Unable to create Polkit subject"); -- return FALSE; -- } -+ g_warning ("Unable to create Polkit subject"); -+ return FALSE; - } -+ - -- g_value_init (&hash_elem, -- dbus_g_type_get_map ("GHashTable", -- G_TYPE_STRING, -- G_TYPE_VALUE)); -+ g_value_init (&hash_elem, -+ dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, G_TYPE_VALUE)); - - g_value_set_static_boxed (&hash_elem, helper->polkit_subject_hash); - g_value_array_append (helper->polkit_subject, &hash_elem); --- -cgit v0.8.3.4 diff --git a/xfce-base/xfce4-session/xfce4-session-4.7.1-r2.ebuild b/xfce-base/xfce4-session/xfce4-session-4.7.2.ebuild index bf2010dca609..688522fd3b35 100644 --- a/xfce-base/xfce4-session/xfce4-session-4.7.1-r2.ebuild +++ b/xfce-base/xfce4-session/xfce4-session-4.7.2.ebuild @@ -1,6 +1,6 @@ # 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.1-r2.ebuild,v 1.1 2010/11/12 20:50:57 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/xfce-base/xfce4-session/xfce4-session-4.7.2.ebuild,v 1.1 2010/12/03 21:40:23 ssuominen Exp $ EAPI=3 inherit xfconf @@ -32,11 +32,6 @@ DEPEND="${RDEPEND} sys-devel/gettext" pkg_setup() { - PATCHES=( - "${FILESDIR}"/${P}-fix_logout_with_sudo.patch - "${FILESDIR}"/${P}-stop_using_subject_cookie.patch - ) - XFCONF=( --docdir="${EPREFIX}"/usr/share/doc/${PF} --disable-dependency-tracking diff --git a/xfce-base/xfconf/ChangeLog b/xfce-base/xfconf/ChangeLog index 43ea9d44ac10..1235aaf2a206 100644 --- a/xfce-base/xfconf/ChangeLog +++ b/xfce-base/xfconf/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for xfce-base/xfconf # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/xfce-base/xfconf/ChangeLog,v 1.42 2010/09/06 12:37:49 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/xfce-base/xfconf/ChangeLog,v 1.43 2010/12/03 21:35:48 ssuominen Exp $ + +*xfconf-4.7.4 (03 Dec 2010) + + 03 Dec 2010; Samuli Suominen <ssuominen@gentoo.org> +xfconf-4.7.4.ebuild: + Version bump. *xfconf-4.7.3 (06 Sep 2010) diff --git a/xfce-base/xfconf/xfconf-4.7.4.ebuild b/xfce-base/xfconf/xfconf-4.7.4.ebuild new file mode 100644 index 000000000000..99f7bceec44d --- /dev/null +++ b/xfce-base/xfconf/xfconf-4.7.4.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/xfce-base/xfconf/xfconf-4.7.4.ebuild,v 1.1 2010/12/03 21:35:48 ssuominen Exp $ + +EAPI=3 +inherit xfconf + +DESCRIPTION="Xfce configuration daemon and utilities" +HOMEPAGE="http://www.xfce.org/" +SRC_URI="mirror://xfce/src/xfce/xfconf/4.7/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~x64-solaris" +IUSE="debug perl" + +RDEPEND=">=dev-libs/dbus-glib-0.72 + >=dev-libs/glib-2.18:2 + >=xfce-base/libxfce4util-4.6 + perl? ( dev-perl/glib-perl )" +DEPEND="${RDEPEND} + dev-util/pkgconfig + dev-util/intltool + sys-devel/gettext + perl? ( dev-perl/extutils-depends + dev-perl/extutils-pkgconfig )" + +RESTRICT="test" + +pkg_setup() { + XFCONF=( + --disable-dependency-tracking + --disable-static + --with-perl-options=INSTALLDIRS=vendor + $(use_enable perl perl-bindings) + --disable-gtk-doc + --disable-gtk-doc-html + --disable-gtk-doc-pdf + $(use_enable debug) + $(use_enable debug checks) + --with-html-dir="${EPREFIX}"/usr/share/doc/${PF}/html + ) + + DOCS="AUTHORS ChangeLog NEWS TODO" +} + +src_compile() { + emake OTHERLDFLAGS="${LDFLAGS}" || die +} + +src_install() { + xfconf_src_install + + if use perl; then + find "${ED}" -type f -name perllocal.pod -delete + find "${ED}" -depth -mindepth 1 -type d -empty -delete + fi +} |