[qemu] Disable RBD support on RHEL builds

Eduardo Habkost ehabkost at fedoraproject.org
Mon Mar 26 14:11:44 UTC 2012


commit 075dd061a67228e2790558c9b9cff5357a243bcd
Author: Eduardo Habkost <ehabkost at redhat.com>
Date:   Tue Mar 6 17:32:32 2012 -0300

    Disable RBD support on RHEL builds
    
    RHEL bug: bz#786927
    
    Signed-off-by: Eduardo Habkost <ehabkost at redhat.com>

 qemu.spec |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/qemu.spec b/qemu.spec
index fd52e00..e20c0cb 100644
--- a/qemu.spec
+++ b/qemu.spec
@@ -137,8 +137,10 @@ BuildRequires: spice-server-devel >= 0.9.0
 %endif
 # For network block driver
 BuildRequires: libcurl-devel
+%if !0%{?rhel}
 # For rbd block driver
 BuildRequires: ceph-devel
+%endif
 # We need both because the 'stap' binary is probed for by configure
 BuildRequires: systemtap
 BuildRequires: systemtap-sdt-devel
@@ -475,6 +477,9 @@ sed -i.debug 's/"-g $CFLAGS"/"$CFLAGS"/g' configure
             --extra-ldflags="$extraldflags -pie -Wl,-z,relro -Wl,-z,now" \
             --extra-cflags="%{optflags} -fPIE -DPIE" \
             --enable-spice \
+%if 0%{?rhel}
+            --disable-rbd \
+%endif
             --enable-trace-backend=dtrace \
             --disable-werror \
             --disable-xen
@@ -507,6 +512,9 @@ make clean
 %ifarch %{ix86} x86_64
     --enable-spice \
 %endif
+%if 0%{?rhel}
+    --disable-rbd \
+%endif
     --enable-trace-backend=dtrace \
     --disable-werror
 


More information about the scm-commits mailing list