Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Sep 2021 17:32:11 GMT
From:      "Tobias C. Berner" <tcberner@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: fa6b589dc7cf - main - sysutils/accountsservice: unbreak update to 0.6.55
Message-ID:  <202109241732.18OHWBqD009312@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by tcberner:

URL: https://cgit.FreeBSD.org/ports/commit/?id=fa6b589dc7cf40675fad8764fd86788107e085e7

commit fa6b589dc7cf40675fad8764fd86788107e085e7
Author:     Tobias C. Berner <tcberner@FreeBSD.org>
AuthorDate: 2021-09-24 17:21:33 +0000
Commit:     Tobias C. Berner <tcberner@FreeBSD.org>
CommitDate: 2021-09-24 17:30:35 +0000

    sysutils/accountsservice: unbreak update to 0.6.55
    
    In ffb1311e56725702208e807cfc63c8163c6b4a52 the port was updated to
    0.6.55, which unfortunately broke some functionality in gdm.
    
    Add the patch from OpenBSD to fix this.
    
    Reported by:    rm
    Obtained from:  https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/ports/sysutils/accountsservice/patches/patch-src_libaccountsservice_act-user-manager_c
    PR:             249445
---
 sysutils/accountsservice/Makefile                  |  1 +
 ...patch-src_libaccountsservice_act-user-manager.c | 24 ++++++++++++++++++++++
 2 files changed, 25 insertions(+)

diff --git a/sysutils/accountsservice/Makefile b/sysutils/accountsservice/Makefile
index f01b3a207c5a..2db63164d817 100644
--- a/sysutils/accountsservice/Makefile
+++ b/sysutils/accountsservice/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	accountsservice
 PORTVERSION=	0.6.55
+PORTREVISION=	1
 CATEGORIES=	sysutils devel
 MASTER_SITES=	http://www.freedesktop.org/software/${PORTNAME}/
 
diff --git a/sysutils/accountsservice/files/patch-src_libaccountsservice_act-user-manager.c b/sysutils/accountsservice/files/patch-src_libaccountsservice_act-user-manager.c
new file mode 100644
index 000000000000..9026883f2cc6
--- /dev/null
+++ b/sysutils/accountsservice/files/patch-src_libaccountsservice_act-user-manager.c
@@ -0,0 +1,24 @@
+Obtained from:
+	https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/ports/sysutils/accountsservice/patches/patch-src_libaccountsservice_act-user-manager_c
+
+$OpenBSD: patch-src_libaccountsservice_act-user-manager_c,v 1.2 2021/08/30 19:15:24 ajacoutot Exp $
+
+REVERT: (breaks listing users in gdm and gnome-cc and unlocking screenshield)
+From c7fa612023a163e8b2352e1170c6df3fceb19b27 Mon Sep 17 00:00:00 2001
+From: Ray Strode <rstrode@redhat.com>
+Date: Thu, 19 Jul 2018 13:14:09 -0400
+Subject: [PATCH] lib: don't set loaded state until seat is fetched
+
+Index: src/libaccountsservice/act-user-manager.c
+--- src/libaccountsservice/act-user-manager.c.orig
++++ src/libaccountsservice/act-user-manager.c
+@@ -2547,7 +2547,7 @@ maybe_set_is_loaded (ActUserManager *manager)
+         /* Don't set is_loaded yet unless the seat is already loaded enough
+          * or failed to load.
+          */
+-        if (priv->seat.state > ACT_USER_MANAGER_SEAT_STATE_GET_ID) {
++        if (priv->seat.state >= ACT_USER_MANAGER_SEAT_STATE_GET_ID) {
+                 g_debug ("ActUserManager: Seat loaded, so now setting loaded property");
+         } else if (priv->seat.state == ACT_USER_MANAGER_SEAT_STATE_UNLOADED) {
+                 g_debug ("ActUserManager: Seat wouldn't load, so giving up on it and setting loaded property");
+



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109241732.18OHWBqD009312>