~ruther/guix-local

13f0712bade52fcc4672f230498cb2432e62e13d — Gabriel Wicki a month ago 1d0ac19
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 <gabriel@erlikon.ch>
1 files changed, 4 insertions(+), 4 deletions(-)

M gnu/packages/engineering.scm
M gnu/packages/engineering.scm => gnu/packages/engineering.scm +4 -4
@@ 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")