root: fix build w/ glibc-2.38

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

+13
+13
pkgs/applications/science/misc/root/default.nix
··· 2 , lib 3 , callPackage 4 , fetchurl 5 , makeWrapper 6 , cmake 7 , coreutils ··· 109 110 patches = [ 111 ./sw_vers.patch 112 ]; 113 114 preConfigure = ''
··· 2 , lib 3 , callPackage 4 , fetchurl 5 + , fetchpatch 6 , makeWrapper 7 , cmake 8 , coreutils ··· 110 111 patches = [ 112 ./sw_vers.patch 113 + # glibc >=2.38 already has strlcat implemented. 114 + # merged upstream, remove on next package bump. 115 + (fetchpatch { 116 + url = "https://github.com/root-project/root/commit/8fb0e35446ed67c9d56639b4708c8f05459b7f84.patch"; 117 + hash = "sha256-7EabmYanqlQsYSQsi+S9eWs1v1pY6MncopL420Y3D4w="; 118 + }) 119 + ] ++ lib.optionals (python.pkgs.pythonAtLeast "3.11") [ 120 + # Fix build against Python 3.11 121 + (fetchpatch { 122 + url = "https://github.com/root-project/root/commit/484deb056dacf768aba4954073b41105c431bffc.patch"; 123 + hash = "sha256-4qur2e3SxMIPgOg4IjlvuULR2BObuP7xdvs+LmNT2/s="; 124 + }) 125 ]; 126 127 preConfigure = ''