From f8be8fac1b345c9d5d4193b3175600ff74eb9bea Mon Sep 17 00:00:00 2001 From: Jeremy Fleischman Date: Sat, 1 Aug 2026 01:41:47 -0700 Subject: [PATCH] sbcl_2_4_6: skip `elf-sans-immobile.test.sh` to avoid ZFS hang This is a workaround for https://github.com/NixOS/nixpkgs/issues/544703. The real issue is with ZFS, and will hopefully be fixed soon (https://github.com/openzfs/zfs/issues/18135). (cherry picked from commit 737e9afb7091fcb05d9addf9c89aa331249bba97) --- pkgs/development/compilers/sbcl/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pkgs/development/compilers/sbcl/default.nix b/pkgs/development/compilers/sbcl/default.nix index 36963b65f8d7..d72fb631118a 100644 --- a/pkgs/development/compilers/sbcl/default.nix +++ b/pkgs/development/compilers/sbcl/default.nix @@ -184,6 +184,19 @@ stdenv.mkDerivation (finalAttrs: { ./patches/dynamic-space-size-envvar-2.5.2-tests.patch ]; + postPatch = + # On SBCL < 2.5.0, `elf-sans-immobile.test.sh` triggers a bug in ZFS and + # causes the build to hang indefinitely. See: + # https://github.com/NixOS/nixpkgs/issues/544703#issuecomment-5141409041 + # https://github.com/openzfs/zfs/issues/18135#issuecomment-5141375047 + # To unbreak Hydra, skip the test. + if lib.versionOlder finalAttrs.version "2.5.0" then + '' + rm tests/elf-sans-immobile.test.sh + '' + else + null; + sbclPatchPhase = lib.optionalString (finalAttrs.disabledTestFiles != [ ]) '' (cd tests ; rm -f ${lib.concatStringsSep " " finalAttrs.disabledTestFiles})