Update to 3.7.2

This commit is contained in:
Tomas Bzatek 2012-11-23 18:06:58 +01:00
parent ee9cd154af
commit c6abd49b20
2 changed files with 4 additions and 72 deletions

View File

@ -1,62 +0,0 @@
From 370694b36f1ed6f26554ccc740da3b3e92aafded Mon Sep 17 00:00:00 2001
From: Rex Dieter <rdieter@fedoraproject.org>
Date: Fri, 17 Aug 2012 08:52:25 -0500
Subject: [PATCH] only print debug message if no pkcs11 socket
This is to handle the case of running gnome-keyring in environments
not matching GNOME;Unity and avoid needless
WARNING: couldn't connect to: /tmp/keyring-SqfLpI/pkcs11
type errors
https://bugzilla.gnome.org/show_bug.cgi?id=665961
---
pkcs11/rpc-layer/gkm-rpc-module.c | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/pkcs11/rpc-layer/gkm-rpc-module.c b/pkcs11/rpc-layer/gkm-rpc-module.c
index 240fd83..1b11d96 100644
--- a/pkcs11/rpc-layer/gkm-rpc-module.c
+++ b/pkcs11/rpc-layer/gkm-rpc-module.c
@@ -251,8 +251,13 @@ call_connect (CallState *cs)
if (connect (sock, (struct sockaddr*) &addr, sizeof (addr)) < 0) {
close (sock);
- warning (("couldn't connect to: %s: %s", pkcs11_socket_path, strerror (errno)));
- return CKR_DEVICE_ERROR;
+ if (errno == ENOENT) {
+ debug (("couldn't connect to: %s: %s", pkcs11_socket_path, strerror (errno)));
+ return CKR_DEVICE_REMOVED;
+ } else {
+ warning (("couldn't connect to: %s: %s", pkcs11_socket_path, strerror (errno)));
+ return CKR_DEVICE_ERROR;
+ }
}
if (egg_unix_credentials_write (sock) < 0) {
@@ -1208,6 +1213,10 @@ rpc_C_Initialize (CK_VOID_PTR init_args)
if (ret == CKR_OK)
ret = call_run (cs);
call_done (cs, ret);
+
+ /* No daemon available */
+ } else if (ret == CKR_DEVICE_REMOVED) {
+ ret = CKR_OK;
}
}
@@ -1248,8 +1257,13 @@ rpc_C_Finalize (CK_VOID_PTR reserved)
if (ret == CKR_OK)
ret = call_run (cs);
call_done (cs, ret);
+
+ /* No daemon available */
+ } else if (ret == CKR_DEVICE_REMOVED) {
+ ret = CKR_OK;
}
+
if (ret != CKR_OK)
warning (("finalizing the daemon returned an error: %d", ret));
}
--
1.7.12.1

View File

@ -6,7 +6,7 @@
Summary: Framework for managing passwords and other secrets
Name: gnome-keyring
Version: 3.7.1
Version: 3.7.2
Release: 1%{?dist}
License: GPLv2+ and LGPLv2+
Group: System Environment/Libraries
@ -14,11 +14,6 @@ Group: System Environment/Libraries
Source: http://download.gnome.org/sources/gnome-keyring/3.7/gnome-keyring-%{version}.tar.xz
URL: http://www.gnome.org
## upstream patches
# https://bugzilla.redhat.com/show_bug.cgi?id=783568
# https://bugzilla.gnome.org/show_bug.cgi?id=665961
Patch100: gnome-keyring-3.6.1-pkcs11_socket_nodebug_spam.patch
BuildRequires: glib2-devel >= %{glib2_version}
BuildRequires: gcr-devel >= %{gcr_version}
BuildRequires: dbus-devel >= %{dbus_version}
@ -60,8 +55,6 @@ automatically unlock the "login" keyring when the user logs in.
%prep
%setup -q -n gnome-keyring-%{version}
%patch100 -p1 -b .pkcs11_socket_nodebug_spam
%build
%configure \
--with-pam-dir=/%{_lib}/security \
@ -83,11 +76,9 @@ rm $RPM_BUILD_ROOT%{_libdir}/gnome-keyring/devel/*.la
%post
/sbin/ldconfig
update-mime-database %{_datadir}/mime &> /dev/null || :
%postun
/sbin/ldconfig
update-mime-database %{_datadir}/mime &> /dev/null || :
if [ $1 -eq 0 ]; then
glib-compile-schemas %{_datadir}/glib-2.0/schemas >&/dev/null || :
fi
@ -119,6 +110,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas >&/dev/null || :
%changelog
* Fri Nov 23 2012 Tomas Bzatek <tbzatek@redhat.com> - 3.7.2-1
- Update to 3.7.2
* Fri Nov 09 2012 Kalev Lember <kalevlember@gmail.com> - 3.7.1-1
- Update to 3.7.1