guix: texlive-build-system: Handle doc-only packages gracefully.

* guix/build/texlive-build-system.scm (install): Always create #$output, even
if it is empty.
This commit is contained in:
Nicolas Goaziou 2023-05-27 17:54:17 +02:00
parent a91171ad63
commit 293abb4c4e
No known key found for this signature in database
GPG Key ID: DA00B4F048E92F2D

View File

@ -207,8 +207,10 @@ runfile to replace. If a file has no matching runfile, it is ignored."
(let ((doc-dir (string-append (or doc out) "/share/texmf-dist/doc")))
(mkdir-p doc-dir)
(copy-recursively "doc" doc-dir)))
;; Handle runfiles.
(let ((texmf (string-append (assoc-ref outputs "out") "/share/texmf-dist")))
;; Install runfiles. The package may not contain any, though. Create
;; #$output anyway to handle this situation gracefully.
(mkdir-p out)
(let ((texmf (string-append out "/share/texmf-dist")))
(for-each (lambda (root)
(let ((destination (string-append texmf "/" root)))
(mkdir-p destination)