Hi Please accept the following patch to the rpm spec file. It allows me to enable specific options (like openvz) at the build comand line, even if they have been disabled by OS feature selection. eg for an openvz build on centos 6 rpmbuild -bb \ --define 'rhel 6' \ --without dtrace \ --without sanlock \ --without netcf \ --with openvz \ libvirt.spec Regards Chris (Not subscribed to the mailing list)
diff -uNr libvirt-0.9.7.orig/libvirt.spec.in libvirt-0.9.7/libvirt.spec.in --- libvirt-0.9.7.orig/libvirt.spec.in 2011-11-08 08:52:03.000000000 +0200 +++ libvirt-0.9.7/libvirt.spec.in 2011-11-16 08:40:15.000000000 +0200 @@ -232,6 +232,47 @@ %define with_rhel5 0 %endif +# Force enable specific features if called on the command line +%{?_with_audit:%define with_audit 1} +%{?_with_avahi:%define with_avahi 1} +%{?_with_capng:%define with_capng 1} +%{?_with_cgconfig:%define with_cgconfig 1} +%{?_with_dtrace:%define with_dtrace 1} +%{?_with_esx:%define with_esx 1} +%{?_with_hal:%define with_hal 1} +%{?_with_hyperv:%define with_hyperv 1} +%{?_with_libnl:%define with_libnl 1} +%{?_with_libpcap:%define with_libpcap 1} +%{?_with_libvirtd:%define with_libvirtd 1} +%{?_with_libxl:%define with_libxl 1} +%{?_with_lxc:%define with_lxc 1} +%{?_with_macvtap:%define with_macvtap 1} +%{?_with_netcf:%define with_netcf 1} +%{?_with_network:%define with_network 1} +%{?_with_numactl:%define with_numactl 1} +%{?_with_nwfilter:%define with_nwfilter 1} +%{?_with_openvz:%define with_openvz 1} +%{?_with_phyp:%define with_phyp 1} +%{?_with_polkit:%define with_polkit 1} +%{?_with_python:%define with_python 1} +%{?_with_qemu:%define with_qemu 1} +%{?_with_rhel5:%define with_rhel5 1} +%{?_with_sanlock:%define with_sanlock 1} +%{?_with_sasl:%define with_sasl 1} +%{?_with_selinux:%define with_selinux 1} +%{?_with_storage_disk:%define with_storage_disk 1} +%{?_with_storage_fs:%define with_storage_fs 1} +%{?_with_storage_iscsi:%define with_storage_iscsi 1} +%{?_with_storage_lvm:%define with_storage_lvm 1} +%{?_with_storage_mpath:%define with_storage_mpath 1} +%{?_with_udev:%define with_udev 1} +%{?_with_uml:%define with_uml 1} +%{?_with_vbox:%define with_vbox 1} +%{?_with_vmware:%define with_vmware 1} +%{?_with_xen:%define with_xen 1} +%{?_with_xenapi:%define with_xenapi 1} +%{?_with_yajl:%define with_yajl 1} + Summary: Library providing a simple virtualization API Name: libvirt Version: @VERSION@
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list