diffutils: disable gnulib tests to fix Darwin cross

This commit is contained in:
Ben Siraphob
2025-11-19 13:45:45 -08:00
parent f5ab93698d
commit 3794fda5ed
+7 -1
View File
@@ -44,8 +44,14 @@ stdenv.mkDerivation rec {
# Disable stack-related gnulib tests on x86_64-darwin because they have problems running under
# Rosetta 2: test-c-stack hangs, test-sigsegv-catch-stackoverflow and test-sigaction fail.
# Disable all gnulib tests when building on Darwin due to test-nl_langinfo-mt failure
# known by upstream https://www.mail-archive.com/bug-gnulib@gnu.org/msg50806.html
postPatch =
if
if stdenv.buildPlatform.isDarwin then
''
sed -i 's:gnulib-tests::g' Makefile.in
''
else if
((stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) || (stdenv.hostPlatform.isAarch32))
then
''