From 868161a287711f3429c59047569afc778aea2bcc Mon Sep 17 00:00:00 2001 From: Janneke Nieuwenhuizen Date: Fri, 12 Sep 2025 11:59:50 +0200 Subject: [PATCH] gnu: automake-1.17: Fix cross-build. * gnu/packages/autotools.scm (automake)[arguments]: Skip two tests that attempt to run [cross-]built executables, when cross-building. Change-Id: I24bd012352400583fd8aad67c6d1f344954f973c --- gnu/packages/autotools.scm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gnu/packages/autotools.scm b/gnu/packages/autotools.scm index 273a75509e8f2c26c2de18b5a56854e6c44712d0..e0dc63586ab8306655c2f43a7e10710ec9940baa 100644 --- a/gnu/packages/autotools.scm +++ b/gnu/packages/autotools.scm @@ -462,7 +462,16 @@ Makefile, simplifying the entire process for the developer.") ;; make: Nothing to be done for 'all'. "t/remake-aclocal-version-mismatch.sh") (("^#!.*" all) - (string-append all "exit 77;\n"))))))))))) + (string-append all "exit 77;\n"))))) + #$@(if (%current-target-system) + #~((add-before 'check 'cross-skip-tests + (lambda _ + ;; These tests try to execute a cross-built program + (substitute* '("t/dist-vs-built-sources.sh" + "t/subobj-objname-clash.sh") + (("^#!.*" all) + (string-append all "exit 77;\n")))))) + #~()))))))) (define-public libtool (package