ngz pushed a commit to branch tex-team
in repository guix.
commit f7da8f77982a51eeaaf945baa0d72c929889cca4
Author: Nicolas Goaziou <[email protected]>
AuthorDate: Mon Feb 10 10:35:26 2025 +0100
gnu: texlive-updmap.cfg: Ignore ls-R database when building map files.
* gnu/packages/tex.scm (texlive-updmap.cfg): Add a phase to add a proper
TEXMF value.
Change-Id: Iea6d1fb943f801730c5da38dab679278108f4893
---
gnu/packages/tex.scm | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 7988e884e3..6d753a38af 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -15,7 +15,7 @@
;;; Copyright © 2020 Vincent Legoll <[email protected]>
;;; Copyright © 2020, 2021 Paul Garlick <[email protected]>
;;; Copyright © 2021, 2022 Maxim Cournoyer <[email protected]>
-;;; Copyright © 2021-2024 Nicolas Goaziou <[email protected]>
+;;; Copyright © 2021-2025 Nicolas Goaziou <[email protected]>
;;; Copyright © 2021 Leo Le Bouter <[email protected]>
;;; Copyright © 2021 Xinglu Chen <[email protected]>
;;; Copyright © 2021 Ivan Gankevich <[email protected]>
@@ -1307,6 +1307,12 @@ documentation in the TeX format."
("texmf-dist/web2c/map" "share/texmf-dist/fonts/map"))
#:phases
#~(modify-phases %standard-phases
+ (add-before 'unpack 'set-TEXMF
+ ;; Limit the scope of TEXMF to the current tree, and skip ls-R
+ ;; database usage since we're not building it for this
+ ;; supposedly small tree.
+ (lambda _
+ (setenv "TEXMF" "{$TEXMFSYSVAR,$TEXMFDIST}")))
(add-after 'unpack 'generate-mktex.cnf
;; When building a package, mktex programs try to create files
;; in TEXMFVAR, which is unavailable. Force creating those