gnu: texlive-bin: Patch references to sed and awk.

* gnu/packages/tex.scm (texlive-bin)[arguments]: Patch texlive scripts in
'post-install phase to satisfy references to sed and awk.
This commit is contained in:
Ricardo Wurmus 2022-01-04 15:22:31 +01:00
parent 2a5ed25c41
commit a6499572b3
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -498,6 +498,14 @@ (define (substitute-commands scripts)
source "/texlive-scripts/source/")
scripts)
;; Patch them.
(let ((dirs (map dirname (list (which "sed") (which "awk")))))
(with-directory-excursion scripts
(substitute* '("mktexpk" "mktexmf" "mktexlsr")
(("^version=" m)
(format #false "PATH=\"~{~a:~}$PATH\"; export PATH~%~a"
dirs m)))))
;; Make sure that fmtutil can find its Perl modules.
(substitute* (string-append scripts "/fmtutil.pl")
(("\\$TEXMFROOT/")