Reapply "openssl: disable failing test on cross to musl"

This reverts commit 27278f6e01.
This commit is contained in:
simonzkl
2025-11-19 19:11:47 +01:00
parent 8efa0cf1e5
commit 54efca0fbb
@@ -90,7 +90,15 @@ let
substituteInPlace Configurations/unix-Makefile.tmpl \
--replace 'ENGINESDIR=$(libdir)/engines-{- $sover_dirname -}' \
'ENGINESDIR=$(OPENSSLDIR)/engines-{- $sover_dirname -}'
'';
''
# This test will fail if the error strings between the build libc and host
# libc mismatch, e.g. when cross-compiling from glibc to musl
+
lib.optionalString
(finalAttrs.finalPackage.doCheck && stdenv.hostPlatform.libc != stdenv.buildPlatform.libc)
''
rm test/recipes/02-test_errstr.t
'';
outputs = [
"bin"