[arch-commits] Commit in libsecret/trunk (2 files)

Jan Steffens heftig at archlinux.org
Thu Sep 5 16:47:13 UTC 2019


    Date: Thursday, September 5, 2019 @ 16:47:12
  Author: heftig
Revision: 361949

0.19.0-2: Fix FS#63666

Added:
  libsecret/trunk/0001-service-Fix-secret_service_ensure_session_finish-err.patch
Modified:
  libsecret/trunk/PKGBUILD

-----------------------------------------------------------------+
 0001-service-Fix-secret_service_ensure_session_finish-err.patch |   41 ++++++++++
 PKGBUILD                                                        |   11 +-
 2 files changed, 49 insertions(+), 3 deletions(-)

Added: 0001-service-Fix-secret_service_ensure_session_finish-err.patch
===================================================================
--- 0001-service-Fix-secret_service_ensure_session_finish-err.patch	                        (rev 0)
+++ 0001-service-Fix-secret_service_ensure_session_finish-err.patch	2019-09-05 16:47:12 UTC (rev 361949)
@@ -0,0 +1,41 @@
+From aae0329ba3eb260e8094388b49e14b8cf42ea91e Mon Sep 17 00:00:00 2001
+From: "Jan Alexander Steffens (heftig)" <jan.steffens at gmail.com>
+Date: Thu, 5 Sep 2019 18:38:01 +0200
+Subject: [PATCH] service: Fix secret_service_ensure_session_finish error
+ propagation
+
+The condition checking g_task_is_valid was inverted, resulting in errors
+being ignored.
+
+Move the check to a g_return_val_if_fail to be in line with all other
+uses of g_task_is_valid.
+
+Fixes https://bugs.archlinux.org/task/63666
+---
+ libsecret/secret-service.c | 9 ++++-----
+ 1 file changed, 4 insertions(+), 5 deletions(-)
+
+diff --git a/libsecret/secret-service.c b/libsecret/secret-service.c
+index 6c89bb8..6dea0d1 100644
+--- a/libsecret/secret-service.c
++++ b/libsecret/secret-service.c
+@@ -1321,12 +1321,11 @@ secret_service_ensure_session_finish (SecretService *self,
+ {
+ 	g_return_val_if_fail (SECRET_IS_SERVICE (self), FALSE);
+ 	g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
++	g_return_val_if_fail (g_task_is_valid (result, self), FALSE);
+ 
+-	if (!g_task_is_valid (result, self)) {
+-		if (!g_task_propagate_boolean (G_TASK (result), error)) {
+-			_secret_util_strip_remote_error (error);
+-			return FALSE;
+-		}
++	if (!g_task_propagate_boolean (G_TASK (result), error)) {
++		_secret_util_strip_remote_error (error);
++		return FALSE;
+ 	}
+ 
+ 	g_return_val_if_fail (self->pv->session != NULL, FALSE);
+-- 
+2.23.0
+

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-05 14:25:32 UTC (rev 361948)
+++ PKGBUILD	2019-09-05 16:47:12 UTC (rev 361949)
@@ -2,7 +2,7 @@
 
 pkgname=libsecret
 pkgver=0.19.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Library for storing and retrieving passwords and other secrets"
 url="https://wiki.gnome.org/Projects/Libsecret"
 arch=(x86_64)
@@ -12,8 +12,10 @@
 makedepends=(docbook-xsl gobject-introspection vala git gtk-doc meson valgrind)
 optdepends=('gnome-keyring: key storage service, or use any other service implementing org.freedesktop.secrets')
 _commit=be541cf9d4a81b97f55794a5b1de50f92aac1fbb  # tags/0.19.0^0
-source=("git+https://gitlab.gnome.org/GNOME/libsecret.git#commit=$_commit")
-sha256sums=('SKIP')
+source=("git+https://gitlab.gnome.org/GNOME/libsecret.git#commit=$_commit"
+        0001-service-Fix-secret_service_ensure_session_finish-err.patch)
+sha256sums=('SKIP'
+            '94de310cf02d67ad8447bebf8f55bf2e1c6d864e13fb16442b2eb09ee0b93acb')
 
 pkgver() {
   cd $pkgname
@@ -22,6 +24,9 @@
 
 prepare() {
   cd $pkgname
+
+  # https://bugs.archlinux.org/task/63666
+  git apply -3 ../0001-service-Fix-secret_service_ensure_session_finish-err.patch
 }
 
 build() {


More information about the arch-commits mailing list