From fb7471106bb43bccd54377e33d5b88089d115431 Mon Sep 17 00:00:00 2001 From: polygon Date: Thu, 27 Mar 2025 22:12:59 +0100 Subject: [PATCH] gatling: fix build with gcc14 Cause of the error was actually a main without return type is a probe program, causing the probes to fail. --- pkgs/by-name/ga/gatling/package.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ga/gatling/package.nix b/pkgs/by-name/ga/gatling/package.nix index 1a3e2a2e4f29..bf457905254c 100644 --- a/pkgs/by-name/ga/gatling/package.nix +++ b/pkgs/by-name/ga/gatling/package.nix @@ -30,8 +30,10 @@ stdenv.mkDerivation rec { ]; configurePhase = '' - substituteInPlace Makefile --replace "/usr/local" "$out" - substituteInPlace GNUmakefile --replace "/opt/diet" "$out" + substituteInPlace Makefile --replace-fail "/usr/local" "$out" + substituteInPlace GNUmakefile --replace-fail "/opt/diet" "$out" + substituteInPlace tryalloca.c --replace-fail "main() {" "int main() {" + substituteInPlace trysocket.c --replace-fail "main() {" "int main() {" ''; buildPhase = ''