From b03ca962b01a28d1bf9a084372dad1528918dae7 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Thu, 25 Jul 2024 18:48:23 -0400 Subject: [PATCH] ruby_3_3: work around useSystemCoreFoundationFramework Similar issue as https://github.com/NixOS/nixpkgs/pull/329526. Ruby 3.3 attempts to merge objects during the build, which fails due to stricter handling of `-rpath` in ld64. --- pkgs/development/interpreters/ruby/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/interpreters/ruby/default.nix b/pkgs/development/interpreters/ruby/default.nix index 2a7115fd27df..c2a6604cf29d 100644 --- a/pkgs/development/interpreters/ruby/default.nix +++ b/pkgs/development/interpreters/ruby/default.nix @@ -173,6 +173,14 @@ let export HOME=$TMPDIR ''; + # Work around useSystemCoreFoundationFramework hook causing issues with the ld64 upgrade. + # This will be fixed on staging in https://github.com/NixOS/nixpkgs/pull/329529 + preBuild = + if lib.versionAtLeast ver.majMin "3.3" && stdenv.isDarwin && stdenv.isx86_64 then + "unset NIX_COREFOUNDATION_RPATH" + else + null; + # fails with "16993 tests, 2229489 assertions, 105 failures, 14 errors, 89 skips" # mostly TZ- and patch-related tests # TZ- failures are caused by nix sandboxing, I didn't investigate others