From a605ec55ff8f062c443f9c29d703218738630d928bf91a9936b34959602a9bfb Mon Sep 17 00:00:00 2001 From: James Fehlig Date: Mon, 1 Nov 2010 23:31:30 +0000 Subject: [PATCH] Fix build when using polkit0 OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=73 --- libvirt.changes | 6 ++++++ libvirt.spec | 2 ++ polkit0.patch | 12 ++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 polkit0.patch diff --git a/libvirt.changes b/libvirt.changes index 631669d..3db2b22 100644 --- a/libvirt.changes +++ b/libvirt.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Nov 1 17:27:29 MDT 2010 - jfehlig@novell.com + +- Fix build when using "policy kit 0" + polkit0.patch + ------------------------------------------------------------------- Mon Nov 1 16:12:54 MDT 2010 - jfehlig@novell.com diff --git a/libvirt.spec b/libvirt.spec index 4919545..fe39d4e 100644 --- a/libvirt.spec +++ b/libvirt.spec @@ -159,6 +159,7 @@ Source1: libvirtd.init Patch0: dc27e089-xen-max-cpu.patch Patch1: b164db62-xen-compile-warnings.patch Patch2: max-cpus-fixup.patch +Patch3: polkit0.patch # Need to go upstream Patch100: xen-name-for-devid.patch Patch102: clone.patch @@ -273,6 +274,7 @@ Authors: %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 %patch100 -p1 %patch102 %patch103 -p1 diff --git a/polkit0.patch b/polkit0.patch new file mode 100644 index 0000000..88ef6e6 --- /dev/null +++ b/polkit0.patch @@ -0,0 +1,12 @@ +Index: libvirt-0.8.5/daemon/remote.c +=================================================================== +--- libvirt-0.8.5.orig/daemon/remote.c ++++ libvirt-0.8.5/daemon/remote.c +@@ -4152,6 +4152,7 @@ remoteDispatchAuthPolkit (struct qemud_s + DBusError err; + const char *action; + char ident[100]; ++ int rv; + + memset(ident, 0, sizeof ident); +