Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

libvirt: Darwin fixes

* Reenable tests that work on Darwin; and
* Ignore the `-fsemantic-interposition` check. It doesn’t seem to affect
Mach-O.

authored by

Randy Eckenrode and committed by
Vincent Laporte
3fa8a937 a9d57229

+3 -7
+3 -7
pkgs/development/libraries/libvirt/default.nix
··· 155 155 src/storage/storage_backend_disk.c \ 156 156 src/storage/storage_util.c 157 157 '' + lib.optionalString isDarwin '' 158 - sed -i '/qemucapabilitiestest/d' tests/meson.build 159 - sed -i '/vircryptotest/d' tests/meson.build 160 - sed -i '/domaincapstest/d' tests/meson.build 158 + # Darwin doesn’t support -fsemantic-interposition, but the problem doesn’t seem to affect Mach-O. 159 + # See https://gitlab.com/libvirt/libvirt/-/merge_requests/235 160 + sed -i "s/not supported_cc_flags.contains('-fsemantic-interposition')/false/" meson.build 161 161 sed -i '/qemufirmwaretest/d' tests/meson.build 162 162 sed -i '/qemuvhostusertest/d' tests/meson.build 163 163 sed -i '/qemuxml2xmltest/d' tests/meson.build 164 - '' + lib.optionalString (isDarwin && isx86_64) '' 165 - sed -i '/qemucaps2xmltest/d' tests/meson.build 166 - sed -i '/qemuhotplugtest/d' tests/meson.build 167 - sed -i '/virnetdaemontest/d' tests/meson.build 168 164 ''; 169 165 170 166 strictDeps = true;