From 81f9e288444b9c01c5cef2bf1e9173adf6a25f5a Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Sat, 16 Apr 2022 17:20:16 -0400 Subject: [PATCH] root5: fix for glibc --- pkgs/applications/science/misc/root/5.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/applications/science/misc/root/5.nix b/pkgs/applications/science/misc/root/5.nix index de85043f127e..40a5412e7af7 100644 --- a/pkgs/applications/science/misc/root/5.nix +++ b/pkgs/applications/science/misc/root/5.nix @@ -85,6 +85,11 @@ stdenv.mkDerivation rec { patchShebangs build/unix/ ln -s ${lib.getDev stdenv.cc.libc}/include/AvailabilityMacros.h cint/cint/include/ + + # __malloc_hook is deprecated + substituteInPlace misc/memstat/src/TMemStatHook.cxx \ + --replace "defined(R__GNU) && (defined(R__LINUX) || defined(__APPLE__))" \ + "defined(R__GNU) && (defined(__APPLE__))" '' # Fix CINTSYSDIR for "build" version of rootcint # This is probably a bug that breaks out-of-source builds