gnu: texlive-bin: Skip faulty tests on armhf-linux.

Fixes <https://issues.guix.gnu.org/54055>.
Reported by Christopher Baines <mail@cbaines.net>.

* gnu/packages/tex.scm (texlive-bin)[arguments]: When 'target-arm32?' is
true, add 'skip-faulty-test' phase.
This commit is contained in:
Ludovic Courtès 2022-03-02 15:48:15 +01:00
parent ee6275c974
commit ca6de276db
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -436,6 +436,18 @@ (define (substitute-commands scripts)
(lambda _
(substitute* "texk/kpathsea/config.h"
(("#define ST_NLINK_TRICK") ""))))
,@(if (target-arm32?)
`((add-after 'unpack 'skip-faulty-test
(lambda _
;; Skip this faulty test on armhf-linux:
;; https://issues.guix.gnu.org/54055
(substitute* '("texk/mendexk/tests/mendex.test"
"texk/upmendex/tests/upmendex.test")
(("^TEXMFCNF=" all)
(string-append "exit 77 # skip\n" all))))))
'())
(add-after 'check 'customize-texmf.cnf
;; The default texmf.cnf is provided by this package, texlive-bin.
;; Every variable of interest is set relatively to the GUIX_TEXMF