open-vm-tools: fix build w/ glibc-2.44

Failing Hydra build: https://hydra.nixos.org/build/344174037

This package builds fine on the base of this branch, so it's somehow
related to the glibc change, I'm just not understanding how.

Anyways, the issue is that `g_free` is a macro in glib (NOT glibc) and
was expanded in here leading to a syntax error. Removing this line
entirely fixes the issue for us.
This commit is contained in:
Maximilian Bosch
2026-09-08 21:52:48 +02:00
parent 0706a24d11
commit bc0eb86a1a

View File

@@ -150,6 +150,9 @@ stdenv.mkDerivation (finalAttrs: {
substituteInPlace udev/99-vmware-scsi-udev.rules \
--replace-fail "/bin/sh" "${bash}/bin/sh"
substituteInPlace lib/rpcChannel/glib_stubs.c \
--replace-fail "void g_free(void *p) { free(p); }" ""
'';
configureFlags = [