From 13f0712bade52fcc4672f230498cb2432e62e13d Mon Sep 17 00:00:00 2001 From: Gabriel Wicki Date: Sat, 10 Jan 2026 02:08:32 +0100 Subject: [PATCH] gnu: gnucap: Fix build. Fixes: guix/guix#5469 * gnu/packages/engineering.scm (gnucap) [arguments] {phases}: Ignore failing tests, for they do not indicate build failure. Change-Id: I1182b9ccca35cdbb5f6308149d61057b6528018e Signed-off-by: Gabriel Wicki --- gnu/packages/engineering.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index 75fef9e695b8d923987d7747a8b6f3c5ce16bc2c..ca0cfa6b1a16675cdc6d3b5635be739b9e99ece4 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -2514,14 +2514,14 @@ printers.") ;; --prefix argument to be the first argument passed to it. (invoke "./configure" (string-append "--prefix=" out))))) (replace 'check + ;; Attention: As discussed, a failing test in gnucap does not mean + ;; the build process has failed. Therefor we ignore, but still + ;; display the result of gnucap's test evaluation. + ;; https://codeberg.org/guix/guix/issues/5469#issuecomment-9695825 (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out")) (libpath "../lib/O:../apps/O")) (with-directory-excursion "tests" - ;; Make test return non-zero exit code when a test fails. - (substitute* "test" - (("/bin/sh") "/bin/sh -e") - (("\\|\\| echo \"\\*\\*\\*\\* \\$ii fails \\*\\*\\*\\*\"") "")) ;; Fix expected plugin search path for test c_attach.1.gc (substitute* "==out/c_attach.1.gc.out" (("/usr/local/lib/gnucap")