From c3c1643d8af3092f2defffa138dc907ddfcff803 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Fri, 31 Jan 2025 09:19:51 +0100 Subject: [PATCH] libgccjit, gccgo*: remove a reflexive symlink https://hydra.nixos.org/build/286689241/nixlog/7/tail https://hydra.nixos.org/build/287154953/nixlog/1/tail Feel free to improve this ;-) --- pkgs/development/compilers/gcc/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/gcc/default.nix b/pkgs/development/compilers/gcc/default.nix index 91d27aba7e2b..66affd84a593 100644 --- a/pkgs/development/compilers/gcc/default.nix +++ b/pkgs/development/compilers/gcc/default.nix @@ -391,5 +391,13 @@ pipe ((callFile ./common/builder.nix {}) ({ (callPackage ./common/libgcc.nix { inherit version langC langCC langJit targetPlatform hostPlatform withoutTargetLibc enableShared libcCross; }) ] ++ optionals atLeast11 [ (callPackage ./common/checksum.nix { inherit langC langCC; }) -]) +] + # This symlink points to itself, and we disallow that now by noBrokenSymlinks (#370750) + # TODO: find how exactly this happens and solve it in a better way. + ++ optional langJit (pkg: pkg.overrideAttrs (attrs: { + postInstall = attrs.postInstall or "" + '' + rm "$out/lib/lib" + ''; + })) +)