[libvirt] [PATCH 1/2] spec: fix builds on RHEL <= 6

Michael Chapman mike at very.puzzling.org
Thu Dec 31 05:09:11 UTC 2015


- dbus-devel is needed as build dependency if polkit support is enabled.
- chkconfig(8) and service(8) are in /sbin/, not /bin/.

Signed-off-by: Michael Chapman <mike at very.puzzling.org>
---
 libvirt.spec.in | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libvirt.spec.in b/libvirt.spec.in
index 6193177..3afef66 100644
--- a/libvirt.spec.in
+++ b/libvirt.spec.in
@@ -647,8 +647,8 @@ BuildRequires: util-linux
 BuildRequires: nfs-utils
 %endif
 
-%if %{with_firewalld}
-# Communication with the firewall daemon uses DBus
+%if %{with_firewalld} || %{with_polkit}
+# Communication with the firewall and polkit daemons use DBus
 BuildRequires: dbus-devel
 %endif
 
@@ -1792,9 +1792,9 @@ if [ $1 -ge 1 ] ; then
             /bin/systemctl start virtlogd.socket || :
     %else
         /sbin/chkconfig libvirtd 1>/dev/null 2>&1 &&
-            /bin/chkconfig virtlogd on || :
+            /sbin/chkconfig virtlogd on || :
         /sbin/service libvirtd status 1>/dev/null 2>&1 &&
-            /bin/service virtlogd start || :
+            /sbin/service virtlogd start || :
     %endif
 fi
 
-- 
2.4.3




More information about the libvir-list mailing list