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 737e9afb70)
This commit is contained in:
Jeremy Fleischman
2026-08-01 01:41:47 -07:00
committed by github-actions[bot]
parent cfcbc3aef2
commit f8be8fac1b

View File

@@ -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})