Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/polkit/, sys-auth/polkit/files/
Date: Tue, 27 Jun 2017 12:04:31
Message-Id: 1498565059.487ef5103ed45a49310282d483c41f0dcf6638e2.kensington@gentoo
1 commit: 487ef5103ed45a49310282d483c41f0dcf6638e2
2 Author: Sven Eden <yamakuzure <AT> gmx <DOT> net>
3 AuthorDate: Tue Jun 27 12:03:40 2017 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 27 12:04:19 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=487ef510
7
8 sys-auth/polkit: improve elogind patch
9
10 Gentoo-bug: 622800
11 Package-Manager: Portage-2.3.6, Repoman-2.3.2
12
13 sys-auth/polkit/files/polkit-0.113-elogind.patch | 22 ++++++++++++++++++++--
14 ...lkit-0.113-r2.ebuild => polkit-0.113-r3.ebuild} | 0
15 2 files changed, 20 insertions(+), 2 deletions(-)
16
17 diff --git a/sys-auth/polkit/files/polkit-0.113-elogind.patch b/sys-auth/polkit/files/polkit-0.113-elogind.patch
18 index fb142c65ce6..c822e00d24a 100644
19 --- a/sys-auth/polkit/files/polkit-0.113-elogind.patch
20 +++ b/sys-auth/polkit/files/polkit-0.113-elogind.patch
21 @@ -117,8 +117,8 @@
22 $(NULL)
23
24 libpolkit_gobject_1_la_LDFLAGS = -export-symbols-regex '(^polkit_.*)'
25 ---- a/src/polkitbackend/polkitbackendjsauthority.c 2016-11-04 04:44:29.650112018 +0100
26 -+++ b/src/polkitbackend/polkitbackendjsauthority.c 2016-11-04 04:44:58.283111505 +0100
27 +--- a/src/polkitbackend/polkitbackendjsauthority.c 2017-06-27 09:22:03.375841040 +0200
28 ++++ b/src/polkitbackend/polkitbackendjsauthority.c 2017-06-27 09:25:33.815845141 +0200
29 @@ -39,6 +39,10 @@
30 #include <systemd/sd-login.h>
31 #endif /* HAVE_LIBSYSTEMD */
32 @@ -130,6 +130,24 @@
33 #include <jsapi.h>
34
35 #include "initjs.h" /* init.js */
36 +@@ -793,7 +797,7 @@
37 + g_assert_not_reached ();
38 + }
39 +
40 +-#ifdef HAVE_LIBSYSTEMD
41 ++#if defined(HAVE_LIBSYSTEMD) || defined(HAVE_LIBELOGIND)
42 + if (sd_pid_get_session (pid, &session_str) == 0)
43 + {
44 + if (sd_session_get_seat (session_str, &seat_str) == 0)
45 +@@ -801,7 +805,7 @@
46 + /* do nothing */
47 + }
48 + }
49 +-#endif /* HAVE_LIBSYSTEMD */
50 ++#endif /* HAVE_LIBSYSTEMD or HAVE_LIBELOGIND */
51 +
52 + g_assert (POLKIT_IS_UNIX_USER (user_for_subject));
53 + uid = polkit_unix_user_get_uid (POLKIT_UNIX_USER (user_for_subject));
54 --- a/src/polkitbackend/polkitbackendsessionmonitor-systemd.c 2016-11-04 04:44:29.650112018 +0100
55 +++ b/src/polkitbackend/polkitbackendsessionmonitor-systemd.c 2016-11-04 04:46:52.718109455 +0100
56 @@ -25,7 +25,11 @@
57
58 diff --git a/sys-auth/polkit/polkit-0.113-r2.ebuild b/sys-auth/polkit/polkit-0.113-r3.ebuild
59 similarity index 100%
60 rename from sys-auth/polkit/polkit-0.113-r2.ebuild
61 rename to sys-auth/polkit/polkit-0.113-r3.ebuild