libvirt: Darwin fixes

* Reenable tests that work on Darwin; and
* Ignore the `-fsemantic-interposition` check. It doesn’t seem to affect
  Mach-O.
This commit is contained in:
Randy Eckenrode 2023-11-14 22:01:41 -05:00 committed by Vincent Laporte
parent a9d5722972
commit 3fa8a937df

View File

@ -155,16 +155,12 @@ stdenv.mkDerivation rec {
src/storage/storage_backend_disk.c \
src/storage/storage_util.c
'' + lib.optionalString isDarwin ''
sed -i '/qemucapabilitiestest/d' tests/meson.build
sed -i '/vircryptotest/d' tests/meson.build
sed -i '/domaincapstest/d' tests/meson.build
# Darwin doesnt support -fsemantic-interposition, but the problem doesnt seem to affect Mach-O.
# See https://gitlab.com/libvirt/libvirt/-/merge_requests/235
sed -i "s/not supported_cc_flags.contains('-fsemantic-interposition')/false/" meson.build
sed -i '/qemufirmwaretest/d' tests/meson.build
sed -i '/qemuvhostusertest/d' tests/meson.build
sed -i '/qemuxml2xmltest/d' tests/meson.build
'' + lib.optionalString (isDarwin && isx86_64) ''
sed -i '/qemucaps2xmltest/d' tests/meson.build
sed -i '/qemuhotplugtest/d' tests/meson.build
sed -i '/virnetdaemontest/d' tests/meson.build
'';
strictDeps = true;