Accepting request 141508 from home:dimstar:branches:Base:System

Update to 0.108

OBS-URL: https://build.opensuse.org/request/show/141508
OBS-URL: https://build.opensuse.org/package/show/Base:System/polkit?expand=0&rev=79
This commit is contained in:
Cristian Rodríguez 2012-11-16 02:04:03 +00:00 committed by Git OBS Bridge
parent a218f1206e
commit 28f3d8eb8c
5 changed files with 54 additions and 7 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c826973db2b226dc8f807af5143f7b8be5d0270f46c0c1241a83b067db9d8311
size 1383089

3
polkit-0.108.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2877c15f56abe43609f6ece54ee0bfea169ca6d7b271b17296b14d751eab23a6
size 1389367

23
polkit-link-gmodule.patch Normal file
View File

@ -0,0 +1,23 @@
From ca1b0cd633fb14d2e152abd7b965b02ea58f66d0 Mon Sep 17 00:00:00 2001
From: David Zeuthen <zeuthen@gmail.com>
Date: Wed, 14 Nov 2012 19:29:16 +0000
Subject: Include gmodule-2.0 to avoid linker errors
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
---
diff --git a/configure.ac b/configure.ac
index ecf56f1..fefde5d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -122,7 +122,7 @@ if test "x$GCC" = "xyes"; then
changequote([,])dnl
fi
-PKG_CHECK_MODULES(GLIB, [gio-2.0 >= 2.30.0])
+PKG_CHECK_MODULES(GLIB, [gmodule-2.0 gio-2.0 >= 2.30.0])
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
--
cgit v0.9.0.2-2-gbebe

View File

@ -1,3 +1,22 @@
-------------------------------------------------------------------
Thu Nov 15 21:31:19 UTC 2012 - dimstar@opensuse.org
- Update to version 0.108:
+ PolkitAgent: Avoid crashing if initializing the server object
fails
+ Fall back to authenticating as uid 0 if the list of admin
identities is empty
+ Dynamically load libmozjs185.so and cope with it not being
available
+ docs: mention the audience for authorization rules
+ build: Fix .gir generation for parallel make
- Only conditionally Require ConsoleKit when with_systemd is 0:
systemd support obsoletes ConsoleKit.
- Add polkit-link-gmodule.patch: Link against gmodule-2.0.
- Change libpolkit0 to require polkit >= %version instead of the
exact version. This will ease upgrade problems should there ever
be a soname bump of libpolkit0.
-------------------------------------------------------------------
Wed Nov 14 09:26:14 UTC 2012 - dimstar@opensuse.org

View File

@ -25,7 +25,7 @@ Name: polkit
Summary: PolicyKit Authorization Framework
License: LGPL-2.1+
Group: System/Libraries
Version: 0.107
Version: 0.108
Release: 0
Url: http://www.freedesktop.org/wiki/Software/PolicyKit
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -37,6 +37,8 @@ Patch0: polkit-no-wheel-group.patch
Patch1: polkit-suid_flags.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)
Patch2: polkit-no-systemd.patch
# PATCH-FIX-UPSTREAM polkit-link-gmodule.patch dimstar@opensuse.org -- Link against gmodule-2.0. Patch taken from upstream git.
Patch3: polkit-link-gmodule.patch
# needed for patch1
BuildRequires: autoconf
# needed for patch1
@ -48,7 +50,7 @@ BuildRequires: gtk-doc
#!BuildIgnore: ruby
BuildRequires: intltool
BuildRequires: libexpat-devel
# needed for patch1
# needed for patch1 and patch3
BuildRequires: libtool
BuildRequires: pam-devel
%if 0%{?with_systemd}
@ -56,7 +58,9 @@ BuildRequires: systemd-devel
%endif
BuildRequires: pkgconfig(mozjs185)
PreReq: permissions pwdutils
%if ! %{with_systemd}
Requires: ConsoleKit
%endif
Requires: dbus-1
Requires: libpolkit0 = %{version}-%{release}
%if %{with_systemd}
@ -97,7 +101,7 @@ Development documentation for PolicyKit Authorization Framework.
%package -n libpolkit0
Summary: PolicyKit Authorization Framework -- Libraries
Group: System/Libraries
Requires: %{name} = %{version}
Requires: %{name} >= %{version}
%description -n libpolkit0
PolicyKit is a toolkit for defining and handling authorizations.
@ -124,10 +128,11 @@ This package provides the GObject Introspection bindings for PolicyKit.
%if !(0%{?with_systemd})
%patch2 -p1
%endif
%patch3 -p1
%build
export V=1
# needed for patch1
# needed for patch1 and patch3
autoreconf -fi
export SUID_CFLAGS="-fPIE"
export SUID_LDFLAGS="-z now -pie"