From 2a9a83e489e867280f65ae00fc61dc14be1de883 Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Fri, 27 Jun 2025 20:00:00 -0400 Subject: [PATCH] glibc: Fix build with gcc-15 --- pkgs/development/libraries/glibc/common.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/libraries/glibc/common.nix b/pkgs/development/libraries/glibc/common.nix index e4b9d66f7dd0..f6c9aa6755c4 100644 --- a/pkgs/development/libraries/glibc/common.nix +++ b/pkgs/development/libraries/glibc/common.nix @@ -162,6 +162,15 @@ stdenv.mkDerivation ( -#define LIBIDN2_SONAME "libidn2.so.0" +#define LIBIDN2_SONAME "${lib.getLib libidn2}/lib/libidn2.so.0" EOF + '' + # For some reason, with gcc-15 build fails with the following error: + # + # zic.c:3767:1: note: did you mean to specify it after ')' following function parameters? + # zic.c:3781:1: error: standard 'reproducible' attribute can only be applied to function declarators or type specifiers with function type [] + + '' + for path in timezone/zic.c timezone/zdump.c ; do + substituteInPlace $path --replace-fail "ATTRIBUTE_REPRODUCIBLE" "" + done ''; configureFlags =