![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community, here is the log from the commit of package PolicyKit for openSUSE:Factory checked in at Thu Oct 14 12:53:35 CEST 2010. -------- --- PolicyKit/PolicyKit-doc.changes 2010-10-08 01:09:26.000000000 +0200 +++ PolicyKit/PolicyKit-doc.changes 2010-10-14 12:52:09.157935000 +0200 @@ -1,0 +2,10 @@ +Tue Oct 12 14:27:48 UTC 2010 - lnussel@suse.de + +- fix memory leaks (bnc#597346, bnc#644966) + +------------------------------------------------------------------- +Mon Oct 11 18:23:20 UTC 2010 - cristian.rodriguez@opensuse.org + +- Fix package dependencies + +------------------------------------------------------------------- PolicyKit.changes: same change calling whatdependson for head-i586 New: ---- PolicyKit-0.9-NULLwarning.diff PolicyKit-0.9-fix-memory-leaks.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ PolicyKit-doc.spec ++++++ --- /var/tmp/diff_new_pack.dqsICW/_old 2010-10-14 12:52:14.000000000 +0200 +++ /var/tmp/diff_new_pack.dqsICW/_new 2010-10-14 12:52:14.000000000 +0200 @@ -40,7 +40,7 @@ License: MIT License (or similar) Group: System/Libraries Version: 0.9 -Release: 24 +Release: 25 AutoReqProv: on Summary: Authorization Toolkit BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -48,6 +48,7 @@ Requires: PolicyKit = %{version} %else Requires: ConsoleKit +Requires: dbus-1 Recommends: PolicyKit-doc %endif Source: PolicyKit-%{version}.tar.bz2 @@ -60,6 +61,8 @@ Patch4: PolicyKit-0.9-allow-root-to-obtain-privileges.diff Patch5: PolicyKit-0.9-dbuspolicy.diff Patch6: PolicyKit-0.9-polkit_context_is_caller_authorized.diff +Patch7: PolicyKit-0.9-fix-memory-leaks.diff +Patch8: PolicyKit-0.9-NULLwarning.diff %description PolicyKit is a toolkit for defining and handling authorizations. It is @@ -104,9 +107,13 @@ %patch4 -p1 %patch5 -p1 %patch6 -p1 +%patch7 -p1 +%patch8 -p1 %build %configure \ + --disable-static \ + --with-pic \ --libexecdir=%{_prefix}/lib/PolicyKit \ %if %build_doc --docdir=%{_datadir}/doc/packages/PolicyKit \ @@ -130,7 +137,6 @@ install -m 644 {README,AUTHORS,ChangeLog,COPYING,NEWS} $RPM_BUILD_ROOT/%{_datadir}/doc/packages/PolicyKit %endif rm -f $RPM_BUILD_ROOT%{_libdir}/*.la -rm -f $RPM_BUILD_ROOT%{_libdir}/*.a %fdupes -s $RPM_BUILD_ROOT %if %build_doc rm -rf $RPM_BUILD_ROOT/%{_bindir} ++++++ PolicyKit.spec ++++++ --- /var/tmp/diff_new_pack.dqsICW/_old 2010-10-14 12:52:14.000000000 +0200 +++ /var/tmp/diff_new_pack.dqsICW/_new 2010-10-14 12:52:14.000000000 +0200 @@ -40,7 +40,7 @@ License: MIT License (or similar) Group: System/Libraries Version: 0.9 -Release: 24 +Release: 25 AutoReqProv: on Summary: Authorization Toolkit BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -48,6 +48,7 @@ Requires: PolicyKit = %{version} %else Requires: ConsoleKit +Requires: dbus-1 Recommends: PolicyKit-doc %endif Source: PolicyKit-%{version}.tar.bz2 @@ -60,6 +61,8 @@ Patch4: PolicyKit-0.9-allow-root-to-obtain-privileges.diff Patch5: PolicyKit-0.9-dbuspolicy.diff Patch6: PolicyKit-0.9-polkit_context_is_caller_authorized.diff +Patch7: PolicyKit-0.9-fix-memory-leaks.diff +Patch8: PolicyKit-0.9-NULLwarning.diff %description PolicyKit is a toolkit for defining and handling authorizations. It is @@ -104,9 +107,13 @@ %patch4 -p1 %patch5 -p1 %patch6 -p1 +%patch7 -p1 +%patch8 -p1 %build %configure \ + --disable-static \ + --with-pic \ --libexecdir=%{_prefix}/lib/PolicyKit \ %if %build_doc --docdir=%{_datadir}/doc/packages/PolicyKit \ @@ -130,7 +137,6 @@ install -m 644 {README,AUTHORS,ChangeLog,COPYING,NEWS} $RPM_BUILD_ROOT/%{_datadir}/doc/packages/PolicyKit %endif rm -f $RPM_BUILD_ROOT%{_libdir}/*.la -rm -f $RPM_BUILD_ROOT%{_libdir}/*.a %fdupes -s $RPM_BUILD_ROOT %if %build_doc rm -rf $RPM_BUILD_ROOT/%{_bindir} ++++++ PolicyKit-0.9-NULLwarning.diff ++++++
From 213a0239a31f28c9d4341e1bcd400268de6047fb Mon Sep 17 00:00:00 2001 From: Ludwig Nussel
Date: Mon, 11 Oct 2010 08:50:17 +0200 Subject: [PATCH] avoid warning due to calling *_unref on NULL (bnc#644966)
---
src/polkit/polkit-context.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/polkit/polkit-context.c b/src/polkit/polkit-context.c
index 62f246d..db790c6 100644
--- a/src/polkit/polkit-context.c
+++ b/src/polkit/polkit-context.c
@@ -465,8 +465,12 @@ polkit_context_unref (PolKitContext *pk_context)
return;
polkit_authorization_db_unref (pk_context->authdb);
- polkit_config_unref (pk_context->config);
- polkit_policy_cache_unref (pk_context->priv_cache);
+ if (pk_context->config != NULL) {
+ polkit_config_unref (pk_context->config);
+ }
+ if (pk_context->priv_cache != NULL) {
+ polkit_policy_cache_unref (pk_context->priv_cache);
+ }
kit_free (pk_context->policy_dir);
kit_free (pk_context);
}
--
1.7.1
++++++ PolicyKit-0.9-fix-memory-leaks.diff ++++++
commit 70651e5ff2cf6408525dd67b2b60c2067af4387c
Author: Wolfgang Mauerer
participants (1)
-
root@hilbert.suse.de