Update to 3.1.1

This commit is contained in:
Tomas Bzatek 2011-05-11 17:44:26 +02:00
parent 5dc36c9db7
commit 86d764b24b
6 changed files with 11 additions and 111 deletions

1
.gitignore vendored
View File

@ -20,3 +20,4 @@ gnome-settings-daemon-2.31.6.tar.bz2
/gnome-settings-daemon-3.0.0.tar.bz2 /gnome-settings-daemon-3.0.0.tar.bz2
/gnome-settings-daemon-3.0.0.1.tar.bz2 /gnome-settings-daemon-3.0.0.1.tar.bz2
/gnome-settings-daemon-3.0.1.tar.bz2 /gnome-settings-daemon-3.0.1.tar.bz2
/gnome-settings-daemon-3.1.1.tar.bz2

View File

@ -1,27 +0,0 @@
From 2c748a6d841dc2b673df975b28ebffcbe76b4bce Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess@hadess.net>
Date: Thu, 28 Apr 2011 15:51:13 +0100
Subject: [PATCH] datetime: Fix setting NTP on Fedora 15
https://bugzilla.gnome.org/show_bug.cgi?id=648556
---
plugins/datetime/gsd-datetime-mechanism.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/plugins/datetime/gsd-datetime-mechanism.c b/plugins/datetime/gsd-datetime-mechanism.c
index 2c43a4a..6ea8d83 100644
--- a/plugins/datetime/gsd-datetime-mechanism.c
+++ b/plugins/datetime/gsd-datetime-mechanism.c
@@ -745,7 +745,8 @@ gsd_datetime_mechanism_set_using_ntp (GsdDatetimeMechanism *mechanism,
return FALSE;
if (g_file_test ("/sbin/chkconfig", G_FILE_TEST_EXISTS)) /* Fedora */
- cmd = g_strconcat ("/sbin/chkconfig --level 2345 ntpd ", using_ntp ? "on" : "off", NULL);
+ /* We omit --level 2345 so that systemd doesn't try to use the SysV init scripts */
+ cmd = g_strconcat ("/sbin/chkconfig ntpd ", using_ntp ? "on" : "off", NULL);
else if (g_file_test ("/usr/sbin/update-rc.d", G_FILE_TEST_EXISTS)) /* Debian */
cmd = g_strconcat ("/usr/sbin/update-rc.d ntp ", using_ntp ? "enable" : "disable", NULL);
else {
--
1.7.4.4

View File

@ -1,28 +0,0 @@
From 89b4b516edfd5ec19f8987d63624c28fc2f30f8f Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess@hadess.net>
Date: Wed, 16 Feb 2011 16:26:45 +0000
Subject: [PATCH] media-keys: Fix crash when keybindings change
We need to skip over hard-coded keys which don't have a
key name.
---
plugins/media-keys/gsd-media-keys-manager.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/plugins/media-keys/gsd-media-keys-manager.c b/plugins/media-keys/gsd-media-keys-manager.c
index 1c1b2cf..7d42f49 100644
--- a/plugins/media-keys/gsd-media-keys-manager.c
+++ b/plugins/media-keys/gsd-media-keys-manager.c
@@ -292,6 +292,9 @@ update_kbd_cb (GSettings *settings,
/* Find the key that was modified */
for (i = 0; i < HANDLED_KEYS; i++) {
+ /* Skip over hard-coded keys */
+ if (keys[i].settings_key == NULL)
+ continue;
if (strcmp (key, keys[i].settings_key) == 0) {
char *tmp;
Key *key;
--
1.7.4

View File

@ -1,44 +0,0 @@
From 5de806c640d812041d0174307c628e0385c81561 Mon Sep 17 00:00:00 2001
From: Matthias Clasen <mclasen@redhat.com>
Date: Mon, 2 May 2011 14:23:53 -0400
Subject: [PATCH] updates: deal with absence of gnome-session gracefully
This was leading to crashes when g-s-d got started under xfce.
---
plugins/updates/gsd-updates-refresh.c | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/plugins/updates/gsd-updates-refresh.c b/plugins/updates/gsd-updates-refresh.c
index 15e6917..60d5f80 100644
--- a/plugins/updates/gsd-updates-refresh.c
+++ b/plugins/updates/gsd-updates-refresh.c
@@ -560,7 +560,7 @@ gsd_updates_refresh_init (GsdUpdatesRefresh *refresh)
/* use gnome-session for the idle detection */
refresh->priv->proxy_session =
g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SESSION,
- G_DBUS_PROXY_FLAGS_NONE,
+ G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START,
NULL, /* GDBusInterfaceInfo */
"org.gnome.SessionManager",
"/org/gnome/SessionManager/Presence",
@@ -578,9 +578,14 @@ gsd_updates_refresh_init (GsdUpdatesRefresh *refresh)
refresh);
status = g_dbus_proxy_get_cached_property (refresh->priv->proxy_session,
"status");
- g_variant_get (status, "u", &status_code);
- refresh->priv->session_idle = (status_code == PRESENCE_STATUS_IDLE);
- g_variant_unref (status);
+ if (status) {
+ g_variant_get (status, "u", &status_code);
+ refresh->priv->session_idle = (status_code == PRESENCE_STATUS_IDLE);
+ g_variant_unref (status);
+ }
+ else {
+ refresh->priv->session_idle = FALSE;
+ }
}
/* we check this in case we miss one of the async signals */
--
1.7.5

View File

@ -1,13 +1,13 @@
Name: gnome-settings-daemon Name: gnome-settings-daemon
Version: 3.0.1 Version: 3.1.1
Release: 5%{?dist} Release: 1%{?dist}
Summary: The daemon sharing settings from GNOME to GTK+/KDE applications Summary: The daemon sharing settings from GNOME to GTK+/KDE applications
Group: System Environment/Daemons Group: System Environment/Daemons
License: GPLv2+ License: GPLv2+
URL: http://download.gnome.org/sources/%{name} URL: http://download.gnome.org/sources/%{name}
#VCS: git:git://git.gnome.org/gnome-settings-daemon #VCS: git:git://git.gnome.org/gnome-settings-daemon
Source: http://download.gnome.org/sources/%{name}/3.0/%{name}-%{version}.tar.bz2 Source: http://download.gnome.org/sources/%{name}/3.1/%{name}-%{version}.tar.bz2
Requires(pre): GConf2 >= 2.14 Requires(pre): GConf2 >= 2.14
Requires(preun): GConf2 >= 2.14 Requires(preun): GConf2 >= 2.14
@ -18,7 +18,7 @@ Requires: system-config-printer-udev
BuildRequires: dbus-glib-devel BuildRequires: dbus-glib-devel
BuildRequires: GConf2-devel BuildRequires: GConf2-devel
BuildRequires: gtk3-devel >= 2.99.0 BuildRequires: gtk3-devel >= 2.99.3
BuildRequires: gnome-desktop3-devel BuildRequires: gnome-desktop3-devel
BuildRequires: xorg-x11-proto-devel libXxf86misc-devel BuildRequires: xorg-x11-proto-devel libXxf86misc-devel
BuildRequires: gstreamer-devel BuildRequires: gstreamer-devel
@ -30,7 +30,7 @@ BuildRequires: gettext intltool
BuildRequires: fontconfig-devel BuildRequires: fontconfig-devel
BuildRequires: libcanberra-devel BuildRequires: libcanberra-devel
BuildRequires: polkit-devel BuildRequires: polkit-devel
BuildRequires: autoconf automake libtool # BuildRequires: autoconf automake libtool
BuildRequires: libxklavier-devel BuildRequires: libxklavier-devel
BuildRequires: gsettings-desktop-schemas-devel >= 0.1.7 BuildRequires: gsettings-desktop-schemas-devel >= 0.1.7
BuildRequires: PackageKit-glib-devel BuildRequires: PackageKit-glib-devel
@ -39,9 +39,6 @@ BuildRequires: upower-devel
BuildRequires: libgudev1-devel BuildRequires: libgudev1-devel
BuildRequires: nss-devel BuildRequires: nss-devel
Patch0: 0001-datetime-Fix-setting-NTP-on-Fedora-15.patch
Patch1: 0001-updates-deal-with-absence-of-gnome-session-gracefull.patch
%description %description
A daemon to share settings from GNOME to other applications. It also A daemon to share settings from GNOME to other applications. It also
handles global keybindings, as well as a number of desktop-wide settings. handles global keybindings, as well as a number of desktop-wide settings.
@ -58,10 +55,8 @@ developing applications that use %{name}.
%prep %prep
%setup -q %setup -q
%patch0 -p1 -b .sysv
%patch1 -p1 -b .updates-crash
autoreconf -i -f # autoreconf -i -f
%build %build
# https://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking # https://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking
@ -202,6 +197,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
%{_datadir}/gnome-settings-daemon-3.0/input-device-example.sh %{_datadir}/gnome-settings-daemon-3.0/input-device-example.sh
%changelog %changelog
* Wed May 11 2011 Tomas Bzatek <tbzatek@redhat.com> - 3.1.1-1
- Update to 3.1.1
* Sat May 07 2011 Christopher Aillon <caillon@redhat.com> - 3.0.1-5 * Sat May 07 2011 Christopher Aillon <caillon@redhat.com> - 3.0.1-5
- Update gsettings schema scriptlet - Update gsettings schema scriptlet

View File

@ -1 +1 @@
6407fa30e1f36481d3fe7de50f61d535 gnome-settings-daemon-3.0.1.tar.bz2 58b33c712ae530c143434c0222efdc74 gnome-settings-daemon-3.1.1.tar.bz2