]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libvirt.spec: Fix nbdkit selection logic on mingw and old rhel
authorPeter Krempa <pkrempa@redhat.com>
Fri, 5 Jan 2024 08:39:45 +0000 (09:39 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 5 Jan 2024 10:08:41 +0000 (11:08 +0100)
commit72b76cf9bb1731cd511c739a9a573bcdb195dcb5
tree4f9f34b8306b45ec69dfa4a0ff67a2be0092c7c1
parent3a85755f668abd15b7936778a6a13fb8ce4a8c12
libvirt.spec: Fix nbdkit selection logic on mingw and old rhel

rhel-8 lacks 'pidfd_open()' support and thus nbdkit can't be enabled
there.

mingw builds explicitly disable nbdkit support, but use
'--auto-features=enabled' thus omitting setting of
'nbdkit_config_default' results in meson thinking we want to enable it:

  ../meson.build:1018:2: ERROR: Problem encountered: nbdkit_config_default requires nbdkit to be enabled

Disable it explicitly. The meson logic might need to be fixed eventually
when switching it on by default.

Fixes: 9eabf14afbd429af1be195723fdeab5ccdd0b2cd
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
libvirt.spec.in