git: 73aff5854d5f - main - devel/libvirt: unbreak with --auto-features=enabled

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Mon, 27 Mar 2023 10:29:45 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=73aff5854d5fea1098ad33878eea32825957d0e8

commit 73aff5854d5fea1098ad33878eea32825957d0e8
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-03-27 09:32:07 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-03-27 10:26:36 +0000

    devel/libvirt: unbreak with --auto-features=enabled
    
    meson.build:839:0: ERROR: Dependency "libapparmor" not found, tried pkgconfig
    meson.build:852:6: ERROR: Problem encountered: Cannot enable apparmor_profiles without apparmor
    meson.build:862:0: ERROR: C shared or static library 'attr' not found
    meson.build:867:0: ERROR: Dependency "audit" not found, tried pkgconfig
    meson.build:876:0: ERROR: Dependency "blkid" not found, tried pkgconfig
    meson.build:881:0: ERROR: Dependency "libcap-ng" not found, tried pkgconfig
    meson.build:913:2: ERROR: Dependency "fuse" not found, tried pkgconfig
    meson.build:940:0: ERROR: Dependency "glusterfs-api" not found, tried pkgconfig
    meson.build:953:0: ERROR: Dependency "libiscsi" not found, tried pkgconfig
    meson.build:967:2: ERROR: Problem encountered: libnl can be enabled only on linux
    meson.build:973:0: ERROR: Dependency "libparted" not found, tried pkgconfig
    meson.build:977:2: ERROR: Dependency "pcap" not found, tried pkgconfig and config-tool
    meson.build:1060:0: ERROR: C shared or static library 'numa' not found
    meson.build:1069:0: ERROR: Dependency "openwsman" not found, tried pkgconfig
    meson.build:1075:0: ERROR: Dependency "pciaccess" not found, tried pkgconfig
    meson.build:1077:0: ERROR: C shared or static library 'rbd' not found
    meson.build:1131:2: ERROR: Dependency "libsanlock_client" not found, tried pkgconfig
    meson.build:1152:0: ERROR: Dependency "libselinux" not found, tried pkgconfig
    meson.build:1333:6: ERROR: Problem encountered: firewalld support can only be enabled on Linux
    meson.build:1345:2: ERROR: Problem encountered: You must have firewalld support enabled to enable firewalld_zone
    meson.build:1427:2: ERROR: Problem encountered: openwsman is required for the Hyper-V driver
    meson.build:1433:2: ERROR: Problem encountered: Requested the Interface driver without netcf or udev and libvirtd support
    meson.build:1491:2: ERROR: Problem encountered: linux and remote_driver are required for LXC
    meson.build:1549:2: ERROR: Problem encountered: OpenVZ driver can be enabled on Linux only
    meson.build:1691:2: ERROR: Problem encountered: Parallels Virtualization SDK is needed to build the Virtuozzo driver.
    meson.build:1697:2: ERROR: Problem encountered: You must install the AppArmor development package in order to compile libvirt.
    meson.build:1703:2: ERROR: Problem encountered: You must install the libselinux development package in order to compile libvirt.
    meson.build:1738:8: ERROR: Problem encountered: <mntent.h> is required for the FS storage driver
    meson.build:1775:4: ERROR: Problem encountered: Need glusterfs (libgfapi) for gluster storage driver
    meson.build:1782:4: ERROR: Problem encountered: We need iscsiadm for iSCSI storage driver
    meson.build:1789:4: ERROR: Problem encountered: Need libiscsi for iscsi-direct storage driver
    meson.build:1801:6: ERROR: Program 'pvcreate' not found or not executable
    meson.build:1824:4: ERROR: Problem encountered: mpath storage driver is supported only on Linux and you must install libdevmapper
    meson.build:1844:8: ERROR: Problem encountered: Vstorage is supported only on Linux
    meson.build:1972:2: ERROR: Problem encountered: You must have numactl enabled for numad support.
    
    PR:             270361
    Reported by:    antoine (via exp-run)
---
 devel/libvirt/Makefile | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/devel/libvirt/Makefile b/devel/libvirt/Makefile
index 759c0ca0645e..7564ae9d2093 100644
--- a/devel/libvirt/Makefile
+++ b/devel/libvirt/Makefile
@@ -75,8 +75,43 @@ ZFS_MESON_ENABLED=	storage_zfs
 VARDIR=		/var
 
 MESON_ARGS+=	\
+		-Dapparmor=disabled \
+		-Dapparmor_profiles=disabled \
+		-Dattr=disabled \
+		-Daudit=disabled \
+		-Dblkid=disabled \
+		-Dcapng=disabled \
+		-Ddriver_hyperv=disabled \
+		-Ddriver_interface=disabled \
+		-Ddriver_lxc=disabled \
+		-Ddriver_openvz=disabled \
 		-Ddriver_remote=enabled \
+		-Ddriver_vz=disabled \
+		-Dfirewalld=disabled \
+		-Dfirewalld_zone=disabled \
+		-Dfuse=disabled \
+		-Dglusterfs=disabled \
+		-Dlibiscsi=disabled \
+		-Dlibnl=disabled \
+		-Dlibpcap=disabled \
+		-Dnumactl=disabled \
+		-Dnumad=disabled \
+		-Dopenwsman=disabled \
+		-Dpciaccess=disabled \
 		-Dpolkit=disabled \
+		-Dsanlock=disabled \
+		-Dsecdriver_apparmor=disabled \
+		-Dsecdriver_selinux=disabled \
+		-Dselinux=disabled \
+		-Dstorage_disk=disabled \
+		-Dstorage_fs=disabled \
+		-Dstorage_gluster=disabled \
+		-Dstorage_iscsi=disabled \
+		-Dstorage_iscsi_direct=disabled \
+		-Dstorage_lvm=disabled \
+		-Dstorage_mpath=disabled \
+		-Dstorage_rbd=disabled \
+		-Dstorage_vstorage=disabled \
 		-Dudev=disabled \
 		-Dnetcf=disabled \
 		-Dsysctl_config=disabled \