diff options
author | Alexandre Rostovtsev <tetromino@gentoo.org> | 2011-10-29 02:11:42 +0000 |
---|---|---|
committer | Alexandre Rostovtsev <tetromino@gentoo.org> | 2011-10-29 02:11:42 +0000 |
commit | 2ec9a60b87c9edaefad9f3a73886ef7ff847142c (patch) | |
tree | 369ff275aff5c86f3019e39f13d60e36dda70658 /gnome-base/gnome-settings-daemon | |
parent | Bump to 3.2.0.1 and 3.0.1-r1 from the gnome overlay and drop old. Note that 3... (diff) | |
download | gentoo-2-2ec9a60b87c9edaefad9f3a73886ef7ff847142c.tar.gz gentoo-2-2ec9a60b87c9edaefad9f3a73886ef7ff847142c.tar.bz2 gentoo-2-2ec9a60b87c9edaefad9f3a73886ef7ff847142c.zip |
Bump to 3.2.1 from the gnome overlay. Numerous changes and improvements.
(Portage version: 2.2.0_alpha71/cvs/Linux x86_64)
Diffstat (limited to 'gnome-base/gnome-settings-daemon')
6 files changed, 297 insertions, 1 deletions
diff --git a/gnome-base/gnome-settings-daemon/ChangeLog b/gnome-base/gnome-settings-daemon/ChangeLog index 08cd27eeef12..867413be5007 100644 --- a/gnome-base/gnome-settings-daemon/ChangeLog +++ b/gnome-base/gnome-settings-daemon/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for gnome-base/gnome-settings-daemon # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-settings-daemon/ChangeLog,v 1.92 2011/10/28 20:07:36 maekke Exp $ +# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-settings-daemon/ChangeLog,v 1.93 2011/10/29 02:11:41 tetromino Exp $ + +*gnome-settings-daemon-3.2.1 (29 Oct 2011) + + 29 Oct 2011; Alexandre Rostovtsev <tetromino@gentoo.org> + +files/gnome-settings-daemon-3.2.0-color-unbreak-loading-profiles.patch, + +gnome-settings-daemon-3.2.1.ebuild, + +files/gnome-settings-daemon-3.2.1-WEXITSTATUS.patch, + +files/gnome-settings-daemon-3.2.1-optional-colord.patch, metadata.xml: + Bump to 3.2.1 from the gnome overlay. Numerous changes and improvements. 28 Oct 2011; Markus Meier <maekke@gentoo.org> gnome-settings-daemon-2.32.1-r2.ebuild: diff --git a/gnome-base/gnome-settings-daemon/files/gnome-settings-daemon-3.2.0-color-unbreak-loading-profiles.patch b/gnome-base/gnome-settings-daemon/files/gnome-settings-daemon-3.2.0-color-unbreak-loading-profiles.patch new file mode 100644 index 000000000000..370cfc5e0fba --- /dev/null +++ b/gnome-base/gnome-settings-daemon/files/gnome-settings-daemon-3.2.0-color-unbreak-loading-profiles.patch @@ -0,0 +1,41 @@ +From e46d34f5bd9b0260a204d5f8a9d23c747b61923f Mon Sep 17 00:00:00 2001 +From: Cosimo Cecchi <cosimoc@gnome.org> +Date: Mon, 3 Oct 2011 10:02:34 -0400 +Subject: [PATCH] color: unbreak loading profiles at startup + +A recent commit broke color profile loading at startup if the profile +directory exists already. Fix this. + +https://bugzilla.gnome.org/show_bug.cgi?id=660790 + +Signed-off-by: Richard Hughes <richard@hughsie.com> + +[Alexandre Rostovtsev <tetromino@gmail.com>: backported to 3.2] +--- + plugins/color/gcm-profile-store.c | 5 +++-- + 1 files changed, 3 insertions(+), 2 deletions(-) + +diff --git a/plugins/color/gcm-profile-store.c b/plugins/color/gcm-profile-store.c +index 3dde406..f8b0889 100644 +--- a/plugins/color/gcm-profile-store.c ++++ b/plugins/color/gcm-profile-store.c +@@ -445,13 +445,14 @@ gcm_profile_store_search (GcmProfileStore *profile_store) + /* get Linux per-user profiles */ + path = g_build_filename (g_get_user_data_dir (), "icc", NULL); + ret = gcm_profile_store_mkdir_with_parents (path, &error); +- if (!ret) { ++ if (!ret && ++ !g_error_matches (error, G_IO_ERROR, G_IO_ERROR_EXISTS)) { + g_warning ("failed to create directory on startup: %s", error->message); +- g_error_free (error); + } else { + gcm_profile_store_search_path (profile_store, path, 0); + } + g_free (path); ++ g_clear_error (&error); + + /* get per-user profiles from obsolete location */ + path = g_build_filename (g_get_home_dir (), ".color", "icc", NULL); +-- +1.7.7 + diff --git a/gnome-base/gnome-settings-daemon/files/gnome-settings-daemon-3.2.1-WEXITSTATUS.patch b/gnome-base/gnome-settings-daemon/files/gnome-settings-daemon-3.2.1-WEXITSTATUS.patch new file mode 100644 index 000000000000..2c3e59f67a91 --- /dev/null +++ b/gnome-base/gnome-settings-daemon/files/gnome-settings-daemon-3.2.1-WEXITSTATUS.patch @@ -0,0 +1,21 @@ +From 9b141728c889a6d2f88767655661318e3d8d82da Mon Sep 17 00:00:00 2001 +From: Malcolm Lewis <malcolmlewis@opensuse.org> +Date: Mon, 17 Oct 2011 16:43:06 +0000 +Subject: power: Fix "undefined symbol: WEXITSTATUS" error. + +https://bugzilla.gnome.org/show_bug.cgi?id=662020 +--- +diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c +index 010d14a..3f10c22 100644 +--- a/plugins/power/gsd-power-manager.c ++++ b/plugins/power/gsd-power-manager.c +@@ -24,6 +24,7 @@ + #include <stdlib.h> + #include <string.h> + #include <stdio.h> ++#include <sys/wait.h> + #include <glib/gi18n.h> + #include <gtk/gtk.h> + #include <libupower-glib/upower.h> +-- +cgit v0.9.0.2 diff --git a/gnome-base/gnome-settings-daemon/files/gnome-settings-daemon-3.2.1-optional-colord.patch b/gnome-base/gnome-settings-daemon/files/gnome-settings-daemon-3.2.1-optional-colord.patch new file mode 100644 index 000000000000..98afbec65067 --- /dev/null +++ b/gnome-base/gnome-settings-daemon/files/gnome-settings-daemon-3.2.1-optional-colord.patch @@ -0,0 +1,95 @@ +From e1e0584cec966dc58a51efaf534f129b4830399f Mon Sep 17 00:00:00 2001 +From: Alexandre Rostovtsev <tetromino@gentoo.org> +Date: Thu, 27 Oct 2011 23:30:41 -0400 +Subject: [PATCH] Make colord optional + +--- + configure.ac | 20 +++++++++++++++++++- + data/Makefile.am | 7 ++++++- + plugins/Makefile.am | 7 ++++++- + 3 files changed, 31 insertions(+), 3 deletions(-) + +diff --git a/configure.ac b/configure.ac +index fe74674..f1a8547 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -107,7 +107,25 @@ PKG_CHECK_MODULES(GNOME_DESKTOP, gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VE + dnl --------------------------------------------------------------------------- + dnl - Check for colord + dnl --------------------------------------------------------------------------- +-PKG_CHECK_MODULES(COLORD, colord >= 0.1.12) ++build_color=false ++AC_ARG_ENABLE(color, ++ AC_HELP_STRING([--disable-color], ++ [turn off color plugin]), ++ [case "${enableval}" in ++ yes) WANT_COLOR=yes ;; ++ no) WANT_COLOR=no ;; ++ *) AC_MSG_ERROR(bad value ${enableval} for --disable-color) ;; ++ esac], ++ [WANT_COLOR=yes]) dnl Default value ++ ++if test x$WANT_COLOR = xyes; then ++ PKG_CHECK_MODULES(COLORD, colord >= 0.1.12) ++ build_color=true ++fi ++AM_CONDITIONAL(BUILD_COLOR, test "x$build_color" = "xtrue") ++ ++AC_SUBST(COLORD_CFLAGS) ++AC_SUBST(COLORD_LIBS) + + dnl --------------------------------------------------------------------------- + dnl - Check for libcanberra +diff --git a/data/Makefile.am b/data/Makefile.am +index 43ba27c..1f3bbef 100644 +--- a/data/Makefile.am ++++ b/data/Makefile.am +@@ -11,7 +11,6 @@ gsettings_SCHEMAS = \ + org.gnome.settings-daemon.plugins.gschema.xml \ + org.gnome.settings-daemon.plugins.keyboard.gschema.xml \ + org.gnome.settings-daemon.plugins.power.gschema.xml \ +- org.gnome.settings-daemon.plugins.color.gschema.xml \ + org.gnome.settings-daemon.plugins.media-keys.gschema.xml \ + org.gnome.settings-daemon.plugins.xsettings.gschema.xml \ + org.gnome.settings-daemon.plugins.housekeeping.gschema.xml \ +@@ -21,6 +20,12 @@ gsettings_SCHEMAS = \ + + all_schemas = $(gsettings_SCHEMAS) + ++if BUILD_COLOR ++gsettings_SCHEMAS += org.gnome.settings-daemon.plugins.color.gschema.xml ++else ++all_schemas += org.gnome.settings-daemon.plugins.color.gschema.xml ++endif ++ + if HAVE_PACKAGEKIT + gsettings_SCHEMAS += org.gnome.settings-daemon.plugins.updates.gschema.xml + else +diff --git a/plugins/Makefile.am b/plugins/Makefile.am +index 5e26811..d2404ab 100644 +--- a/plugins/Makefile.am ++++ b/plugins/Makefile.am +@@ -6,7 +6,6 @@ enabled_plugins = \ + automount \ + background \ + clipboard \ +- color \ + cursor \ + datetime \ + dummy \ +@@ -24,6 +23,12 @@ enabled_plugins = \ + + disabled_plugins = $(NULL) + ++if BUILD_COLOR ++enabled_plugins += color ++else ++disabled_plugins += color ++endif ++ + if BUILD_GCONF_BRIDGE + enabled_plugins += gconf + else +-- +1.7.7.1 + diff --git a/gnome-base/gnome-settings-daemon/gnome-settings-daemon-3.2.1.ebuild b/gnome-base/gnome-settings-daemon/gnome-settings-daemon-3.2.1.ebuild new file mode 100644 index 000000000000..768974c652bb --- /dev/null +++ b/gnome-base/gnome-settings-daemon/gnome-settings-daemon-3.2.1.ebuild @@ -0,0 +1,128 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-settings-daemon/gnome-settings-daemon-3.2.1.ebuild,v 1.1 2011/10/29 02:11:41 tetromino Exp $ + +EAPI="4" +GCONF_DEBUG="no" +GNOME2_LA_PUNT="yes" + +inherit autotools eutils gnome2 virtualx + +DESCRIPTION="Gnome Settings Daemon" +HOMEPAGE="http://www.gnome.org" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris" +IUSE="+colord +cups debug packagekit policykit short-touchpad-timeout smartcard +udev" + +# Latest gsettings-desktop-schemas is needed due to commit e8d1de92 +# Latest gnome-desktop needed to fix the DPMS timeout bug #385063 +# colord-0.1.13 needed to avoid polkit errors in CreateProfile and CreateDevice +# upower-0.9.11 needed for UpSleepKind +COMMON_DEPEND=">=dev-libs/dbus-glib-0.74 + >=dev-libs/glib-2.29.14:2 + >=x11-libs/gtk+-2.99.3:3 + >=gnome-base/gconf-2.6.1:2 + >=gnome-base/libgnomekbd-2.91.1 + >=gnome-base/gnome-desktop-3.2.0-r1:3 + >=gnome-base/gsettings-desktop-schemas-0.1.7.1 + media-fonts/cantarell + media-libs/fontconfig + >=media-libs/lcms-2.2:2 + media-libs/libcanberra[gtk3] + >=media-sound/pulseaudio-0.9.16 + >=sys-power/upower-0.9.11 + >=x11-libs/libnotify-0.7.3 + x11-libs/libX11 + x11-libs/libXi + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXxf86misc + >=x11-libs/libxklavier-5.0 + >=media-sound/pulseaudio-0.9.16 + + colord? ( >=x11-misc/colord-0.1.13 ) + cups? ( >=net-print/cups-1.4[dbus] ) + packagekit? ( + || ( sys-fs/udev[gudev] + sys-fs/udev[extras] ) + >=app-admin/packagekit-base-0.6.12 ) + policykit? ( + >=sys-auth/polkit-0.97 + >=sys-apps/dbus-1.1.2[X] ) + smartcard? ( >=dev-libs/nss-3.11.2 ) + udev? ( || ( sys-fs/udev[gudev] + sys-fs/udev[extras] ) )" +# Themes needed by g-s-d, gnome-shell, gtk+:3 apps to work properly +# <gnome-color-manager-3.1.1 has file collisions with g-s-d-3.1.x +# <gnome-power-manager-3.1.3 has file collisions with g-s-d-3.1.x +RDEPEND="${COMMON_DEPEND} + gnome-base/dconf + >=x11-themes/gnome-themes-standard-2.91 + >=x11-themes/gnome-icon-theme-2.91 + >=x11-themes/gnome-icon-theme-symbolic-2.91 + !<gnome-base/gnome-control-center-2.22 + !<gnome-extra/gnome-color-manager-3.1.1 + !<gnome-extra/gnome-power-manager-3.1.3" +# xproto-7.0.15 needed for power plugin +DEPEND="${COMMON_DEPEND} + cups? ( sys-apps/sed ) + sys-devel/gettext + >=dev-util/intltool-0.40 + >=dev-util/pkgconfig-0.19 + x11-proto/inputproto + x11-proto/kbproto + x11-proto/xf86miscproto + >=x11-proto/xproto-7.0.15" + +pkg_setup() { + # README is empty + DOCS="AUTHORS NEWS ChangeLog MAINTAINERS" + G2CONF="${G2CONF} + --disable-static + --disable-schemas-compile + --enable-gconf-bridge + --with-pnpids=${EPREFIX}/usr/share/libgnome-desktop-3.0/pnp.ids + $(use_enable colord color) + $(use_enable cups) + $(use_enable debug) + $(use_enable debug more-warnings) + $(use_enable packagekit) + $(use_enable policykit polkit) + $(use_enable smartcard smartcard-support) + $(use_enable udev gudev)" +} + +src_prepare() { + # Upstream patch to fix undefined symbol, will be in next release + epatch "${FILESDIR}/${P}-WEXITSTATUS.patch" + + # Backport patch from git master branch (not in gnome-3-2 branch yet) + # fixing loading color profiles at startup + epatch "${FILESDIR}/${PN}-3.2.0-color-unbreak-loading-profiles.patch" + + # https://bugzilla.gnome.org/show_bug.cgi?id=621836 + # Apparently this change severely affects touchpad usability for some + # people, so revert it if USE=short-touchpad-timeout. + # Revisit if/when upstream adds a setting for customizing the timeout. + use short-touchpad-timeout && + epatch "${FILESDIR}/${PN}-3.0.2-short-touchpad-timeout.patch" + + # Make colord optional; requires eautoreconf + epatch "${FILESDIR}/${PN}-3.2.1-optional-colord.patch" + eautoreconf + + gnome2_src_prepare +} + +src_test() { + Xemake check +} + +src_install() { + gnome2_src_install + + echo 'GSETTINGS_BACKEND="dconf"' >> 51gsettings-dconf + doenvd 51gsettings-dconf || die "doenvd failed" +} diff --git a/gnome-base/gnome-settings-daemon/metadata.xml b/gnome-base/gnome-settings-daemon/metadata.xml index 7b0c7bd503a8..f68905efbe19 100644 --- a/gnome-base/gnome-settings-daemon/metadata.xml +++ b/gnome-base/gnome-settings-daemon/metadata.xml @@ -3,6 +3,8 @@ <pkgmetadata> <herd>gnome</herd> <use> + <flag name="colord">Support color management using + <pkg>x11-misc/colord</pkg></flag> <flag name="packagekit">Enable support for the distro-neutral package manager GUI <pkg>app-admin/packagekit</pkg></flag> <flag name="short-touchpad-timeout">Change the touchpad timeout so that |