From bc0eb86a1aa62a8a893b3c40595d10be793c25e6 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Tue, 8 Sep 2026 21:52:48 +0200 Subject: [PATCH] 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. --- pkgs/by-name/op/open-vm-tools/package.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/by-name/op/open-vm-tools/package.nix b/pkgs/by-name/op/open-vm-tools/package.nix index 5835333ae557..06e87eeeb82c 100644 --- a/pkgs/by-name/op/open-vm-tools/package.nix +++ b/pkgs/by-name/op/open-vm-tools/package.nix @@ -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 = [