summaryrefslogtreecommitdiff
path: root/guix/build
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2023-05-27 17:54:17 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2023-07-18 18:12:46 +0200
commit293abb4c4e72617de2e83ccb271fce4792988492 (patch)
tree23ba33b263d08c9b9e584a56ea5f502ebe5fc358 /guix/build
parenta91171ad635884977248276c4aa6a9ee1ec409af (diff)
guix: texlive-build-system: Handle doc-only packages gracefully.
* guix/build/texlive-build-system.scm (install): Always create #$output, even if it is empty.
Diffstat (limited to 'guix/build')
-rw-r--r--guix/build/texlive-build-system.scm6
1 files changed, 4 insertions, 2 deletions
diff --git a/guix/build/texlive-build-system.scm b/guix/build/texlive-build-system.scm
index 4f3938213f..eeb23c4645 100644
--- a/guix/build/texlive-build-system.scm
+++ b/guix/build/texlive-build-system.scm
@@ -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)