mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
rpm: more fixes for disabling features
The %meson macro sets "--auto-features=enabled", so it is not enough to disable the driver options, we must also disable any library options which the drivers depend on. Reviewed-by: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
1841cfa49e
commit
a4636c76fc
@ -1026,15 +1026,15 @@ exit 1
|
||||
%endif
|
||||
|
||||
%if %{with_esx}
|
||||
%define arg_esx -Ddriver_esx=enabled
|
||||
%define arg_esx -Ddriver_esx=enabled -Dcurl=enabled
|
||||
%else
|
||||
%define arg_esx -Ddriver_esx=disabled
|
||||
%define arg_esx -Ddriver_esx=disabled -Dcurl=disabled
|
||||
%endif
|
||||
|
||||
%if %{with_hyperv}
|
||||
%define arg_hyperv -Ddriver_hyperv=enabled
|
||||
%define arg_hyperv -Ddriver_hyperv=enabled -Dopenwsman=enabled
|
||||
%else
|
||||
%define arg_hyperv -Ddriver_hyperv=disabled
|
||||
%define arg_hyperv -Ddriver_hyperv=disabled -Dopenwsman=disabled
|
||||
%endif
|
||||
|
||||
%if %{with_vmware}
|
||||
@ -1056,9 +1056,9 @@ exit 1
|
||||
%endif
|
||||
|
||||
%if %{with_storage_gluster}
|
||||
%define arg_storage_gluster -Dstorage_gluster=enabled
|
||||
%define arg_storage_gluster -Dstorage_gluster=enabled -Dglusterfs=enabled
|
||||
%else
|
||||
%define arg_storage_gluster -Dstorage_gluster=disabled
|
||||
%define arg_storage_gluster -Dstorage_gluster=disabled -Dglusterfs=disabled
|
||||
%endif
|
||||
|
||||
%if %{with_storage_zfs}
|
||||
@ -1104,9 +1104,9 @@ exit 1
|
||||
%endif
|
||||
|
||||
%if %{with_storage_iscsi_direct}
|
||||
%define arg_storage_iscsi_direct -Dstorage_iscsi_direct=enabled
|
||||
%define arg_storage_iscsi_direct -Dstorage_iscsi_direct=enabled -Dlibiscsi=enabled
|
||||
%else
|
||||
%define arg_storage_iscsi_direct -Dstorage_iscsi_direct=disabled
|
||||
%define arg_storage_iscsi_direct -Dstorage_iscsi_direct=disabled -Dlibiscsi=disabled
|
||||
%endif
|
||||
|
||||
%if %{with_libssh}
|
||||
|
Loading…
x
Reference in New Issue
Block a user