Accepting request 595145 from Base:System
- Update to version 0.114: + Port to mozjs 52, the latest version of the firefox JavaScript engine. + Add gettext support for policy files. + Fixes for various memory leaks. + Updated translations. - Update keyring with Ray Strode <halfline@gmail.com> public key. - Drop with_systemd define and all conditionals and polkit-no-systemd.patch and ConsoleKit BuildRequires, we only support systemd now. - Drop upstream fixed polkit-itstools.patch. - Rebase pkexec.patch with quilt. - Add gcc-c++ and pkgconfig(mozjs-52) BuildRequires: New dependencies. - Drop conditional pkgconfig(mozjs-17.0) and pkgconfig(mozjs185): no longer supported. - Drop autoconf and automake BuildRequires: They are implicit via libtool BuildRequires. - Replace glib2-devel and gobject-introspection-devel with their pkgconfig counterparts: pkgconfig(gio-unix-2.0), pkgconfig(gmodule-2.0) and pkgconfig(gobject-introspection-1.0). - Add polkit-jsauthority-pass-format-string.patch: jsauthority: pass "%s" format string to remaining report function, patch from upstream git, adding missed commit (bgo#105865). - Drop polkit-revert-session-magic.patch: Upstream systemd bug is since a long time fixed (gh#systemd#58) (boo#954139). (forwarded request 595009 from iznogood) OBS-URL: https://build.opensuse.org/request/show/595145 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/polkit?expand=0&rev=61
This commit is contained in:
commit
9b4d809aaa
14
pkexec.patch
14
pkexec.patch
@ -6,13 +6,13 @@ running uninstalled pkexec with --help or --version. This also helps
|
|||||||
building packages that want to check for pkexec in an emulated environment
|
building packages that want to check for pkexec in an emulated environment
|
||||||
that does not support setuid invocation (eg. QEMU linux-user).
|
that does not support setuid invocation (eg. QEMU linux-user).
|
||||||
|
|
||||||
Index: polkit-0.113/src/programs/pkexec.c
|
Index: polkit-0.114/src/programs/pkexec.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- polkit-0.113.orig/src/programs/pkexec.c
|
--- polkit-0.114.orig/src/programs/pkexec.c 2018-04-03 20:16:17.000000000 +0200
|
||||||
+++ polkit-0.113/src/programs/pkexec.c
|
+++ polkit-0.114/src/programs/pkexec.c 2018-04-10 02:48:03.031508016 +0200
|
||||||
@@ -503,27 +503,6 @@ main (int argc, char *argv[])
|
@@ -504,27 +504,6 @@ main (int argc, char *argv[])
|
||||||
opt_user = NULL;
|
/* Disable remote file access from GIO. */
|
||||||
local_agent_handle = NULL;
|
setenv ("GIO_USE_VFS", "local", 1);
|
||||||
|
|
||||||
- /* check for correct invocation */
|
- /* check for correct invocation */
|
||||||
- if (geteuid () != 0)
|
- if (geteuid () != 0)
|
||||||
@ -38,7 +38,7 @@ Index: polkit-0.113/src/programs/pkexec.c
|
|||||||
/* First process options and find the command-line to invoke. Avoid using fancy library routines
|
/* First process options and find the command-line to invoke. Avoid using fancy library routines
|
||||||
* that depend on environtment variables since we haven't cleared the environment just yet.
|
* that depend on environtment variables since we haven't cleared the environment just yet.
|
||||||
*/
|
*/
|
||||||
@@ -579,6 +558,27 @@ main (int argc, char *argv[])
|
@@ -580,6 +559,27 @@ main (int argc, char *argv[])
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:e1c095093c654951f78f8618d427faf91cf62abdefed98de40ff65eca6413c81
|
|
||||||
size 1448865
|
|
@ -1,7 +0,0 @@
|
|||||||
-----BEGIN PGP SIGNATURE-----
|
|
||||||
Version: GnuPG v2
|
|
||||||
|
|
||||||
iEYEABECAAYFAlWVdsEACgkQWjP2YLOEed/fGgCgt3FqYjfWpuaXtvIcB4BCf1+W
|
|
||||||
ImYAoIs6L6SdObfBu2IXA549n5Ky/7gN
|
|
||||||
=O1UZ
|
|
||||||
-----END PGP SIGNATURE-----
|
|
3
polkit-0.114.tar.gz
Normal file
3
polkit-0.114.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:bdf4007367d758fd794de2495975c115984d206267e52d1e6ac5ceea77e8ede6
|
||||||
|
size 1557340
|
16
polkit-0.114.tar.gz.sign
Normal file
16
polkit-0.114.tar.gz.sign
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
|
||||||
|
wsFcBAABCAAQBQJayUecCRDptRpmWCnWVQAAtzIQAD2kwEHFTiJt4TtqBm9DDS64
|
||||||
|
QNOE9+E4tTAQZlO+mwTtskQs/wojKDNpud+uhnhFWrMfmMGXVf2odz3PblhCmrsS
|
||||||
|
tYleKUlgV3aoBltelCvl9Xy0otrAZ0WygCKJpeyvzsN0FwiWhuVTLXofRnmUiCFP
|
||||||
|
jU847ldoawGw72tbH9qsFtEWRA+zbDT40ja1eO301JW5um6C+pKIs7MvNgSm4uEs
|
||||||
|
VnEGomUPmMY9I/6akcOBFrMovujWQKHP4sr99vWPsCwMy7Ju9+UvyhHPXFyh7yCq
|
||||||
|
AQePMOJxFnTT8tXlPyAxi+TO3ihokiqQhBY4wrRjguIm9MXaumasfuzN1LoHR7wy
|
||||||
|
Y73FAEjYWvf5BHChW5cqFjRYv29aNol/nyEKbF8HpKTt/FFOeUSlF3xWbMqP9xs7
|
||||||
|
tle13Ax1o22XIq05kPRM2FT6WK87IMAk/6qF669aUgbl3+36N0KFyt/NpA2M6Oiq
|
||||||
|
Z9grgYtNgOZPzFM+UJOYijaSDSFtPpwbdEJQpEPxVqsDJ6lRKbAv/SyvBgvkZM3A
|
||||||
|
IiUE4GN4c2JGAj+rHDzEjzjtNfT10qVeF31j2+5/uRGyR4dBeRUBclwSIz1zGLLS
|
||||||
|
mfFRsqGnPpOxFA79NVr41aMmjv5wXfcsKQWrBUIfbkCdhZ9Hrzd8ItMO0b6xnBZ6
|
||||||
|
348LpL6UknwI7dJA/HIv
|
||||||
|
=Yc4b
|
||||||
|
-----END PGP SIGNATURE-----
|
@ -1,55 +0,0 @@
|
|||||||
From c78819245ff8a270f97c9f800773e727918be838 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Matthias Clasen <mclasen@redhat.com>
|
|
||||||
Date: Fri, 15 Jul 2016 11:12:35 -0400
|
|
||||||
Subject: Add gettext support for .policy files
|
|
||||||
|
|
||||||
gettext can extract strings from and merge them back into xml
|
|
||||||
file formats, with the help of .its files.
|
|
||||||
|
|
||||||
https://bugs.freedesktop.org/show_bug.cgi?id=96940
|
|
||||||
|
|
||||||
diff --git a/data/Makefile.am b/data/Makefile.am
|
|
||||||
index fe0f1d5..18693fe 100644
|
|
||||||
--- a/data/Makefile.am
|
|
||||||
+++ b/data/Makefile.am
|
|
||||||
@@ -36,6 +36,11 @@ pkgconfig_DATA = polkit-gobject-1.pc polkit-agent-1.pc
|
|
||||||
|
|
||||||
# ----------------------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
+itsdir = $(datadir)/gettext/its
|
|
||||||
+its_DATA = polkit.loc polkit.its
|
|
||||||
+
|
|
||||||
+# ----------------------------------------------------------------------------------------------------
|
|
||||||
+
|
|
||||||
systemdservice_in_files = polkit.service.in
|
|
||||||
|
|
||||||
if HAVE_SYSTEMD
|
|
||||||
diff --git a/data/polkit.its b/data/polkit.its
|
|
||||||
new file mode 100644
|
|
||||||
index 0000000..1312ecb
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/data/polkit.its
|
|
||||||
@@ -0,0 +1,7 @@
|
|
||||||
+<?xml version="1.0"?>
|
|
||||||
+<its:rules xmlns:its="http://www.w3.org/2005/11/its"
|
|
||||||
+ version="2.0">
|
|
||||||
+ <its:translateRule selector="/action/description |
|
|
||||||
+ /action/message"
|
|
||||||
+ translate="yes"/>
|
|
||||||
+</its:rules>
|
|
||||||
diff --git a/data/polkit.loc b/data/polkit.loc
|
|
||||||
new file mode 100644
|
|
||||||
index 0000000..c7427ec
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/data/polkit.loc
|
|
||||||
@@ -0,0 +1,6 @@
|
|
||||||
+<?xml version="1.0"?>
|
|
||||||
+<locatingRules>
|
|
||||||
+ <locatingRule name="polkit policy" pattern="*.policy">
|
|
||||||
+ <documentRule localName="policyconfig" target="polkit.its"/>
|
|
||||||
+ </locatingRule>
|
|
||||||
+</locatingRules>
|
|
||||||
--
|
|
||||||
cgit v0.10.2
|
|
||||||
|
|
||||||
|
|
32
polkit-jsauthority-pass-format-string.patch
Normal file
32
polkit-jsauthority-pass-format-string.patch
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
From 373705b35e7f6c7dc83de5e0a3ce11ecd15d0409 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Ray Strode <rstrode@redhat.com>
|
||||||
|
Date: Tue, 3 Apr 2018 15:26:37 -0400
|
||||||
|
Subject: jsauthority: pass "%s" format string to remaining report function
|
||||||
|
|
||||||
|
commit 00adeee1b62 attempted to add a "%s" format string to the
|
||||||
|
two JS_Report invocations that needed it, but somehow only got
|
||||||
|
one them.
|
||||||
|
|
||||||
|
This commit gets the other one.
|
||||||
|
|
||||||
|
https://bugzilla.gnome.org/show_bug.cgi?id=105865
|
||||||
|
---
|
||||||
|
src/polkitbackend/polkitbackendjsauthority.cpp | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/polkitbackend/polkitbackendjsauthority.cpp b/src/polkitbackend/polkitbackendjsauthority.cpp
|
||||||
|
index 9746c47..517f3c6 100644
|
||||||
|
--- a/src/polkitbackend/polkitbackendjsauthority.cpp
|
||||||
|
+++ b/src/polkitbackend/polkitbackendjsauthority.cpp
|
||||||
|
@@ -1292,7 +1292,7 @@ js_polkit_log (JSContext *cx,
|
||||||
|
JS::CallArgs args = JS::CallArgsFromVp (argc, vp);
|
||||||
|
|
||||||
|
s = JS_EncodeString (cx, args[0].toString ());
|
||||||
|
- JS_ReportWarningUTF8 (cx, s);
|
||||||
|
+ JS_ReportWarningUTF8 (cx, "%s", s);
|
||||||
|
JS_free (cx, s);
|
||||||
|
|
||||||
|
ret = true;
|
||||||
|
--
|
||||||
|
cgit v1.1
|
||||||
|
|
@ -1,9 +0,0 @@
|
|||||||
Index: polkit-0.107/data/org.freedesktop.PolicyKit1.service.in
|
|
||||||
===================================================================
|
|
||||||
--- polkit-0.107.orig/data/org.freedesktop.PolicyKit1.service.in
|
|
||||||
+++ polkit-0.107/data/org.freedesktop.PolicyKit1.service.in
|
|
||||||
@@ -2,4 +2,3 @@
|
|
||||||
Name=org.freedesktop.PolicyKit1
|
|
||||||
Exec=@libprivdir@/polkitd --no-debug
|
|
||||||
User=root
|
|
||||||
-SystemdService=polkit.service
|
|
@ -1,66 +0,0 @@
|
|||||||
commit a29653ffa99e0809e15aa34afcd7b2df8593871c
|
|
||||||
Author: Philip Withnall <philip.withnall@collabora.co.uk>
|
|
||||||
Date: Tue Jun 2 16:19:51 2015 +0100
|
|
||||||
|
|
||||||
sessionmonitor-systemd: Use sd_uid_get_state() to check session activity
|
|
||||||
|
|
||||||
Instead of using sd_pid_get_session() then sd_session_is_active() to
|
|
||||||
determine whether the user is active, use sd_uid_get_state() directly.
|
|
||||||
This gets the maximum of the states of all the user’s sessions, rather
|
|
||||||
than the state of the session containing the subject process. Since the
|
|
||||||
user is the security boundary, this is fine.
|
|
||||||
|
|
||||||
This change is necessary for `systemd --user` sessions, where most user
|
|
||||||
code will be forked off user@.service, rather than running inside the
|
|
||||||
logind session (whether that be a foreground/active or background/online
|
|
||||||
session).
|
|
||||||
|
|
||||||
Policy-wise, the change is from checking whether the subject process is
|
|
||||||
in an active session; to checking whether the subject process is owned
|
|
||||||
by a user with at least one active session.
|
|
||||||
|
|
||||||
https://bugs.freedesktop.org/show_bug.cgi?id=76358
|
|
||||||
|
|
||||||
diff --git a/src/polkitbackend/polkitbackendsessionmonitor-systemd.c b/src/polkitbackend/polkitbackendsessionmonitor-systemd.c
|
|
||||||
index 9995f87..2a6c739 100644
|
|
||||||
--- a/src/polkitbackend/polkitbackendsessionmonitor-systemd.c
|
|
||||||
+++ b/src/polkitbackend/polkitbackendsessionmonitor-systemd.c
|
|
||||||
@@ -389,6 +389,37 @@ gboolean
|
|
||||||
polkit_backend_session_monitor_is_session_active (PolkitBackendSessionMonitor *monitor,
|
|
||||||
PolkitSubject *session)
|
|
||||||
{
|
|
||||||
- return sd_session_is_active (polkit_unix_session_get_session_id (POLKIT_UNIX_SESSION (session)));
|
|
||||||
+ const char *session_id;
|
|
||||||
+ char *state;
|
|
||||||
+ uid_t uid;
|
|
||||||
+ gboolean is_active = FALSE;
|
|
||||||
+
|
|
||||||
+ session_id = polkit_unix_session_get_session_id (POLKIT_UNIX_SESSION (session));
|
|
||||||
+
|
|
||||||
+ g_debug ("Checking whether session %s is active.", session_id);
|
|
||||||
+
|
|
||||||
+ /* Check whether *any* of the user's current sessions are active. */
|
|
||||||
+ if (sd_session_get_uid (session_id, &uid) < 0)
|
|
||||||
+ goto fallback;
|
|
||||||
+
|
|
||||||
+ g_debug ("Session %s has UID %u.", session_id, uid);
|
|
||||||
+
|
|
||||||
+ if (sd_uid_get_state (uid, &state) < 0)
|
|
||||||
+ goto fallback;
|
|
||||||
+
|
|
||||||
+ g_debug ("UID %u has state %s.", uid, state);
|
|
||||||
+
|
|
||||||
+ is_active = (g_strcmp0 (state, "active") == 0);
|
|
||||||
+ free (state);
|
|
||||||
+
|
|
||||||
+ return is_active;
|
|
||||||
+
|
|
||||||
+fallback:
|
|
||||||
+ /* Fall back to checking the session. This is not ideal, since the user
|
|
||||||
+ * might have multiple sessions, and we cannot guarantee to have chosen
|
|
||||||
+ * the active one.
|
|
||||||
+ *
|
|
||||||
+ * See: https://bugs.freedesktop.org/show_bug.cgi?id=76358. */
|
|
||||||
+ return sd_session_is_active (session_id);
|
|
||||||
}
|
|
||||||
|
|
@ -1,3 +1,33 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 9 22:38:39 UTC 2018 - bjorn.lie@gmail.com
|
||||||
|
|
||||||
|
- Update to version 0.114:
|
||||||
|
+ Port to mozjs 52, the latest version of the firefox JavaScript
|
||||||
|
engine.
|
||||||
|
+ Add gettext support for policy files.
|
||||||
|
+ Fixes for various memory leaks.
|
||||||
|
+ Updated translations.
|
||||||
|
- Update keyring with Ray Strode <halfline@gmail.com> public key.
|
||||||
|
- Drop with_systemd define and all conditionals and
|
||||||
|
polkit-no-systemd.patch and ConsoleKit BuildRequires, we only
|
||||||
|
support systemd now.
|
||||||
|
- Drop upstream fixed polkit-itstools.patch.
|
||||||
|
- Rebase pkexec.patch with quilt.
|
||||||
|
- Add gcc-c++ and pkgconfig(mozjs-52) BuildRequires: New
|
||||||
|
dependencies.
|
||||||
|
- Drop conditional pkgconfig(mozjs-17.0) and pkgconfig(mozjs185):
|
||||||
|
no longer supported.
|
||||||
|
- Drop autoconf and automake BuildRequires: They are implicit via
|
||||||
|
libtool BuildRequires.
|
||||||
|
- Replace glib2-devel and gobject-introspection-devel with their
|
||||||
|
pkgconfig counterparts: pkgconfig(gio-unix-2.0),
|
||||||
|
pkgconfig(gmodule-2.0) and pkgconfig(gobject-introspection-1.0).
|
||||||
|
- Add polkit-jsauthority-pass-format-string.patch: jsauthority:
|
||||||
|
pass "%s" format string to remaining report function, patch from
|
||||||
|
upstream git, adding missed commit (bgo#105865).
|
||||||
|
- Drop polkit-revert-session-magic.patch: Upstream systemd bug is
|
||||||
|
since a long time fixed (gh#systemd#58) (boo#954139).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Mar 1 11:23:00 UTC 2018 - schwab@suse.de
|
Thu Mar 1 11:23:00 UTC 2018 - schwab@suse.de
|
||||||
|
|
||||||
|
@ -561,3 +561,66 @@ PylvwgAKCRBaM/Zgs4R53zhKAJ9cBXfmpHbPwdfBEHHuB+l0KoLSrwCglkFmrFAK
|
|||||||
QhjSwn7gMC27Yl+lK30=
|
QhjSwn7gMC27Yl+lK30=
|
||||||
=Tq/o
|
=Tq/o
|
||||||
-----END PGP PUBLIC KEY BLOCK-----
|
-----END PGP PUBLIC KEY BLOCK-----
|
||||||
|
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||||
|
|
||||||
|
mQINBFnWPoIBEAC6d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wjwqer+npV6FuOLjRsnMd7h9EgiGYGqH385w0
|
||||||
|
=DnDa
|
||||||
|
-----END PGP PUBLIC KEY BLOCK-----
|
||||||
|
69
polkit.spec
69
polkit.spec
@ -16,9 +16,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define with_systemd 1
|
|
||||||
Name: polkit
|
Name: polkit
|
||||||
Version: 0.113
|
Version: 0.114
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: PolicyKit Authorization Framework
|
Summary: PolicyKit Authorization Framework
|
||||||
License: LGPL-2.1-or-later
|
License: LGPL-2.1-or-later
|
||||||
@ -28,30 +27,30 @@ Source0: http://www.freedesktop.org/software/polkit/releases/%{name}-%{ve
|
|||||||
Source1: http://www.freedesktop.org/software/polkit/releases/%{name}-%{version}.tar.gz.sign
|
Source1: http://www.freedesktop.org/software/polkit/releases/%{name}-%{version}.tar.gz.sign
|
||||||
Source2: %{name}.keyring
|
Source2: %{name}.keyring
|
||||||
Source99: baselibs.conf
|
Source99: baselibs.conf
|
||||||
|
|
||||||
# PATCH-FIX-OPENSUSE polkit-no-wheel-group.patch vuntz@opensuse.org -- In openSUSE, there's no special meaning for the wheel group, so we shouldn't allow it to be admin
|
# PATCH-FIX-OPENSUSE polkit-no-wheel-group.patch vuntz@opensuse.org -- In openSUSE, there's no special meaning for the wheel group, so we shouldn't allow it to be admin
|
||||||
Patch0: polkit-no-wheel-group.patch
|
Patch0: polkit-no-wheel-group.patch
|
||||||
# PATCH-FIX-UPSTREAM polkit-no-systemd.patch bnc#782395 fdo#55377 vuntz@opensuse.org -- Do not reference non-existing polkit.service file for systemd (only applied if not built with systemd support)
|
|
||||||
Patch1: polkit-no-systemd.patch
|
|
||||||
# PATCH-REVERT-UPSTREAM polkit-revert-session-magic.patch various bugs meissner -- systemd session magic was not updating the user seats correctly
|
|
||||||
Patch2: polkit-revert-session-magic.patch
|
|
||||||
# PATCH-FIX-OPENSUSE polkit-gettext.patch lnussel@suse.de -- allow fallback to gettext for polkit action translations
|
# PATCH-FIX-OPENSUSE polkit-gettext.patch lnussel@suse.de -- allow fallback to gettext for polkit action translations
|
||||||
Patch3: polkit-gettext.patch
|
Patch1: polkit-gettext.patch
|
||||||
# PATCH-FEATURE-UPSTREAM polkit-itstools.patch dimstar@opensuse.org -- Add gettext support for .policy files, taken from git
|
|
||||||
Patch4: polkit-itstools.patch
|
|
||||||
# PATCH-FIX-UPSTREAM pkexec.patch schwab@suse.de -- pkexec: allow --version and --help even if not setuid
|
# PATCH-FIX-UPSTREAM pkexec.patch schwab@suse.de -- pkexec: allow --version and --help even if not setuid
|
||||||
Patch5: pkexec.patch
|
Patch2: pkexec.patch
|
||||||
# needed for patch1
|
# PATCH-FIX-UPSTREAM polkit-jsauthority-pass-format-string.patch bgo#105865 bjorn.lie@gmail.com -- jsauthority: pass "%s" format string to remaining report function
|
||||||
BuildRequires: autoconf
|
Patch3: polkit-jsauthority-pass-format-string.patch
|
||||||
# needed for patch1
|
|
||||||
BuildRequires: automake
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: glib2-devel >= 2.30.0
|
|
||||||
BuildRequires: gobject-introspection-devel >= 0.6.2
|
|
||||||
BuildRequires: gtk-doc
|
BuildRequires: gtk-doc
|
||||||
BuildRequires: intltool
|
BuildRequires: intltool
|
||||||
BuildRequires: libexpat-devel
|
BuildRequires: libexpat-devel
|
||||||
# needed for patch1, patch3 and patch4
|
# needed for patch1 and 2
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: pam-devel
|
BuildRequires: pam-devel
|
||||||
|
BuildRequires: systemd-rpm-macros
|
||||||
|
BuildRequires: pkgconfig(gio-unix-2.0) >= 2.30.0
|
||||||
|
BuildRequires: pkgconfig(gmodule-2.0) >= 2.30.0
|
||||||
|
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 0.6.2
|
||||||
|
BuildRequires: pkgconfig(libsystemd)
|
||||||
|
BuildRequires: pkgconfig(mozjs-52)
|
||||||
|
BuildRequires: pkgconfig(systemd)
|
||||||
# gtk-doc drags indirectyly ruby in for one of the helpers. This in turn causes a build cycle.
|
# gtk-doc drags indirectyly ruby in for one of the helpers. This in turn causes a build cycle.
|
||||||
#!BuildIgnore: ruby
|
#!BuildIgnore: ruby
|
||||||
Requires: dbus-1
|
Requires: dbus-1
|
||||||
@ -59,22 +58,8 @@ Requires: libpolkit0 = %{version}-%{release}
|
|||||||
# FIXME: use proper Requires(pre/post/preun/...)
|
# FIXME: use proper Requires(pre/post/preun/...)
|
||||||
PreReq: permissions
|
PreReq: permissions
|
||||||
PreReq: pwdutils
|
PreReq: pwdutils
|
||||||
%if 0%{?with_systemd}
|
|
||||||
BuildRequires: systemd-rpm-macros
|
|
||||||
BuildRequires: pkgconfig(libsystemd)
|
|
||||||
BuildRequires: pkgconfig(systemd)
|
|
||||||
%endif
|
|
||||||
%if 0%{?suse_version} >= 1310
|
|
||||||
BuildRequires: pkgconfig(mozjs-17.0)
|
|
||||||
%else
|
|
||||||
BuildRequires: pkgconfig(mozjs185)
|
|
||||||
%endif
|
|
||||||
%if ! %{with_systemd}
|
|
||||||
Requires: ConsoleKit
|
|
||||||
%endif
|
|
||||||
%if %{with_systemd}
|
|
||||||
%systemd_requires
|
%systemd_requires
|
||||||
%endif
|
|
||||||
# Upstream First - Policy:
|
# Upstream First - Policy:
|
||||||
# Never add any patches to this package without the upstream commit id
|
# Never add any patches to this package without the upstream commit id
|
||||||
# in the patch. Any patches added here without a very good reason to make
|
# in the patch. Any patches added here without a very good reason to make
|
||||||
@ -132,17 +117,13 @@ This package provides the GObject Introspection bindings for PolicyKit.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%if !(0%{?with_systemd})
|
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%endif
|
%patch2 -p1
|
||||||
%patch2 -p1 -R
|
|
||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
%patch4 -p1
|
|
||||||
%patch5 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export V=1
|
export V=1
|
||||||
# needed for patch1
|
# needed for patch1 and patch2
|
||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
export SUID_CFLAGS="-fPIE"
|
export SUID_CFLAGS="-fPIE"
|
||||||
export SUID_LDFLAGS="-z now -pie"
|
export SUID_LDFLAGS="-z now -pie"
|
||||||
@ -153,11 +134,7 @@ export SUID_LDFLAGS="-z now -pie"
|
|||||||
--disable-static \
|
--disable-static \
|
||||||
--enable-introspection \
|
--enable-introspection \
|
||||||
--enable-examples \
|
--enable-examples \
|
||||||
%if 0%{?with_systemd}
|
|
||||||
--enable-libsystemd-login \
|
--enable-libsystemd-login \
|
||||||
%else
|
|
||||||
--disable-libsystemd-login \
|
|
||||||
%endif
|
|
||||||
--libexecdir=%{_libexecdir}/polkit-1
|
--libexecdir=%{_libexecdir}/polkit-1
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
@ -171,25 +148,19 @@ install -d %{buildroot}%{_localstatedir}/lib/polkit
|
|||||||
%pre
|
%pre
|
||||||
getent group polkitd > /dev/null || groupadd -r polkitd
|
getent group polkitd > /dev/null || groupadd -r polkitd
|
||||||
getent passwd polkitd > /dev/null || useradd -r -g polkitd -d %{_localstatedir}/lib/polkit -s /sbin/nologin -c "User for polkitd" polkitd
|
getent passwd polkitd > /dev/null || useradd -r -g polkitd -d %{_localstatedir}/lib/polkit -s /sbin/nologin -c "User for polkitd" polkitd
|
||||||
%if %{with_systemd}
|
|
||||||
%service_add_pre polkit.service
|
%service_add_pre polkit.service
|
||||||
%endif
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%if %{with_systemd}
|
|
||||||
%preun
|
%preun
|
||||||
%service_del_preun polkit.service
|
%service_del_preun polkit.service
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%service_del_postun polkit.service
|
%service_del_postun polkit.service
|
||||||
%endif
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%set_permissions %{_bindir}/pkexec
|
%set_permissions %{_bindir}/pkexec
|
||||||
%set_permissions %{_prefix}/lib/polkit-1/polkit-agent-helper-1
|
%set_permissions %{_prefix}/lib/polkit-1/polkit-agent-helper-1
|
||||||
%if %{with_systemd}
|
|
||||||
%service_add_post polkit.service
|
%service_add_post polkit.service
|
||||||
%endif
|
|
||||||
|
|
||||||
%verifyscript
|
%verifyscript
|
||||||
%verify_permissions -e %{_bindir}/pkexec
|
%verify_permissions -e %{_bindir}/pkexec
|
||||||
@ -238,9 +209,7 @@ exit 0
|
|||||||
%verify(not mode) %attr(4755,root,root) %{_prefix}/lib/polkit-1/polkit-agent-helper-1
|
%verify(not mode) %attr(4755,root,root) %{_prefix}/lib/polkit-1/polkit-agent-helper-1
|
||||||
# $HOME for polkit user
|
# $HOME for polkit user
|
||||||
%dir %{_localstatedir}/lib/polkit
|
%dir %{_localstatedir}/lib/polkit
|
||||||
%if %{with_systemd}
|
|
||||||
%{_unitdir}/polkit.service
|
%{_unitdir}/polkit.service
|
||||||
%endif
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_libdir}/libpolkit-agent-1.so
|
%{_libdir}/libpolkit-agent-1.so
|
||||||
|
Loading…
x
Reference in New Issue
Block a user