guix_mirror_bot pushed a commit to branch tex-team
in repository guix.
commit a72f8684c33bec2124cfb07521550aa3e4b73046
Author: Nicolas Goaziou <[email protected]>
AuthorDate: Fri Jan 2 14:56:05 2026 +0100
gnu: Fix reproducibility for some TeX Live packages.
* guix/build/texlive-build-system.scm (configure-texmf):
* gnu/packages/tex.scm (texlive-xindy-bin): Set TEXMFVAR to "/tmp" instead
of
the current build directory as the latter's contents may leak into the
package
output. For example, without this change LuaLaTeX, cache files were
installed in the
output in every package relying on "lualatex" format.
Change-Id: I7d762b33a50e77af6b4eb1fb17d75dcc5eac950c
---
gnu/packages/tex.scm | 4 ++--
guix/build/texlive-build-system.scm | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 68718d49eb..ef682284ad 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-2025 Nicolas Goaziou <[email protected]>
+;;; Copyright © 2021-2026 Nicolas Goaziou <[email protected]>
;;; Copyright © 2021 Leo Le Bouter <[email protected]>
;;; Copyright © 2021 Xinglu Chen <[email protected]>
;;; Copyright © 2021 Ivan Gankevich <[email protected]>
@@ -93838,7 +93838,7 @@ in terms of the collating order of the text being
processed.")
;; HOME and therefore TEXMFVAR are unavailable. Use a local
;; TEXMFVAR instead.
(lambda _
- (setenv "TEXMFVAR" (string-append (getcwd) "/texmf-var"))))
+ (setenv "TEXMFVAR" "/tmp")))
(add-before 'install 'create-missing-directory
;; XXX: Install process does not create this directory.
(lambda _
diff --git a/guix/build/texlive-build-system.scm
b/guix/build/texlive-build-system.scm
index ec4466c0cf..5695d18f9b 100644
--- a/guix/build/texlive-build-system.scm
+++ b/guix/build/texlive-build-system.scm
@@ -2,7 +2,7 @@
;;; Copyright © 2017 Ricardo Wurmus <[email protected]>
;;; Copyright © 2021 Maxim Cournoyer <[email protected]>
;;; Copyright © 2021 Thiago Jung Bauermann <[email protected]>
-;;; Copyright © 2023-2025 Nicolas Goaziou <[email protected]>
+;;; Copyright © 2023-2026 Nicolas Goaziou <[email protected]>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -105,7 +105,7 @@ generation also needs to be wrapped within a `faketime'
call in the
;; Default TEXMFVAR value is relative to $HOME, which is not set during
;; build. This location is used for generating font metrics or building
;; documentation.
- (setenv "TEXMFVAR" (string-append (getcwd) "/texmf-var"))
+ (setenv "TEXMFVAR" (or (getenv "TMPDIR") "/tmp"))
;; By default, a "ls-R" file must exist in TEXMFDIST. However, it isn't
;; generated in the TeX Live tree used to build a package. Consequently,
;; relax this requirement.