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
@ -498,6 +498,14 @@ files from LOCATIONS with expected checksum HASH. CODE is not currently in use.
|
||||
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…
x
Reference in New Issue
Block a user