[PackageKit] Drop libpolkit-backend dep

Matthias Clasen mclasen at fedoraproject.org
Fri Jun 8 01:05:52 UTC 2012


commit 0b378668288db34890b82c7be007fc76c7fcd956
Author: Matthias Clasen <mclasen at redhat.com>
Date:   Thu Jun 7 21:06:38 2012 -0400

    Drop libpolkit-backend dep
    
    That library is going away, and it is not needed here.

 PackageKit.spec                  |    4 ++++
 no-polkit-backend-required.patch |   11 +++++++++++
 2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/PackageKit.spec b/PackageKit.spec
index 1953fbc..6e1c667 100644
--- a/PackageKit.spec
+++ b/PackageKit.spec
@@ -23,6 +23,9 @@ Patch3:    0001-Fix-importing-GPG-signatures.patch
 # Upstreamable?  allow use of xulrunner2 for browser-plugin support
 Patch4: PackageKit-0.7.4-xulrunner2.patch
 
+# Avoid this unneeded dep
+Patch5: no-polkit-backend-required.patch
+
 Requires: PackageKit-glib = %{version}-%{release}
 Requires: PackageKit-backend
 Requires: shared-mime-info
@@ -262,6 +265,7 @@ user to restart the computer or remove and re-insert the device.
 %patch2 -p1 -b .yum-untrusted
 %patch3 -p1 -b .fix-install-signature
 %patch4 -p1 -b .xulrunner2
+%patch5 -p1 -b .polkit
 NOCONFIGURE=1 ./autogen.sh
 
 %build
diff --git a/no-polkit-backend-required.patch b/no-polkit-backend-required.patch
new file mode 100644
index 0000000..5cf73e7
--- /dev/null
+++ b/no-polkit-backend-required.patch
@@ -0,0 +1,11 @@
+diff -up PackageKit-0.7.4/configure.ac.polkit-backend PackageKit-0.7.4/configure.ac
+--- PackageKit-0.7.4/configure.ac.polkit-backend	2012-06-07 21:04:41.787300654 -0400
++++ PackageKit-0.7.4/configure.ac	2012-06-07 21:05:00.813300940 -0400
+@@ -542,7 +542,6 @@ AC_SUBST(security_framework, "$with_secu
+ 
+ if test x$with_security_framework = xpolkit; then
+ 	PKG_CHECK_MODULES(POLKIT, \
+-			  polkit-backend-1 \
+ 			  polkit-gobject-1 >= $POLKIT_GOBJECT_REQUIRED)
+ 	AC_DEFINE(USE_SECURITY_POLKIT, 1, [if we should use PolicyKit])
+ elif test x$with_security_framework = xdummy; then


More information about the scm-commits mailing list