提交 d336dbdb 编写于 作者: E Eric Blake

spec: fix sanlock dependency

* libvirt.spec.in (with_sanlock): On RHEL, don't force sanlock
on architectures where it isn't available.
上级 e7dfa468
......@@ -174,8 +174,14 @@
%endif
# Enable sanlock library for lock management with QEMU
%if 0%{?fedora} >= 16 || 0%{?rhel} >= 6
%define with_sanlock 0%{!?_without_sanlock:%{server_drivers}}
# Sanlock is available only on i686 x86_64 for RHEL
%if 0%{?fedora} >= 16
%define with_sanlock 0%{!?_without_sanlock:%{server_drivers}}
%endif
%if 0%{?rhel} >= 6
%ifnarch i386 i586 i686 x86_64
%define with_sanlock 0%{!?_without_sanlock:%{server_drivers}}
%endif
%endif
# Disable some drivers when building without libvirt daemon.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册