From 71739af235e5a098d5795c8a92aedd48ce201a91 Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Sat, 18 Jun 2022 12:03:55 +0200 Subject: [PATCH] dmd: Fix grep in test after gdb bump (cherry picked from commit 1ff67969b50081ac47bb2ed75f453234f6167176) --- pkgs/development/compilers/dmd/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/compilers/dmd/default.nix b/pkgs/development/compilers/dmd/default.nix index 74bf64b2edbd..60cc460efc4b 100644 --- a/pkgs/development/compilers/dmd/default.nix +++ b/pkgs/development/compilers/dmd/default.nix @@ -88,6 +88,9 @@ stdenv.mkDerivation rec { rm dmd/test/runnable/gdb4149.d rm dmd/test/runnable/gdb4181.d + # Grep'd string changed with gdb 12 + substituteInPlace druntime/test/exceptions/Makefile \ + --replace 'in D main (' 'in _Dmain (' '' + lib.optionalString stdenv.isLinux '' substituteInPlace phobos/std/socket.d --replace "assert(ih.addrList[0] == 0x7F_00_00_01);" "" '' + lib.optionalString stdenv.isDarwin ''