mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-21 01:26:43 +01:00
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:
parent
2a5ed25c41
commit
a6499572b3
1 changed files with 8 additions and 0 deletions
|
@ -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/")
|
||||
|
|
Loading…
Reference in a new issue